<div dir="ltr"><div class="gmail_quote">Hi,<br><div dir="ltr"><div><br></div><div>I have an mpeg4 stream which I am trying to cut into parts.</div><div>My pipeline is </div><div>rtspsrc ! rtpmp4vdepay ! ffdec_mpeg4 ! mpeg4videoparse ! appsink -> appsrc ! matroskamux ! filesink location=...</div>
<div><br></div><div>Every 10 seconds I close the appsrc pipeline (with eos) and start a new one.</div><div>I have a software queue between appsink and appsrc to make sure that no packets are lost, and I make sure that when flushing I wait for the next frame to be a keyframe so that there is no data loss.</div>
<div><br></div><div>I am still seeing cuts between the videos (~2 second cuts)...</div><div><br></div><div>Is it possible to cut the stream in another way? Is there a way to fix my pipeline?</div><div><br></div><div>Thanks,</div>
<div> Tomer</div></div>
</div><br></div>