<div dir="ltr">I'm sending video using next pipeline:<div>appsrc name=vsrc ! videoconvert ! video/x-raw,format=I420,width=1920,height=1080,framerate=60/1 ! omxh265enc bitrate=20000000 control-rate=2 iframeinterval=30 preset-level=3 ! rtph265pay name=pay0 pt=96<br></div><div><br></div><div>to receive i use this pipeline:</div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">rtspsrc</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">location=rtsp://<a href="http://10.20.66.1:5000/vd">10.20.66.1:5000/vd</a></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">latency=0</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">protocols=GST_RTSP_LOWER_TRANS_TCP</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">!</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">application/x-rtp,encoding-name=H265,payload=96</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">!</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">rtph265depay</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">!</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">h265parse</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">!</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">queue</span><span style="color:rgb(192,192,192)"> </span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,128,0)">!</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">omxh265dec</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">!</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">videoconvert</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">!</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">appsink</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">sync</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">false</span></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">and everything works ok, but sometimes i need to save raw h265 without decode it</pre><pre style="margin-top:0px;margin-bottom:0px">for this purpose i try to use next pipeline:</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">gst-launch-1.0 --gst-debug-level=3 rtspsrc </pre><pre style="margin-top:0px;margin-bottom:0px">location=rtsp://<a href="http://10.20.55.68:4510/vd">10.20.55.68:4510/vd</a> </pre><pre style="margin-top:0px;margin-bottom:0px">latency=0 protocols=GST_RTSP_LOWER_TRANS_TCP ! </pre><pre style="margin-top:0px;margin-bottom:0px">application/x-rtp,encoding-name=H265,payload=96 </pre><pre style="margin-top:0px;margin-bottom:0px">! rtph265depay ! h265parse ! queue ! matroskamux ! filesink </pre><pre style="margin-top:0px;margin-bottom:0px">location=test.mkv -e sync=false async=false<br></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">but it gives me something terrible in result (watch video below):</pre><pre style="margin-top:0px;margin-bottom:0px"><a href="https://drive.google.com/open?id=1GsLW9WEWi619YRDZw7ndmd43Nlyq4QSm">https://drive.google.com/open?id=1GsLW9WEWi619YRDZw7ndmd43Nlyq4QSm</a><br></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">during stream i getting next warnings:</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">0:00:12.295262969 25141   0x7f7c045990 FIXME           rtph265depay gstrtph265depay.c:1150:gst_rtp_h265_depay_process:<rtph265depay0> Assuming DONL field is not present<br>0:00:12.295914963 25141   0x7f7c045990 FIXME              h265parse gsth265parse.c:1639:gst_h265_parse_parse_frame:<h265parse0> Implement timestamp/duration interpolation based on SEI message<br></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">and it seems to me that video corrupted due to this warnings, but i don't understand</pre><pre style="margin-top:0px;margin-bottom:0px">how to set correct timestamp, now for this purpose i use:</pre><pre style="margin-top:0px;margin-bottom:0px">    g_object_set (appsrc, "do-timestamp", true, NULL);<br></pre><pre style="margin-top:0px;margin-bottom:0px">but is i can see, it's incorrect approach, so how can i fix this issue?</pre></div></div>