Skip to content

Commit e21a81a

Browse files
committed
Fixed the place where the adaptation_set parameter is placed
1 parent 06da634 commit e21a81a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ffmpeg_streaming/_command_builder.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def _get_dash_stream(key, rep):
5454
'map': 0,
5555
f's:v:{str(key)}': rep.size,
5656
f'b:v:{str(key)}': rep.bitrate.calc_video(),
57-
'adaptation_sets': 'id=0,streams=v id=1,streams=a',
5857
}
5958

6059
args.update(_get_audio_bitrate(rep, key))
@@ -69,11 +68,12 @@ def _dash(dash):
6968
dirname, name = get_path_info(dash.output_)
7069
_args = dash.format.all
7170
_args.update({
72-
'use_timeline': USE_TIMELINE,
73-
'use_template': USE_TEMPLATE,
74-
'init_seg_name': '{}_init_$RepresentationID$.$ext$'.format(name),
75-
"media_seg_name": '{}_chunk_$RepresentationID$_$Number%05d$.$ext$'.format(name),
76-
'f': 'dash'
71+
'use_timeline': USE_TIMELINE,
72+
'use_template': USE_TEMPLATE,
73+
'init_seg_name': '{}_init_$RepresentationID$.$ext$'.format(name),
74+
"media_seg_name": '{}_chunk_$RepresentationID$_$Number%05d$.$ext$'.format(name),
75+
'f': 'dash',
76+
'adaptation_sets': 'id=0,streams=v id=1,streams=a',
7777
})
7878
_args.update(dash.options)
7979
args = cnv_options_to_args(_args)

0 commit comments

Comments
 (0)