How can use mpegts APIs in external C/C++ program

Edward Hervey bilboed at bilboed.com
Tue May 6 06:15:29 PDT 2014


Hi,

On Tue, 2014-05-06 at 04:24 -0700, Gstlili wrote:
> Hi all,
> I have written a Gstreamer program that do these functions:
> - Listen to RTP streaming (MPEG-TS stream)
> - Demux the MPEG-TS stream
> - Filter the audio track to save it into a wave file
> 
> This program *work perfectly* with a stream that *have only one service (one
> program)*.
> 
> Now, I have a stream with* multi-program and multi audio tracks*. *I want to
> select only a specific audio track from a specific program to save it into a
> wave file, knowing that I have the PIDs of all tracks.*

  Just set the program-number property of tsdemux to the program you
want, and it will only expose elementary streams from that program.

     Edward

> 
> How can I fix the following C program "gsttest.c"? 
> Or, how can I use the mpegts APIs that are under "/gst/mpegts/*.h" ?
> Or, how can I select the program number using the tsdemux plugin in C/C++ ?
> 
> Thank you,
> I will be happy for help.
> 
> 
> gsttest.c
> <http://gstreamer-devel.966125.n4.nabble.com/file/n4666763/gsttest.c>  
> 
> 
> 
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-can-use-mpegts-APIs-in-external-C-C-program-tp4666763.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

-- 
Edward Hervey
bilboed at bilboed.com



More information about the gstreamer-devel mailing list