[FFmpeg-devel] [ask for help] commond line for multi-program output

atv_ffmpeg ffmpegdev
Sat Jan 16 07:00:59 CET 2010


I have a ts file which contains 3 programs, and want to 'ffmpeg' it. First,
the command line looks like
./ffmpeg -i src.ts -b 8000k out.ts
It certainly outputs a ts file with only one program, then I try '-map'
option,
./ffmpeg -i src.ts out.ts -b 8000k  -map 0:0 -map 0:1 -map 0:2 -newvideo
-map 0:3 -newaudio

The output file is unusable.
Could some one tell me how to output a multi-program file?
Thanks a lot.

Details of source file copied from ffmpeg message:

Program 301 PRO-1
    Stream #0.0[0x200]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR
4:3], 10000 kb/s, 25 tbr,
 90k tbn, 50 tbc
    Stream #0.1[0x28a](eng): Audio: mp2, 48000 Hz, mono, s16, 128 kb/s
  Program 302 PRO-2
    Stream #0.2[0x201]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR
4:3], 10000 kb/s, 25 tbr,
 90k tbn, 50 tbc
    Stream #0.3[0x294](eng): Audio: mp2, 48000 Hz, mono, s16, 128 kb/s



More information about the ffmpeg-devel mailing list