[FFmpeg-user] Making streams "non-default"

shashchatterjee at aim.com shashchatterjee at aim.com
Sun Jan 27 00:58:21 CET 2013



Hi,

I am complete ffmpeg newbie!  I am attempting to simply reorder streams, and change the container.  Here's my input stream order:


Input #0, mpegts, from 'myvideo.m2ts':
  Duration: 02:50:15.29, start: 599.958300, bitrate: 36238 kb/s
  Program 1 
    Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x1100](eng): Audio: truehd (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), s32
    Stream #0:2[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s
    Stream #0:3[0x1101](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s
    Stream #0:4[0x1200](eng): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:5[0x1201](eng): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:6[0x1202](jpn): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:7[0x1203](jpn): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:8[0x1204](jpn): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)


Here's the command I used:


ffmpeg -i myvideo.m2ts -map 0:0 -map 0:2 -map 0:1 -map 0:4 -map 0:5 -c:v copy -c:a copy -c:s copy myvideo.mkv


Here's the output (quit the transcoding prematurely to shorten the time):


Input #0, matroska,webm, from 'myvideo.mkv':
  Metadata:
    ENCODER         : Lavf54.61.101
  Duration: 00:05:58.15, start: 0.000000, bitrate: 29627 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
    Stream #0:2(eng): Audio: truehd, 48000 Hz, 5.1(side), s32 (default)
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle (default)
    Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle (default)


What options do I use to make the streams, particularly the subtitle streams, not "default", as in the original?

Thanks,
Shash

 


More information about the ffmpeg-user mailing list