From 94670f569c6f1a2080e3b24a32b83514aa510aed Mon Sep 17 00:00:00 2001 From: lucas_nz Date: Sat, 12 May 2012 23:20:41 +1200 Subject: [PATCH] With some versions of ffmpeg when converting audio codec you must specify the number of audio channels otherwise two channels is assumed by ffmpeg. --- plugins/video/transcode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/video/transcode.py b/plugins/video/transcode.py index 792ecec..d2b6789 100644 --- a/plugins/video/transcode.py +++ b/plugins/video/transcode.py @@ -271,6 +271,8 @@ def select_audioch(inFile, tsn): if video_info(inFile)['aCh'] > 6: debug('Too many audio channels for AC-3, using 5.1 instead') return '-ac 6' + elif video_info(inFile)['aCh']: + return '-ac %i' % video_info(inFile)['aCh'] return '' def select_audiolang(inFile, tsn): -- 2.11.4.GIT