This commit is contained in:
Nirvana
2026-01-30 11:03:56 +01:00
parent 9fa6f94b64
commit 568e025d02
+8 -5
View File
@@ -734,12 +734,15 @@ class UltimateService:
# Build ffmpeg pipe command
# 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'ffmpeg -loglevel fatal '
f'-fflags +genpts+igndts+discardcorrupt '
f'-err_detect ignore_err '
f'-i "{stream_url}" '
f'-map 0:v -map 0:a -map 0:s? ' # Map video, all audio, optional subtitles
f'-c:v copy -c:a copy ' # Copy all codecs
f'-f mpegts ' # MPEG-TS output format
f'-metadata service_name="{channel_name}" ' # Set service name
f'-map 0:v -map 0:a? -map 0:s? '
f'-c:v copy -c:a copy '
f'-max_interleave_delta 0 '
f'-f mpegts '
f'-metadata service_name="{channel_name}" '
f'pipe:1'
)