<p>In your first pipeline it should be udpsink , not udpsrc.</p>
<p><br>Another thing is that you are not properly setting up rtp packets of encoded data.<br>So I think your pipelines should look like this;</p>
<p><br>gst-launch videotestsrc ! videoscale ! videorate ! video/x-raw-yuv,width=640,height=480,framerate=25/1 ! ffmpegcolorspace ! ffenc_mpeg4 ! rtpmp4vpay ! udpsink host=127.0.0.1 port=5000 <br> <br>gst-launch udpsrc port=5000 ! application/x-rtp,media=video,payload=100,clock-rate=100000000,encoding-name=MP4V-ES ! rtpmp4vdepay ! video/mpeg,width=640,height=480,framerate=25/1,mpegversion=4,systemstream=false ! avimux ! filesink location=test.avi</p>
<p>And I could play this file using gst-launch playbin uri=file:///home/maemo/test.avi <br><br></p>
<div class="gmail_quote">On Thu, Nov 18, 2010 at 10:02 PM, Peter Innerhofer <span dir="ltr"><<a href="mailto:peter.innerhofer@student.tugraz.at">peter.innerhofer@student.tugraz.at</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">hello,<br><br>i have an issue with multiplexing and writing a stream to a file.<br><br>for example:<br>gst-launch v4l2src ! videoscale ! videorate !<br>
video/x-raw-yuv,width=640,height=480,framerate=25/1 ! ffmpegcolorspace !<br>ffenc_mpeg4 ! avimux ! filesink location=test.avi<br><br>ok, this stream works fine. vlc can open and show codec meta data. but<br>now i send the stream to a udpsink and receive it.<br>
<br>gst-launch v4l2src ! videoscale ! videorate !<br>video/x-raw-yuv,width=640,height=480,framerate=25/1 ! ffmpegcolorspace !<br>ffenc_mpeg4 ! udpsrc host=127.0.0.1 port=5000<br><br>gst-launch udpsrc port=5000 ! video/mpeg, width=(int)640,<br>
height=(int)480, framerate=(fraction)25/1, mpegversion=(int)4,<br>systemstream=(boolean)false ! avimux ! queue ! filesink location=test.avi<br><br>now the video wont play in vlc and i cant open it in video editing<br>programs which are not based on gstreamer, they can't find any codec details<br>
<br>ideas? what's wrong here, i have tried several multiplexer<br>(mpegtsmux,qtmux,ffmux_mp4), but its the same. shall i exit the pipeline<br>in an other way? (not just interrupting it)<br><br>i build a python script around this pipelines and i can start/stop the<br>
stream with keyboard input, setting the pipelines to NULL and to<br>PLAYING.... sometimes the stream is playable in vlc, but mostly not.<br><br>thx<br> peter<br><br>------------------------------------------------------------------------------<br>
Beautiful is writing same markup. Internet Explorer 9 supports<br>standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.<br>Spend less time writing and rewriting code and more time creating great<br>experiences on the web. Be a part of the beta today<br>
<a href="http://p.sf.net/sfu/msIE9-sfdev2dev" target="_blank">http://p.sf.net/sfu/msIE9-sfdev2dev</a><br>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>
Sudarshan Bisht<br>