From e07bad72fa096138cdd2c2978cc3e8bc26c0feda Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Fri, 8 Mar 2013 18:03:02 -0800 Subject: [PATCH] added ffmpeg command --- Transcoder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Transcoder.py b/Transcoder.py index d34c1f72..fcf5e980 100644 --- a/Transcoder.py +++ b/Transcoder.py @@ -20,6 +20,7 @@ def Transcode_file(filePath): config.read(configFilename) duplicate = config.get("Transcoder", "duplicate") + ffmpeg = os.path.normpath(config.get("Transcoder", "ffmpeg")) outputVideoExtension = config.get("Transcoder", "outputVideoExtension") outputVideoCodec = config.get("Transcoder", "outputVideoCodec") outputVideoFramrate = config.get("Transcoder", "outputVideoFramrate") @@ -29,8 +30,8 @@ def Transcode_file(filePath): name, ext = os.path.splitext(file) newfilePath = os.path.normpath(name + outputVideoExtension) - #ffmpeg = os.path.join(os.path.join(os.path.normpath(sys.argv[0]), ffmpeg), ffmpeg) #if not in path... got to figure out where this goes. - command = ['ffmpeg', '-i', filePath] + + command = [ffmpeg, '-i', filePath] if outputVideoCodec: command.append('-c:v') command.append(outputVideoCodec)