From a9536f5dc5e382234c9ac8dc5a59a441f7fcf594 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Mon, 26 Jul 2010 21:54:00 +1000 Subject: [PATCH] Fixed fps check to work without X11 --- encode.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, ) -- 2.39.2