From 37bf7b770972431cf9286c48575620a60ef2dd82 Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Fri, 12 Feb 2010 12:39:39 +0100 Subject: [PATCH] Error Corrections --- n900-encode.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/n900-encode.py b/n900-encode.py index 20ef48c..c41480f 100755 --- a/n900-encode.py +++ b/n900-encode.py @@ -23,7 +23,7 @@ _mpbin = None # mplayer binary, if set to None it is searched in your $PATH _ffbin = None # ffmpeg binary, if set to None it is searched in your $PATH ########################################################################################### -# Main Program, no changes needed bekow this line +# Main Program, no changes needed below this line ########################################################################################### def main(argv): @@ -153,8 +153,9 @@ def convert(input, output, res, abitrate, vbitrate, threads, mpopts): "-benchmark", "-quiet", "-msglevel", "all=-1", - mpopts, input ] + for mpopt in mpopts.split(" "): + mpvideodec.append(mpopt) # Define mplayer command for audio decoding mpaudiodec = [ mpbin, @@ -164,8 +165,10 @@ def convert(input, output, res, abitrate, vbitrate, threads, mpopts): "-noframedrop", "-quiet", "-msglevel", "all=-1", - mpopts, input ] + for mpopt in mpopts.split(" "): + mpaudiodec.append(mpopt) + # Define ffmpeg command for a/v encoding ffmenc = [ ffbin, @@ -227,7 +230,7 @@ def usage(): print "n900-encode.py usage:\n" print "--input [-i]: Video to Convert" print "--output [-o]: Name of the converted Video" - print "--mpopts \"\" [-m]: Additional options for mplayer (eg -sid 1 or -aid 1)" + print "--mpopts \"\" [-m]: Additional options for mplayer (eg -sid 1 or -aid 1) Must be enclosed in \"\"" print "--abitrate
[-a]: Audio Bitrate in KBit/s" print "--vbitrate
[-v]: Video Bitrate in kBit/s" print "--threads [-t]: Use Threads to encode"