Sometimes, ffmpeg can't convert the videos (i.e. with Windows codec Wmv MSS2). The result is an empty node without thumbnail and without linked video, but this node is published anyway.
Should be possible for Flashvideo to process the ffmpeg output and to avoid the node creation in case of this kind of error?
I'm taking a look on flashvideo.module, but I don't know too much PHP. Could somebody guide me, please?
Thanks in advance.
Best regards.
Comments
Comment #1
daniel.merino commentedComment #2
ore commentedflashvideo.module
Look for that in flashvideo_convert(...) function.
After it converts it checks the filesize and does a few things. if the filesize is 0 then it doesnt do those and heads into post op operations. In there is does some db file stuff but it also changes the status of the node to 1 'published'
function flashvideo_perform_postop(...)
you would want to do something around this area. you need to know that it has failed from the previous function, perhaps with the files passed through or something. I havnt checked what happens with those so thats where i would start.
hope this helps. I havnt given line numbers as my line numbers will be way out compared to the latest release.
Comment #3
gimi37 commentedThis happens to my site as well. I noticed that if the file name has any character other than a-z and 0-9 ex. & or ë it fail to convert it, and node is posted any way. Any idea how to address the file name issue when it has one of other non-standard characters?
Thanks