mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-09-21 16:42:18 +02:00
Reformat
This commit is contained in:
+8
-5
@@ -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'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user