From 512b4d789bec4badcd4045ddc5ad70b886bf2662 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Mon, 1 Apr 2013 12:00:40 -0300 Subject: [PATCH] Always transcode ALL streams I just ran into an issue where only certain audio streams (which happened to be French) of a file got transcoded. -map 0 forces ffmpeg to always transcode all streams. --- autoProcess/Transcoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoProcess/Transcoder.py b/autoProcess/Transcoder.py index a4619624..0f8f36a3 100644 --- a/autoProcess/Transcoder.py +++ b/autoProcess/Transcoder.py @@ -61,7 +61,7 @@ def Transcode_directory(dirName): outputVideoExtension = '-transcoded' + outputVideoExtension # adds '-transcoded.ext' newfilePath = os.path.normpath(name + outputVideoExtension) - command = [ffmpeg, '-i', filePath] + command = [ffmpeg, '-i', filePath, '-map', '0'] if outputVideoCodec: command.append('-c:v') command.append(outputVideoCodec)