[gnome-getting-started-docs] Produce VP9 videos instead of VP8
- From: Petr Kovář <pmkovar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-getting-started-docs] Produce VP9 videos instead of VP8
- Date: Tue, 6 Feb 2018 12:54:39 +0000 (UTC)
commit 53c6185ef66d2e2304ad4757cf09943bc7cafa33
Author: Marcin Mikołajczak <me m4sk in>
Date: Sat Dec 9 20:37:46 2017 +0100
Produce VP9 videos instead of VP8
Signed-off-by: Marcin Mikołajczak <me m4sk in>
animation/gnomerender.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/animation/gnomerender.py b/animation/gnomerender.py
index e5f48bb..c9e85bc 100644
--- a/animation/gnomerender.py
+++ b/animation/gnomerender.py
@@ -36,7 +36,7 @@ def transcode(lang,x=854,bitrate="300k"):
#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 = "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 ! vp9enc 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]