From: ayleph Date: Sat, 2 Aug 2014 03:15:55 +0000 (-0700) Subject: Updated video thumbnail pipeline to use decodebin2 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=19df85773489255fdefbd1ed4ede033048c3588f;p=mediagoblin.git Updated video thumbnail pipeline to use decodebin2 The video thumbnailer uses decodebin to automatically detect the file type in the thumbnail pipeline. However, decodebin does not properly demux theora streams, which causes the thumbnailer to fail for .ogv files. decodebin2 properly demuxes the theora stream and successfully creates thumbnails for .ogv files. --- diff --git a/mediagoblin/media_types/video/transcoders.py b/mediagoblin/media_types/video/transcoders.py index 9d6b7655..3a3fa97f 100644 --- a/mediagoblin/media_types/video/transcoders.py +++ b/mediagoblin/media_types/video/transcoders.py @@ -186,7 +186,7 @@ from playbin') self.buffer_probes = {} pipeline = ''.join([ - 'filesrc location="%s" ! decodebin ! ' % self.source_path, + 'filesrc location="%s" ! decodebin2 ! ' % self.source_path, 'ffmpegcolorspace ! videoscale ! ', 'video/x-raw-rgb,depth=24,bpp=24,pixel-aspect-ratio=1/1', ',width={0}'.format(self.width) if self.width else '',