<div dir="ltr">
<pre class="gmail-tw-data-text gmail-tw-text-large gmail-tw-ta" id="gmail-tw-target-text" style="text-align:left" dir="ltr"><span class="gmail-Y2IQFc" lang="en">Greetings, has anyone encountered such a problem, the video writes very quickly, as if timestamps break, <br>but such garbage is only on two camera models out of three <br>Pipeline for record video: rtspsrc location="" ! rtph264depay! capsfilter caps="video/x-h264, stream-format=(string)byte-stream" ! multifilesink location="/home/test/%07d" next-file=2 <br>Pipeline for read video: multifilesrc location="/home/test/%07d" start-index=0 loop=true ! h264 parse ! h264pay<br></span></pre><pre class="gmail-tw-data-text gmail-tw-text-large gmail-tw-ta" id="gmail-tw-target-text" style="text-align:left"><span class="gmail-Y2IQFc" lang="en">example of accelerated stream: </span><a href="https://drive.google.com/file/d/1gTmmzelfveteU8XB2GeUAq_2FlrGtq8A/view?usp=sharing">https://drive.google.com/file/d/1gTmmzelfveteU8XB2GeUAq_2FlrGtq8A/view?usp=sharing</a><br></pre><pre class="gmail-tw-data-text gmail-tw-text-large gmail-tw-ta" id="gmail-tw-target-text" style="text-align:left"><span class="gmail-Y2IQFc" lang="en">I tried adding a muxer, but then the rtsp archive in the client breaks down, <br>when it pauses with flush and continues streaming, the time jumps 20 seconds - 1 minute ahead</span>
Pipeline: rtspsrc ! decodebin( with demuxer) ! videoconvert ! glsinkbin<br></pre><pre class="gmail-tw-data-text gmail-tw-text-large gmail-tw-ta" id="gmail-tw-target-text" style="text-align:left">pause and play:void VideoItem::pause()<br>{<br>    qDebug()<<"startPause";<br>    gst_element_send_event(_data->pipeline, gst_event_new_flush_start());<br>    gst_element_send_event(_data->pipeline, gst_event_new_flush_stop(TRUE));<br>    if(_data->state == STATE_PLAYING) {<br>        gst_element_set_state(_data->pipeline, GST_STATE_PAUSED);<br>    }<br>}<br>void VideoItem::resume()<br>{<br>    gst_element_seek_simple(_data->pipeline, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, 0);<br>    gst_element_set_state(_data->pipeline, GST_STATE_PLAYING);<br>}</pre><pre class="gmail-tw-data-text gmail-tw-text-large gmail-tw-ta" id="gmail-tw-target-text" style="text-align:left">example of time jumps: <a href="https://drive.google.com/file/d/1OEbU6-Fcmj1-WWlUgsVY3EbSBesIQBs9/view?usp=sharing">https://drive.google.com/file/d/1OEbU6-Fcmj1-WWlUgsVY3EbSBesIQBs9/view?usp=sharing</a>
</pre>

</div>