only take audiochannels if set
This commit is contained in:
parent
f3bcfebf25
commit
bc6579b2ab
1 changed files with 5 additions and 4 deletions
|
@ -262,10 +262,11 @@ def video_cmd(video, target, profile, info):
|
||||||
ac = 2
|
ac = 2
|
||||||
else:
|
else:
|
||||||
ac = info['audio'][0].get('channels', audiochannels)
|
ac = info['audio'][0].get('channels', audiochannels)
|
||||||
if ac:
|
if audiochannels:
|
||||||
ac = min(ac, audiochannels)
|
if ac:
|
||||||
else:
|
ac = min(ac, audiochannels)
|
||||||
ac = audiochannels
|
else:
|
||||||
|
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