[gst-devel] from pipeline to code

Daniel Díaz mrchapp at gmail.com
Tue Jan 8 19:57:53 CET 2008


On Jan 8, 2008 4:16 AM, Daniel Shachrur <deneeel at hotmail.com> wrote:
> look at:
> gst-launch-0.10 udpsrc port=50000 caps=application/x-rtp ! rtpmp4vdepay ! video/mpeg,mpegversion=4,width=720,height=576,framerate=25/1 ! ffdec_mpeg4 ! videoflip method=clockwise ! xvimagesink sync=false
> this pipe;ine can be coded as following:
> videodepay = gst_element_factory_make ("rtpmp4vdepay", "vdepay");
> decoder = gst_element_factory_make ("ffdec_mpeg4", "ffmpeg-decoder");
> etc...
> how can i code the following parts: video/mpeg,mpegversion=4,width=720,height=576,framerate=25/1 and
>                                                         videoflip method=clockwise

Those are GStreamer elements as well, and you should instantiate one
for each. Do:
  gst-inspect capsfilter
  gst-inspect videoflip

is equivalent to:
  capsfilter caps=video/mpeg,mpegversion=4,width=720,height=576,framerate=25/1

Make sure you set the properties (both for the capsfilter and the
videoflip element) when creating the pipeline.


Daniel Díaz
yosoy at danieldiaz.org

> what are there types? what gst functions are needed?
> thanx
> daniel

More information about the gstreamer-devel mailing list