mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-09-17 06:32:30 +02:00
Reformat
This commit is contained in:
@@ -743,12 +743,14 @@ class UltimateService:
|
||||
# Map all video (will be just one due to highest_quality_only), all audio, and optional subtitles
|
||||
ffmpeg_cmd = (
|
||||
f'pipe://ffmpeg -loglevel fatal '
|
||||
f'-re '
|
||||
f'-fflags +genpts+discardcorrupt '
|
||||
f'-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 2 '
|
||||
f'-i "{stream_url}" '
|
||||
f'-map 0:v -map 0:a? '
|
||||
f'-c copy '
|
||||
f'-f mpegts '
|
||||
f'-flush_packets 1 '
|
||||
f'-mpegts_flags resend_headers '
|
||||
f'-metadata service_name="{channel_name}" '
|
||||
f'pipe:1'
|
||||
|
||||
Reference in New Issue
Block a user