<div dir="ltr"><div class="gmail_extra">Thanks for your reply!<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-06-18 13:36 GMT+02:00 Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 2014-06-18 at 13:08 +0200, Marcin Kolny wrote:<br>
<br>
Hi,<br>
<div class=""><br>
> Hello, I've got    problem with storing x264 udp stream into a mkv<br>
> file. My pipeline:<br>
><br>
> gst-launch-1.0 udpsrc caps=application/x-rtp ! rtph264depay !<br>
> video/x-h264, alignment=nal ! h264parse ! capsfilter caps="video/x\<br>
> -h264, alignment=au, stream-format=avc" !  matroskamux ! fakesink<br>
> dump=true<br>
><br>
</div><div class="">> ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal<br>
</div>> data flow error. streaming task paused, reason not-negotiated (-4)<br>
<br>
What version is this with? Have you tried with git master?<br></blockquote><div>I used 1.0.10 version, I will try with git master. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
I suspect what's happening is that rtph264depay/h264parse first output<br>
incomplete caps (without width/height) and only add them later. Possibly<br>
matroskamux also wants a framerate in the caps which it won't get here.<br></blockquote><div>Ok, I added capssetter between capsfilter and matroskamux, with width, height and framerate, and data flows through matroskamux, but unfortunatelly, I can't read this file:<br>
m.kolny@FLYC090:~ $ gst-launch-1.0 filesrc location="file.mkv" ! decodebin ! fakesink<br>Setting pipeline to PAUSED ...<br>Pipeline is PREROLLING ...<br>ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstH264Parse:h264parse0: No valid frames found before end of stream<br>
Additional debug info:<br>/home/m.kolny/video-tools/gst1/libs/gst/base/gstbaseparse.c(1066): gst_base_parse_sink_default (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstH264Parse:h264parse0<br>ERROR: pipeline doesn't want to preroll.<br>
Setting pipeline to NULL ...<br>Freeing pipeline ...<br>m.kolny@FLYC090:~ $ <br><br></div><div>What might be the reason of this error?<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
Why are you forcing the depayloader to output alignment=nal btw?<br>
rtph264depay ! h264parse ! matroskamux  should negotiate the right<br>
format automatically. rtph264depay can output AVC.<br></blockquote><div>Unfortunatelly, I have to set nal alignment. It doesn't work without it. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
You might also want an rtpjitterbuffer before the depayloader btw.<br>
<br>
Cheers<br>
<span class=""><font color="#888888"> -Tim<br>
<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Marcin Kolny
</div></div>