aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorayleph <ayleph@thisshitistemp.com>2014-08-01 20:15:55 -0700
committerayleph <ayleph@thisshitistemp.com>2014-08-01 20:15:55 -0700
commit19df85773489255fdefbd1ed4ede033048c3588f (patch)
tree93ee28d96e451f097ae808ec8d21fe44c391e41a
parent8917ffb1e73ac8ed0fc825113593e5e5ca9b4573 (diff)
downloadmediagoblin-19df85773489255fdefbd1ed4ede033048c3588f.tar.lz
mediagoblin-19df85773489255fdefbd1ed4ede033048c3588f.tar.xz
mediagoblin-19df85773489255fdefbd1ed4ede033048c3588f.zip
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.
-rw-r--r--mediagoblin/media_types/video/transcoders.py2
1 files changed, 1 insertions, 1 deletions
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 '',