]> git.parisson.com Git - telemeta.git/commitdiff
goto stereo, tune x264 for 480p
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 15 Dec 2013 23:09:45 +0000 (00:09 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 15 Dec 2013 23:09:45 +0000 (00:09 +0100)
tools/scripts/transcode/transcode.py

index 451fa0eb080efc3b136655435e7ecc5a6bf4d483..4a08335011661fd8ded3b84d62c201de6a0d528a 100755 (executable)
@@ -21,9 +21,10 @@ preview_tc = '00:00:05'
 threads = 4
 
 ffmpeg_args = {
-               'mp3' : '-i "%s" -vn -acodec libmp3lame -aq 6 -ac 1',
+               'mp3' : '-i "%s" -vn -acodec libmp3lame -aq 6 -ac 2',
                'ogg' : '-i "%s" -vn -acodec copy',
-               'mp4' : '-i "%s" -vcodec libx264 -r 30 -b 1024k -threads ' + str(threads) + ' -acodec libfaac -ar 48000 -ab 96k -ac 1',
+               'mp4' : '-i "%s" -vcodec libx264 -threads ' + str(threads) + \
+                       ' -c:v libx264 -crf 17 -maxrate 1100k -bufsize 1835k -acodec libfaac -ab 96k -ac 2',
                'png' : '-ss ' + preview_tc + ' -i "%s"',
               }