[gst-devel] mp4 demux pipeline

Tim-Philipp Müller t.i.m at zen.co.uk
Wed Aug 11 12:56:07 CEST 2010


On Wed, 2010-08-11 at 16:10 +0530, Nitin Das wrote:

>  I am looking for the c code of mp4 demuxer pipeline. I have created
> the example pipeline :-
>
> gst-launch-0.10 filesrc location=VTS_02_1.mp4 ! qtdemux name=demux
> demux.video_00 ! ffdec_h264 ! xvimagesink
>
> how do convert qtdemux name=demux demux.video_00 into a c code.

Have you read the application developer's manual yet?

pipeline = gst_parse_launch ("filesrc location=VTS_02_1.mp4 ! qtdemux
name=demux demux.video_00 ! ffdec_h264 ! xvimagesink");

is one option.

Alternatively, g_signal_connect() to qtdemux's "pad-added" signal.

You may also want to investigate the uridecodebin, decodebin2, and
playbin2 elements.

Cheers
 -Tim






More information about the gstreamer-devel mailing list