[gnome-getting-started-docs] video transcoding: switch back to gstreamer



commit c62e4a0f81470ed617eb85cad0dd3d87ac7772aa
Author: Jakub Steiner <jimmac gmail com>
Date:   Tue Nov 5 11:43:37 2013 +0100

    video transcoding: switch back to gstreamer
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696084 no longer stands in the way

 animation/gnomerender.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/animation/gnomerender.py b/animation/gnomerender.py
index ac5258f..632465a 100644
--- a/animation/gnomerender.py
+++ b/animation/gnomerender.py
@@ -35,8 +35,8 @@ def transcode(lang,x=854,bitrate="300k"):
   y = round(x/(1280/720))
   
   #print(transcodepath,webmfile,sndfile,framepath)
-  transcodecmd = "ffmpeg -r 24 -f image2 -i %s/%%04d.png -i %s -vf scale=%s:%s -b %s %s/%s" % 
(framepath,sndfile,x,y,bitrate,transcodepath,webmfile)
-  #transcodecmd = "gst-launch-1.0 webmmux name=mux ! filesink location=\"%s/%s\"    file://%s ! decodebin ! 
audioconvert ! vorbisenc bitrate=96000 ! mux.     multifilesrc location=\"%s/%%04d.png\" index=1 
caps=\"image/png,framerate=\(fraction\)24/1\" ! pngdec ! videoconvert ! videoscale ! video/x-raw, 
width=%s,height=%s ! videorate ! vp8enc threads=12 target-bitrate=300000 ! mux." % 
(transcodepath,webmfile,sndfile,framepath,x,y)
+  #transcodecmd = "ffmpeg -r 24 -f image2 -i %s/%%04d.png -i %s -vf scale=%s:%s -b %s %s/%s" % 
(framepath,sndfile,x,y,bitrate,transcodepath,webmfile)
+  transcodecmd = "gst-launch-1.0 webmmux name=mux ! filesink location=\"%s/%s\"    file://%s ! decodebin ! 
audioconvert ! vorbisenc bitrate=96000 ! mux.     multifilesrc location=\"%s/%%04d.png\" index=1 
caps=\"image/png,framerate=\(fraction\)24/1\" ! pngdec ! videoconvert ! videoscale ! video/x-raw, 
width=%s,height=%s ! videorate ! vp8enc threads=12 target-bitrate=300000 ! mux." % 
(transcodepath,webmfile,sndfile,framepath,x,y)
   if (not os.path.isfile(transcodepath+webmfile)):
     os.system(transcodecmd)
   else:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]