Author: mdale
Description:
re-tires to generate thumbnail on failure
Problem: segments of ogg streams do not upload well with oggHandler. No image thumbnail is generated and the pear File_Ogg script gives bad stream length. (Bad length messes up play head control for java-cortado playback)
~the quick hack patch is attached~
on failure to generate thumbnail we try to generate on the first frame and with "one off" stream mappings.
~ the solution ~
The PEAR File_Ogg script does not handle chopped streams very well. In addition to _lastGranulePos we need to read the _firstGranulePos so that we can get the base offset time. We can then subtract that from the _lastGranulePos frame time to get the proper duration.
The ffmpeg script on failure should read the stream mappings output and look for "theora" stream and call thumbnail generation for that stream. (this is also relevant if people start to upload ogg files with accessibility options like annodex timed text cmml muxed in) its possible that with a different thumbnail generator ie gstreamer or mplayer would be smarter about that and search for a video stream to grab the thumbnail.
Version: unspecified
Severity: normal
Attached: