]> code.delx.au - transcoding/commitdiff
Fixed fps check to work without X11
authorJames Bunton <jamesbunton@fastmail.fm>
Mon, 26 Jul 2010 11:54:00 +0000 (21:54 +1000)
committerJames Bunton <jamesbunton@fastmail.fm>
Mon, 26 Jul 2010 11:54:00 +0000 (21:54 +1000)
encode.py

index 32e6451aec7148f120a216b5601cfdfa40af92cc..c788bb632d8df67107b85633068dfe5d61a4289e 100755 (executable)
--- 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,
        )