Skip to content

Commit

Permalink
add newslines for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
barbibulle committed May 20, 2023
1 parent e385097 commit ff3e1b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Python/utils/mp4-dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ def OutputHls(options, set_attributes, audio_sets, video_sets, subtitles_sets, s
master_playlist_file.write(media_playlist_path+'\n')
else:
# no audio
master_playlist_file.write('#EXT-X-STREAM-INF:{}AVERAGE-BANDWIDTH={:.0f},BANDWIDTH={:.0f},VIDEO-RANGE={},CODECS="{}",RESOLUTION={:.0f}x{:.0f},FRAME-RATE={:.3f}'.format(
master_playlist_file.write('#EXT-X-STREAM-INF:{}AVERAGE-BANDWIDTH={:.0f},BANDWIDTH={:.0f},VIDEO-RANGE={},CODECS="{}",RESOLUTION={:.0f}x{:.0f},FRAME-RATE={:.3f}\n'.format(
subtitles_group,
video_track.average_segment_bitrate,
video_track.max_segment_bitrate,
Expand All @@ -1024,7 +1024,7 @@ def OutputHls(options, set_attributes, audio_sets, video_sets, subtitles_sets, s
iframe_average_segment_bitrate,iframe_max_bitrate = OutputHlsIframeIndex(options, video_track, all_audio_tracks + all_video_tracks, media_subdir, iframes_playlist_name, media_file_name)

# this will be written later
iframe_playlist_lines.append('#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH={:.0f},BANDWIDTH={:.0f},VIDEO-RANGE={},CODECS="{}",RESOLUTION={:.0f}x{:.0f},URI="{}"'.format(
iframe_playlist_lines.append('#EXT-X-I-FRAME-STREAM-INF:AVERAGE-BANDWIDTH={:.0f},BANDWIDTH={:.0f},VIDEO-RANGE={},CODECS="{}",RESOLUTION={:.0f}x{:.0f},URI="{}"\n'.format(
iframe_average_segment_bitrate,
iframe_max_bitrate,
video_track.video_range,
Expand Down

0 comments on commit ff3e1b9

Please sign in to comment.