Last modified: 2008-12-08 19:32:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17920, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15920 - problems getting thumbnails with chopped ogg streams
problems getting thumbnails with chopped ogg streams
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
OggHandler (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Tim Starling
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-10 00:23 UTC by Michael Dale
Modified: 2008-12-08 19:32 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
re-tires to generate thumbnail on failure (2.06 KB, patch)
2008-10-10 00:23 UTC, Michael Dale
Details

Description Michael Dale 2008-10-10 00:23:13 UTC
Created attachment 5412 [details]
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.
Comment 1 Michael Dale 2008-12-08 19:11:31 UTC
This bug should be bumped up.. archive.org is now running oggz_chop as well.. 

so grabbing a chunk from archive.org say 10 seconds from night_of_the_living_dead on archive.org: 
http://ia331342.us.archive.org/2/items/night_of_the_living_dead/night_of_the_living_dead.ogv?t=0:20:00/0:20:10
will work. 
ie http://en.wikipedia.org/wiki/Image:Oggz_chop_test.ogg

since this patch has already been applied its probably an issue with the version of ffmpeg on the server.. if we could bump that version per the default version in the ubuntu repository it should hopefully fix the issue. I am running  r11872+debian_3:0.svn20080206-12ubuntu3 locally and the stream mapping check works there. 

Also if we could look at re-enabling get-via-url that would make it even easier to pull segments oggz_chop repositories (like archive.org and metavid.org) 

peace, 
--michael
Comment 2 Brion Vibber 2008-12-08 19:30:10 UTC
Applied the patch, but we probably need a newer ffmpeg to make it actually work.
Comment 3 Brion Vibber 2008-12-08 19:32:07 UTC
Marking this one fixed; ffmpeg version issue is bug 16167.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links