If I use the auto conversion feature, everything initially works out fine. However if I later go back and edit the video node, it seems to lose track of the flash version and reverts to playing the original version.
Both versions are listed in the attachment section.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | video_encoded_fid.patch | 1.42 KB | bkat |
Comments
Comment #1
bkat commentedI did a little digging around and have some more info to report:
When I upload a video that is auto converted to the flash I get the following data in the video table:
+------+------+---------+--------+--------+------+------------------+--------------+---------------+---------------+---------------------+----------------+------------------+-----------------+-----------------------+-----------------+----------------+----------------+----------------+----------------+----------------+----------------+--------------------------------------------------------------------------------+--------+
| vid | nid | vidfile | videox | videoy | size | download_counter | play_counter | video_bitrate | audio_bitrate | audio_sampling_rate | audio_channels | playtime_seconds | download_folder | disable_multidownload | use_play_folder | custom_field_1 | custom_field_2 | custom_field_3 | custom_field_4 | custom_field_5 | custom_field_6 | serialized_data | vtype |
+------+------+---------+--------+--------+------+------------------+--------------+---------------+---------------+---------------------+----------------+------------------+-----------------+-----------------------+-----------------+----------------+----------------+----------------+----------------+----------------+----------------+--------------------------------------------------------------------------------+--------+
| 1499 | 1499 | | 400 | 300 | 0 | 0 | 2 | 0 | 0 | 0 | | 0 | | 0 | 0 | | | | | | | a:3:{s:9:"video_fid";i:5892;s:3:"iid";i:1498;s:17:"video_encoded_fid";i:5900;} | upload |
+------+------+---------+--------+--------+------+------------------+--------------+---------------+---------------+---------------------+----------------+------------------+-----------------+-----------------------+-----------------+----------------+----------------+----------------+----------------+----------------+----------------+--------------------------------------------------------------------------------+--------+
When I edit the node and click save (without changing anything) the same row becomes:
+------+------+---------------------------------------------------+--------+--------+----------+------------------+--------------+---------------+---------------+---------------------+----------------+------------------+-----------------+-----------------------+-----------------+----------------+----------------+----------------+----------------+----------------+----------------+--------------------------------------------------------+--------+
| vid | nid | vidfile | videox | videoy | size | download_counter | play_counter | video_bitrate | audio_bitrate | audio_sampling_rate | audio_channels | playtime_seconds | download_folder | disable_multidownload | use_play_folder | custom_field_1 | custom_field_2 | custom_field_3 | custom_field_4 | custom_field_5 | custom_field_6 | serialized_data | vtype |
+------+------+---------------------------------------------------+--------+--------+----------+------------------+--------------+---------------+---------------+---------------------+----------------+------------------+-----------------+-----------------------+-----------------+----------------+----------------+----------------+----------------+----------------+----------------+--------------------------------------------------------+--------+
| 1499 | 1499 | http://womensfooty.com/files/videos/bogus.avi.flv | 400 | 300 | 21343271 | 0 | 5 | 0 | 0 | 0 | | 0 | | 0 | 0 | | | | | | | a:2:{s:9:"video_fid";s:4:"5892";s:3:"iid";s:4:"1498";} | upload |
+------+------+---------------------------------------------------+--------+--------+----------+------------------+--------------+---------------+---------------+---------------------+----------------+------------------+-----------------+-----------------------+-----------------+----------------+----------------+----------------+----------------+----------------+----------------+--------------------------------------------------------+------
The problem occurs because we lose "video_encoded_fid" in the serialized_data. Its also interesting that the vidfile is changing to the URL of the video file.
Comment #2
fax8 commentedwhich version are you using? I mean.. is the code after Feb. 12th?
Comment #3
bkat commentedYes, this started with the recent snapshot (Feb 12) and is still occurring on the snapshot released on 2008-02-18.
Comment #4
fax8 commentedComment #5
rjaiswal commentedI have install flash video module, ffmpeg program. While submitting the node the video file is converting into the flv format and plays the only once after submitting. But if I go again that node after clicking the thumbnail(created by ffmpeg) it shows the blank page. I dont know whats the reason. Any help would be appreciate.
Comment #6
travist commentedYour comment above looks like you are using the Video module....not the FlashVideo module. I do not store any of those parameters in the database. Please make sure you are using FlashVideo.
Comment #7
fax8 commented@rjaiswal: the issue you are commenting on is video module related.. if you have problems with Flashvideo open a new issue on the FlashVideo issue tracker
Comment #8
fax8 commentedComment #9
rjaiswal commentedComment #10
fax8 commentedconfirmed. working on this one. restoring critical.
Comment #11
bkat commentedany progress on this? I'm still battling this.
Comment #12
bkat commentedI dug into this and came up with a patch that works for me but probably isn't optimal. What I'm doing is
1. in video_form() add a hidden field that holds the value of video_encoded_fid from the serial_data array.
2. in video_update(), if we're not uploading a new file, copy the video_encoded_fid into the serial_data array
Patch submitted, suggestions for improvement are welcome.
Comment #13
hypertext200ship with Drupal 6 version
Comment #14
bkat commentedNot in video-5.x-1.5 though?
Comment #15
hypertext200@bkat: It will come with the next release.