Professional Documents
Culture Documents
FFMPEG - Build Transport Stream With Multiple Programs - Video Production Stack Exchange
FFMPEG - Build Transport Stream With Multiple Programs - Video Production Stack Exchange
Video Production
I want to build a transport stream with multiple programs. To simplify the original post, I'm using three files that are the same video, but with different
watermarks to track them. (Went this way b/c Gyans request for full log makes this shorter)
2
ffmpeg -i KeanuRambo.ts -i KeanuLincoln.ts -i KeanuBush.ts \
-map 0:0 -map 0:1 -map 1:0 -map 1:1 -map 2:0 -map 2:1 \
-program program_num=3:title=Bush:s4:s5 \
The output file is zero bytes. Here is what the -report produced:
Reading option '-i' ... matched as input url with argument 'KeanuRambo.ts'.
Reading option '-i' ... matched as input url with argument 'KeanuLincoln.ts'.
Reading option '-i' ... matched as input url with argument 'KeanuBush.ts'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:0'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:1'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '1:0'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '1:1'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '2:0'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '2:1'.
Reading option '-program' ... matched as option 'program' (add program with specified streams) with argument 'program_num=1:title=Ram:s0:s1'.
Reading option '-program' ... matched as option 'program' (add program with specified streams) with argument 'program_num=2:title=Linc:s2:s3'.
Reading option '-program' ... matched as option 'program' (add program with specified streams) with argument 'program_num=3:title=Bush:s4:s5'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'mpegts'.
Program 1
Metadata:
ffmpeg
Share Improve this question Follow edited May 8, 2018 at 2:40 asked May 4, 2018 at 21:20
Kenny C
21 1 3
Content updated (log was 1.7MB) to just use same video and now the log is much cleaner.
– Kenny C
May 8, 2018 at 2:41
-map 0:0 -map 0:1 -map 1:0 -map 1:1 -map 2:0 -map 2:1 \
-program program_num=3:title=Bush:st=4:st=5 \
-f mpegts out5.ts