Update stream_server.py
Browse files- stream_server.py +1 -1
stream_server.py
CHANGED
|
@@ -55,7 +55,7 @@ def convert_to_hls(input_file, output_playlist, segment_prefix='segment', segmen
|
|
| 55 |
'-hls_list_size', '0', # Keep all segments in the playlist
|
| 56 |
'-hls_flags', 'append_list+omit_endlist+program_date_time', # Flags to maintain continuity
|
| 57 |
'-hls_segment_type', 'mpegts', # Ensure the segment type is TS
|
| 58 |
-
'-hls_segment_filename', f'{segment_prefix}%d.ts', # Naming pattern for the .ts segments
|
| 59 |
'-force_key_frames', f'expr:gte(t,n_forced*{segment_duration})', # Force keyframes for segment duration consistency
|
| 60 |
'-avoid_negative_ts', 'make_zero', # Avoid negative timestamps
|
| 61 |
output_playlist # Output .m3u8 playlist file
|
|
|
|
| 55 |
'-hls_list_size', '0', # Keep all segments in the playlist
|
| 56 |
'-hls_flags', 'append_list+omit_endlist+program_date_time', # Flags to maintain continuity
|
| 57 |
'-hls_segment_type', 'mpegts', # Ensure the segment type is TS
|
| 58 |
+
'-hls_segment_filename', f'{HLS_DIR}/{segment_prefix}%d.ts', # Naming pattern for the .ts segments
|
| 59 |
'-force_key_frames', f'expr:gte(t,n_forced*{segment_duration})', # Force keyframes for segment duration consistency
|
| 60 |
'-avoid_negative_ts', 'make_zero', # Avoid negative timestamps
|
| 61 |
output_playlist # Output .m3u8 playlist file
|