From 21b4d3cea4f8456f677ea3e338b258e224135e81 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 22 Mar 2012 00:17:40 +0100 Subject: [PATCH] more webm settings --- pandora_client/extract.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_client/extract.py b/pandora_client/extract.py index 325b423..73358ed 100644 --- a/pandora_client/extract.py +++ b/pandora_client/extract.py @@ -140,9 +140,15 @@ def video_cmd(video, target, profile, info): '-vb', '%dk'%bitrate, '-aspect', aspect, '-g', '%d' % int(fps*5), - '-deadline', 'good', '-cpu-used', '0', '-vf', 'yadif,hqdn3d,scale=%s:%s'%(width, height), ] + extra + if format == 'webm': + video_settings += [ + '-deadline', 'good', + '-cpu-used', '0', + '-lag-in-frames', '16', + '-auto-alt-ref', '1', + ] else: video_settings = ['-vn']