<div dir="ltr"><div><div>You are missing an exclamation point here: "tee name=t ! queue <!> matroskamux" in your post. I will assume that that was a typo when you were writing the e-mail.<br><br></div>Check the sink caps of omxh264dec and matroskamux. I don't have the omx plugins available on my setup so I can't verify this, but it is possible that the two elements expect different variants of h264. If this is the case you should use 2 h264parses after the tee to provide the correct format to both. Also, avoid using sync=0, this can cause reduced quality for your video output. You should increase the latency on the pipeline or, if youa re using gst-launch, you can try increasing the "ts-offset" parameter in ximagesink<br><br></div>Dimitrios<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 8, 2017 at 9:47 AM, Zyx <span dir="ltr"><<a href="mailto:sebastian888@outlook.com" target="_blank">sebastian888@outlook.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am receiving a video from udp port. I wanted to save it in a file and at<br>
the same time display it on the screen. When I do this separately it works<br>
just fine:<br>
<br>
gst-launch-1.0 -e -v udpsrc port=5000 ! application/x-rtp, payload=96 !<br>
rtpjitterbuffer ! rtph264depay ! h264parse ! omxh264dec ! ximagesink<br>
sync=false<br>
<br>
and for recording:<br>
gst-launch-1.0 -e -v udpsrc port=5000 ! application/x-rtp, payload=96 !<br>
rtpjitterbuffer ! rtph264depay ! h264parse ! matroskamux ! filesink<br>
sync=false location='/home/pi/recorded/<wbr>test.mkv'<br>
<br>
But when I do this using one command like this:<br>
gst-launch-1.0 -e -v udpsrc port=5000 ! application/x-rtp, payload=96 !<br>
rtpjitterbuffer ! rtph264depay ! h264parse ! tee name=t ! queue matroskamux<br>
! filesink sync=false location='/home/pi/recorded/<wbr>test.mkv' t. ! queue !<br>
omxh264dec ! ximagesink sync=false<br>
<br>
I've got internal data flow error:<br>
<br>
Setting pipeline to PAUSED ...<br>
Pipeline is live and does not need PREROLL ...<br>
Setting pipeline to PLAYING ...<br>
New clock: GstSystemClock<br>
/GstPipeline:pipeline0/<wbr>GstCapsFilter:capsfilter0.<wbr>GstPad:src: caps =<br>
"application/x-rtp\,\ payload\=\(int\)96\,\ media\=\(string\)video\,\<br>
clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264"<br>
/GstPipeline:pipeline0/<wbr>GstRtpJitterBuffer:<wbr>rtpjitterbuffer0.GstPad:src: caps<br>
= "application/x-rtp\,\ payload\=\(int\)96\,\ media\=\(string\)video\,\<br>
clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264"<br>
/GstPipeline:pipeline0/<wbr>GstRtpH264Depay:rtph264depay0.<wbr>GstPad:src: caps =<br>
"video/x-h264\,\ stream-format\=\(string\)byte-<wbr>stream\,\<br>
alignment\=\(string\)nal"<br>
/GstPipeline:pipeline0/<wbr>GstRtpH264Depay:rtph264depay0.<wbr>GstPad:sink: caps =<br>
"application/x-rtp\,\ payload\=\(int\)96\,\ media\=\(string\)video\,\<br>
clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264"<br>
/GstPipeline:pipeline0/<wbr>GstRtpJitterBuffer:<wbr>rtpjitterbuffer0.GstPad:sink: caps<br>
= "application/x-rtp\,\ payload\=\(int\)96\,\ media\=\(string\)video\,\<br>
clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264"<br>
ERROR: from element /GstPipeline:pipeline0/<wbr>GstUDPSrc:udpsrc0: Internal data<br>
flow error.<br>
Additional debug info:<br>
gstbasesrc.c(2933): gst_base_src_loop ():<br>
/GstPipeline:pipeline0/<wbr>GstUDPSrc:udpsrc0:<br>
streaming task paused, reason not-negotiated (-4)<br>
EOS on shutdown enabled -- waiting for EOS after Error<br>
Waiting for EOS...<br>
<br>
Does anyone have an idea what is wrong?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Problem-with-recording-video-and-displaying-at-the-same-time-tp4681757.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Problem-with-<wbr>recording-video-and-<wbr>displaying-at-the-same-time-<wbr>tp4681757.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</blockquote></div><br></div>