fix dual audio embedding

This commit is contained in:
MaZderMind 2015-08-13 18:51:47 +02:00
parent ae790c31ab
commit 0532f186f0

View file

@ -129,7 +129,7 @@ def rendertask(task):
# invoke avconv aka ffmpeg and renerate a lossles-dv from the frames # invoke avconv aka ffmpeg and renerate a lossles-dv from the frames
# if we're not in debug-mode, suppress all output # if we're not in debug-mode, suppress all output
if task.outfile.endswith('.ts'): if task.outfile.endswith('.ts'):
cmd = 'cd {0} && ffmpeg -f image2 -i .frames/%04d.png -pix_fmt yuv420p -c:v mpeg2video -qscale 0 -f mpegts -aspect 16:9 -shortest -ar 48000 -ac 1 -f s16le -i /dev/zero -ar 48000 -ac 1 -f s16le -i /dev/zero "{1}"'.format(task.workdir, task.outfile) cmd = 'cd {0} && ffmpeg -f image2 -i .frames/%04d.png -c:v mpeg2video -qscale 0 -aspect 16:9 -ar 48000 -ac 1 -f s16le -i /dev/zero -ar 48000 -ac 1 -f s16le -i /dev/zero -map 0:0 -map 1:0 -map 2:0 -shortest -f mpegts "{1}"'.format(task.workdir, task.outfile)
else: else:
cmd = 'cd {0} && ffmpeg -ar 48000 -ac 2 -f s16le -i /dev/zero -f image2 -i .frames/%04d.png -target pal-dv -aspect 16:9 -shortest "{1}"'.format(task.workdir, task.outfile) cmd = 'cd {0} && ffmpeg -ar 48000 -ac 2 -f s16le -i /dev/zero -f image2 -i .frames/%04d.png -target pal-dv -aspect 16:9 -shortest "{1}"'.format(task.workdir, task.outfile)