mix 2 mono channels into stereo(common for fcp dv mov files)
This commit is contained in:
parent
b3d3d57e36
commit
3ab9a32627
1 changed files with 9 additions and 1 deletions
|
@ -245,7 +245,15 @@ def video_cmd(video, target, profile, info):
|
||||||
n = 0
|
n = 0
|
||||||
else:
|
else:
|
||||||
n = 1
|
n = 1
|
||||||
video_settings += ['-map', '0:%s,0:%s' % (info['audio'][0]['id'], n)]
|
#mix 2 mono channels into stereo(common for fcp dv mov files)
|
||||||
|
if len(info['audio']) == 2 \
|
||||||
|
and len(filter(None, [a['channels'] == 1 or None for a in info['audio']])) == 2:
|
||||||
|
video_settings += [
|
||||||
|
'-filter_complex',
|
||||||
|
'[0.%s][0.%s] amerge' % (info['audio'][0]['id'], info['audio'][1]['id'])
|
||||||
|
]
|
||||||
|
else:
|
||||||
|
video_settings += ['-map', '0:%s,0:%s' % (info['audio'][0]['id'], n)]
|
||||||
audio_settings = ['-ar', str(audiorate), '-aq', str(audioquality)]
|
audio_settings = ['-ar', str(audiorate), '-aq', str(audioquality)]
|
||||||
ac = info['audio'][0].get('channels', audiochannels)
|
ac = info['audio'][0].get('channels', audiochannels)
|
||||||
if ac:
|
if ac:
|
||||||
|
|
Loading…
Reference in a new issue