[FFmpeg-user] Remux TS to MPG: spedify stream order

Moritz Barsnick barsnick at gmx.net
Fri Feb 26 07:04:01 CET 2016


Hi Dumpfbacke(?),

On Fri, Feb 26, 2016 at 00:37:56 +0100, Dmpfbck wrote:
> Streams within the .ts file:
>     Stream #0:0[0xa3]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), [...]
>     Stream #0:1[0x68](ger): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
>     Stream #0:2[0x6c]: Unknown: none ([5][0][0][0] / 0x0005)
>     Stream #0:3[0x69](ger): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
>     Stream #0:4[0x6a](ger): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 384 kb/s (clean effects)
>     Stream #0:5[0x6e](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
>     Stream #0:6[0x6f]: Unknown: none ([11][0][0][0] / 0x000B)
>     Stream #0:7[0x70]: Unknown: none ([12][0][0][0] / 0x000C)
> 
> Stream order in the resulting .mpg file:
>     Stream #0:0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
>     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [...]
>     Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 384 kb/s

Please, please, *please* always show us the used command line and the
complete, uncut console output. It holds lots of valuable information
(if not for you, at least for us)!

> Q: As some applications (AviDemux, MkvMerge) seem to have a problem with
> this[*],

Feel free to file bug reports there. Most formats don't actually
require the video stream to be first.

> the stream order in the .mpg file is still as shown above. So, is there
> a way to make the video track always be stream #0?

I have a suspicion what's wrong, but we need your log info first.

Moritz


More information about the ffmpeg-user mailing list