<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">Le lun. 1 oct. 2018 09 h 26, <a href="mailto:villastar@yahoo.com.au">villastar@yahoo.com.au</a> <<a href="mailto:villastar@yahoo.com.au">villastar@yahoo.com.au</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Hi,<br>
<br>
I am trying to play a raw, uncompressed, interlaced RTP (RFC 4175) <br>
video stream from a camera. I have been using the following to play<br>
it with gstreamer:<br>
<br>
$ gst-launch-1.0 udpsrc address=239.192.1.40 port=5004 buffer-size=100000 ! "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:2, depth=(string)8, width=(string)720, height=(string)576, colorimetry=(string)BT601-5, payload=(int)97, interlace=(boolean)true" ! rtpvrawdepay !  videoconvert ! autovideosink<br>
<br>
This resulting image showed two almost identical images laid out<br>
vertically. I recorded a short video showing what I am actually seeing<br>
that is available from my Dropbox:<br>
<br>
  <a href="https://www.dropbox.com/s/656z30dwtgzt6qz/gstreamer_playback.mp4" rel="noreferrer noreferrer" target="_blank">https://www.dropbox.com/s/656z30dwtgzt6qz/gstreamer_playback.mp4</a></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Clearly this is not well supported by the depayloader. I haven't read the spec, but it looks like if you have 1 image with the top filled, and the second with the bottom filled. This looks like alternate type of interlacing, which we are working on. Though, I believe the depayloader is trying to create interleaved buffers, which clearly is broken. Best is to file a bug, code in gst-plugins-good/gst/rtp will need to be fixed.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
The output from running the command:<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>
<br>
  ERROR: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstD3DVideoSink:autovideosink0-actual-sink-d3dvideo: Output window was closed<br>
<br>
  Additional debug info:<br>
  d3dhelpers.c(1862): d3d_render_buffer (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstD3DVideoSink:autovideosink0-actual-sink-d3dvideo<br>
  Execution ended after 0:00:59.558180331<br>
  Setting pipeline to PAUSED ...<br>
  Setting pipeline to READY ...<br>
  Setting pipeline to NULL ...<br>
  Freeing pipeline ...<br>
<br>
The SDP for the stream:<br>
<br>
  v=0<br>
  o=- 340496 340496 IN IP4 192.168.204.40<br>
  s=Camera 2<br>
  c=IN IP4 <a href="http://239.192.1.40/15" rel="noreferrer noreferrer" target="_blank">239.192.1.40/15</a><br>
  t=0 0<br>
  m=video 5004 RTP/AVP 97<br>
  a=rtpmap:97 raw/90000<br>
  a=fmtp:97 sampling=YCbCr-4:2:2; width=720; height=576; depth=8; colorimetry=BT601-5; interlace<br>
  a=framerate:25<br>
<br>
I have also captured the RTP network traffic using Wireshark:<br>
  <a href="https://www.dropbox.com/s/l65o879qf2er3qi/camera_5.pcapng?dl=0" rel="noreferrer noreferrer" target="_blank">https://www.dropbox.com/s/l65o879qf2er3qi/camera_5.pcapng?dl=0</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>