problem with gst_parse_launch() function

Stefan Sauer ensonic at hora-obscura.de
Fri Feb 28 01:37:57 PST 2014


On 02/27/2014 02:40 PM, d wrote:
> Hi,
>
> Im running the tutorial's code of Gstreamer.
>
> this is the link for the tutorial (the simplest one- Hello World):
>
> http://docs.gstreamer.com/pages/viewpage.action?pageId=327735
>
> after I replaced the pipeline (line 12) and run it, the program doesn't
> throws me any errors. 
> but the size of the output file is 0 bytes.
>
> the replaced pipeline is:
>
> pipeline = gst_parse_launch ("filesrc
> location=C:\\Users\\user\\Desktop\\filesink.avi ! pcapparse src-port=58694 !
> \"application/x-rtp, payload=(int)96, media=(string)video,
> clock-rate=(int)90000, encoding-name=(string)H264\" ! rtph264depay !
> \"video/x-h264, width=320, height=240, framerate=(fraction)30/1\" ! avimux !
> filesink location=movie.avi", NULL);

This pipeline is wrong. You probably want to use a pcap file in location
of filesrc. You also want to add some error handling. The example
doesn't include it. E.g. use the GError on the gst_parse_launch()
instead of NULL and check the return values.
Also take a look at the GStreamer log - run your app using
GST_DEBUG="*:2" <myapp> - this will show errors and warnings.

Stefan
>
> thank you.
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/problem-with-gst-parse-launch-function-tp4665561p4665569.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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140228/98730f20/attachment.html>


More information about the gstreamer-devel mailing list