<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 02/27/2014 02:40 PM, d wrote:<br>
</div>
<blockquote cite="mid:1393508417999-4665569.post@n4.nabble.com"
type="cite">
<pre wrap="">Hi,
Im running the tutorial's code of Gstreamer.
this is the link for the tutorial (the simplest one- Hello World):
<a class="moz-txt-link-freetext" href="http://docs.gstreamer.com/pages/viewpage.action?pageId=327735">http://docs.gstreamer.com/pages/viewpage.action?pageId=327735</a>
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);</pre>
</blockquote>
<br>
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.<br>
Also take a look at the GStreamer log - run your app using
GST_DEBUG="*:2" <myapp> - this will show errors and warnings.<br>
<br>
Stefan<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<blockquote cite="mid:1393508417999-4665569.post@n4.nabble.com"
type="cite">
<pre wrap="">
thank you.
--
View this message in context: <a class="moz-txt-link-freetext" href="http://gstreamer-devel.966125.n4.nabble.com/problem-with-gst-parse-launch-function-tp4665561p4665569.html">http://gstreamer-devel.966125.n4.nabble.com/problem-with-gst-parse-launch-function-tp4665561p4665569.html</a>
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>