update a/v mapping
This commit is contained in:
parent
5da0a07693
commit
8f059e373a
1 changed files with 2 additions and 2 deletions
|
|
@ -236,7 +236,7 @@ def stream(video, target, profile, info, audio_track=0, flags={}):
|
||||||
]
|
]
|
||||||
if info['video'][0].get("force_framerate"):
|
if info['video'][0].get("force_framerate"):
|
||||||
video_settings += ['-r:v', str(fps)]
|
video_settings += ['-r:v', str(fps)]
|
||||||
video_settings += ['-map', '0:%s,0:0' % info['video'][0]['id']]
|
video_settings += ['-map', '0:v:0']
|
||||||
audio_only = False
|
audio_only = False
|
||||||
else:
|
else:
|
||||||
video_settings = ['-vn']
|
video_settings = ['-vn']
|
||||||
|
|
@ -261,7 +261,7 @@ def stream(video, target, profile, info, audio_track=0, flags={}):
|
||||||
mono_mix = True
|
mono_mix = True
|
||||||
else:
|
else:
|
||||||
mono_mix = False
|
mono_mix = False
|
||||||
audio_settings += ['-map', '0:%s,0:%s' % (info['audio'][audio_track]['id'], n)]
|
audio_settings += ['-map', '0:a:0']
|
||||||
audio_settings += ['-ar', str(audiorate)]
|
audio_settings += ['-ar', str(audiorate)]
|
||||||
if audio_codec != 'libopus':
|
if audio_codec != 'libopus':
|
||||||
audio_settings += ['-aq', str(audioquality)]
|
audio_settings += ['-aq', str(audioquality)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue