<HTML><BODY><div><div>Thank you for reply.</div><div> </div><div>But is there any chances to accomplish this task with gstreamer? In my project I’m already stick to this lib + in this case it would be like dll calling (gstreamer) vs process calling (ffmpeg).<br> </div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">Среда, 23 августа 2023, 14:13 +03:00 от James <jam@tigger.ws>:<br> <div id=""><div class="js-helper js-readmsg-msg"><div><div id="style_16927892321680956989_BODY"><br><br>> On 23 Aug 2023, at 5:57 pm, Антон Шаров via gstreamer-devel <<a href="/compose?To=gstreamer%2ddevel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br>><br>> Hi.<br>><br>> • Given some mp4 file, I need to retrive fragment from it. Say I’m interested of a fragment on k second of a video file, I need to retrieve video fragment from k-2 second to k+2 second, namely few seconds before interested event, few second after interested event. What is the best approach (pipeline) to do that?<br>> • What is the correct way to concatenate mp4 files, is it simple stream concatenation — append one file to another or there could be corner cases?<br><br>ffmpeg is your friend.<br>Stackoverflow has lots of examples. (google)<br>James</div></div></div></div></blockquote> <div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>С Уважением,<br>Шаров Антон</div></div></div><div> </div></div></BODY></HTML>