mpegtsmux fails reason not-negotiated (-4)

Stefan de Konink stefan at konink.de
Mon Apr 6 00:49:17 PDT 2015


On Sun, 5 Apr 2015, Thiago Santos wrote:

>>  Using mpegpsmux, also results into output. Is there anything I am
>>  overseeing?
>
> Add mpegvideoparse before mpegtsmux, it needs parsed mpeg video input and 
> mpeg2enc either doesn't produce parsed output or it doesn't announce it as 
> being so.

Thanks. Works as a charm.

One step beyond this, if I want to add two programs into one 
transport, how would I mux the following?

Input #0, mpegts, from '/tmp/test.out':
   Duration: 00:00:09.12, start: 18041.030078, bitrate: 6853 kb/s
   Program 1
     Metadata:
       service_name    : Metadata not yet supported in Gstreamer?
     Stream #0:0[0xff]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 
tbr, 90k tbn, 50 tbc
     Stream #0:1[0x100](dut): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, 
stereo, s16p, 256 kb/s
     Stream #0:2[0x111](dut): Subtitle: dvb_teletext ([6][0][0][0] / 
0x0006)
   Program 2
     Metadata:
       service_name    : Metadata is not yet supported
     Stream #0:3[0x101](dut): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, 
stereo, s16p, 256 kb/s
     Stream #0:4[0x120]: Audio: s302m (BSSD / 0x44535342), 0 channels


>From the following pipe I would like to have the second audio stream end 
up in a second program.

gst-launch-1.0 mpegtsmux name="muxer" ! filesink location=multi.ts 
videotestsrc ! mpeg2enc ! mpegvideoparse ! muxer. audiotestsrc ! 
audioconvert ! twolamemp2enc ! mpegaudioparse ! muxer. audiotestsrc ! 
audioconvert ! twolamemp2enc ! mpegaudioparse ! muxer.

Input #0, mpegts, from 'multi.ts':
   Duration: 00:00:10.37, start: 3600.000000, bitrate: 1667 kb/s
   Program 1
     Stream #0:0[0x41]: Video: mpeg1video ([1][0][0][0] / 0x0001), 
yuv420p(tv), 320x240 [SAR 1:1 DAR 4:3], 1125 kb/s, 30 fps, 30 tbr, 90k 
tbn, 30 tbc
     Stream #0:1[0x42]: Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, mono, 
s16p, 192 kb/s
     Stream #0:2[0x43]: Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, mono, 
s16p, 192 kb/s


Stefan


More information about the gstreamer-devel mailing list