Demuxing mpegts into individual program streams

Edward Hervey bilboed at bilboed.com
Tue May 6 00:42:15 PDT 2014


Hi,

On Mon, 2014-05-05 at 21:15 -0700, rishi wrote:
> Hi All,
> 
> I'm trying to demux a multi program mpeg TS to get individual program
> streams. I tried tsdemux but it gives out audio(PID=0x5d) and
> video(PID=0xa3) data seperately but not in TS format. Pipeline used which
> works:
> gst-launch-1.0  filesrc location=Input.ts ! tsdemux name=d  program-number=2
> d.video_00a3 ! queue !  fakesink d.audio_005d  ! queue ! fakesink
> 
> 
> I then tried to mux this AV data using mpegtsmux but the pipeline hangs:
> gst-launch-1.0  filesrc location=*Input.ts* ! tsdemux name=d 
> program-number=2 d.video_00a3 ! queue ! mpegtsmux name=mux ! filesink
> location=*Out.ts* d.audio_005d  ! queue ! mux.

  You might want to add the proper parsers between demuxer and muxer
(ex: h264parse, mpegvideoparse, mpegaudioparse,...). That might fix some
issues.

   Edward

> 
> Is this the proper way to demux a program stream from a multi-program TS ?
> If yes then why does the mpegtsmux pipeline hangs ?
> 
> Need your help on this seemly small problem :)
> 
> 
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Demuxing-mpegts-into-individual-program-streams-tp4666757.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140506/1df0dd8d/attachment.sig>


More information about the gstreamer-devel mailing list