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.

CommentFileSizeAuthor
#12 video_encoded_fid.patch1.42 KBbkat

Comments

bkat’s picture

I 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.

fax8’s picture

which version are you using? I mean.. is the code after Feb. 12th?

bkat’s picture

Yes, this started with the recent snapshot (Feb 12) and is still occurring on the snapshot released on 2008-02-18.

fax8’s picture

Priority: Normal » Critical
rjaiswal’s picture

Title: editing video loses auto converted version » Flashvideo flv file is not playing
Project: Video » FlashVideo
Version: 5.x-1.x-dev » 5.x-2.7

I 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.

travist’s picture

Priority: Critical » Minor
Status: Active » Postponed (maintainer needs more info)

Your 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.

fax8’s picture

Title: editing video loses auto converted version » Flashvideo flv file is not playing

@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

fax8’s picture

Title: Flashvideo flv file is not playing » editing video loses auto converted version
Project: FlashVideo » Video
Version: 5.x-2.7 » 5.x-1.x-dev
Component: User interface » Code
rjaiswal’s picture

Title: Flashvideo flv file is not playing » editing video loses auto converted version
fax8’s picture

Assigned: Unassigned » fax8
Priority: Minor » Critical
Status: Postponed (maintainer needs more info) » Active

confirmed. working on this one. restoring critical.

bkat’s picture

any progress on this? I'm still battling this.

bkat’s picture

StatusFileSize
new1.42 KB

I 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.

hypertext200’s picture

Version: 5.x-1.x-dev » 6.x-2.x-dev
Status: Active » Fixed

ship with Drupal 6 version

bkat’s picture

Not in video-5.x-1.5 though?

hypertext200’s picture

@bkat: It will come with the next release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.