From: James Bunton Date: Mon, 26 Jul 2010 11:54:00 +0000 (+1000) Subject: Fixed fps check to work without X11 X-Git-Url: https://code.delx.au/transcoding/commitdiff_plain/a9536f5dc5e382234c9ac8dc5a59a441f7fcf594 Fixed fps check to work without X11 --- diff --git a/encode.py b/encode.py index 32e6451..c788bb6 100755 --- a/encode.py +++ b/encode.py @@ -27,7 +27,11 @@ def mkarg(arg): def midentify(source, field): process = subprocess.Popen( - ["mplayer", "-frames", "0", "-identify", source], + [ + "mplayer", source, + "-ao", "null", "-vo", "null", + "-frames", "0", "-identify", + ], stdout=subprocess.PIPE, stderr=subprocess.PIPE, )