From 19df85773489255fdefbd1ed4ede033048c3588f Mon Sep 17 00:00:00 2001 From: ayleph Date: Fri, 1 Aug 2014 20:15:55 -0700 Subject: [PATCH] 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. --- mediagoblin/media_types/video/transcoders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '', -- 2.25.1