Skip to content

Commit ead6234

Browse files
minor improvement
1 parent 23049ef commit ead6234

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

ffmpeg_streaming/_command_builder.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ def _dash(dash):
6767
dirname, name = get_path_info(dash.output_)
6868
_args = dash.format.all
6969
_args.update({
70-
'use_timeline': USE_TIMELINE,
71-
'use_template': USE_TEMPLATE,
72-
'init_seg_name': '{}_init_$RepresentationID$.$ext$'.format(name),
73-
"media_seg_name": '{}_chunk_$RepresentationID$_$Number%05d$.$ext$'.format(name),
70+
'use_timeline': USE_TIMELINE,
71+
'use_template': USE_TEMPLATE,
72+
'init_seg_name': '{}_init_$RepresentationID$.$ext$'.format(name),
73+
"media_seg_name": '{}_chunk_$RepresentationID$_$Number%05d$.$ext$'.format(name),
7474
'f': 'dash'
7575
})
7676
_args.update(dash.options)
@@ -95,13 +95,13 @@ def _get_hls_stream(hls, rep, dirname, name):
9595
"""
9696
args = hls.format.all
9797
args.update({
98-
'hls_list_size': HLS_LIST_SIZE,
99-
'hls_time': HLS_TIME,
100-
'hls_allow_cache': HLS_ALLOW_CACHE,
101-
'hls_segment_filename': "{}/{}_{}p_%04d.{}".format(dirname, name, rep.size.height, _hls_seg_ext(hls)),
102-
'hls_fmp4_init_filename': "{}_{}p_init.mp4".format(name, rep.size.height),
103-
's:v': rep.size,
104-
'b:v': rep.bitrate.calc_video()
98+
'hls_list_size': HLS_LIST_SIZE,
99+
'hls_time': HLS_TIME,
100+
'hls_allow_cache': HLS_ALLOW_CACHE,
101+
'hls_segment_filename': "{}/{}_{}p_%04d.{}".format(dirname, name, rep.size.height, _hls_seg_ext(hls)),
102+
'hls_fmp4_init_filename': "{}_{}p_init.mp4".format(name, rep.size.height),
103+
's:v': rep.size,
104+
'b:v': rep.bitrate.calc_video()
105105
})
106106
args.update(_get_audio_bitrate(rep))
107107
args.update(rep.options)

0 commit comments

Comments
 (0)