do not set -ac if audiochannels is None
This commit is contained in:
parent
bc6579b2ab
commit
bb8f91bbd8
1 changed files with 6 additions and 7 deletions
|
@ -261,12 +261,11 @@ def video_cmd(video, target, profile, info):
|
||||||
if mono_mix:
|
if mono_mix:
|
||||||
ac = 2
|
ac = 2
|
||||||
else:
|
else:
|
||||||
ac = info['audio'][0].get('channels', audiochannels)
|
ac = info['audio'][0].get('channels')
|
||||||
if audiochannels:
|
if not ac:
|
||||||
if ac:
|
|
||||||
ac = min(ac, audiochannels)
|
|
||||||
else:
|
|
||||||
ac = audiochannels
|
ac = audiochannels
|
||||||
|
if audiochannels:
|
||||||
|
ac = min(ac, audiochannels)
|
||||||
audio_settings += ['-ac', str(ac)]
|
audio_settings += ['-ac', str(ac)]
|
||||||
if audiobitrate:
|
if audiobitrate:
|
||||||
audio_settings += ['-ab', audiobitrate]
|
audio_settings += ['-ab', audiobitrate]
|
||||||
|
|
Loading…
Reference in a new issue