<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr">Hey Niccolo,</div><div dir="ltr"><br></div><div dir="ltr">You definitively have to investigate into the gst-editing-services.</div><div dir="ltr">You can combine clips with desired timeline such as a video editing software.</div><div dir="ltr"><br></div><div dir="ltr">Check the documentation:</div><div dir="ltr"><br></div><div dir="ltr"><a href="https://gstreamer.freedesktop.org/documentation/gst-editing-services/index.html?gi-language=c">https://gstreamer.freedesktop.org/documentation/gst-editing-services/index.html?gi-language=c</a></div><div dir="ltr"><br></div><div dir="ltr">Regards.</div><div dir="ltr"><br></div><div dir="ltr">Stéphane <br><blockquote type="cite">Le 11 févr. 2022 à 19:58, Bellaccini, Niccolo <niccolo.bellaccini@verizonconnect.com> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hey 

Stéphane,<div><br></div><div>Thank you again for all the information.</div><div>So, let me try to explain what I am doing.</div><div>First of all, I want to take a video from a source and save it to local files, splitting the files depending on a maximum time threshold that I choose. I do this using GStreamer as a C library and building an ad-hoc pipeline; and it works pretty good for now. </div><div>Basically the pipeline I made it's similar to this one (using the gst-launch tool): > <i>gst-launch-1.0 videotestsrc ! video/x-raw,width=1280,height=720,framerate=30/1 ! avenc_mpeg4 ! splitmuxsink location=video%02d.mkv max-size-time=60000000000</i></div><div><i><br></i></div><div>Now, from another program, I want to retrieve one or two consecutive videos (and I want also to concatenate them in that case) previously saved, seek on the video given a certain start and end position, and save the final video on the local disk as .mkv or .mp4 video (actually, I want to send the final video to an AWS S3 bucket but I think that is not the point).</div><div><br></div><div>As I said, the problem occurs when I try to seek on the video (read by splitmuxsrc GStreamer element) and save it to local file, the final video is not playable with any media player (furthermore when I use matroskamux as muxer I noticed that the seek function <span style="background-color:initial;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:inherit;word-spacing:normal;color:black">gst_element_seek_simple(...) </span>returns me false and no seek is performed on the video).</div><div><br></div><div>Best regards,</div><div><br></div><div>Niccolò</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 11, 2022 at 6:31 PM stefan cervo <<a href="mailto:scerveau@gmail.com">scerveau@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="ltr">Hey Niccolo,</div><div dir="ltr"><br></div><div dir="ltr">You can give a try to install this package to get nleurisource: </div><div dir="ltr"><br></div><div dir="ltr"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__packages.ubuntu.com_focal_ges1.0-2Dtools&d=DwMFaQ&c=MPZC0Rv-kl4oeK4li6Jc92hnsiCC4tOZO_GSKscRWJE&r=q0NOer1O8Xyr6lvRfA9B9on0LnGsWgl35ZFEi2s37Yc8DjlDs22kJZbYHLduupQF&m=cvlHfu51U6_I-jawIs7VyC7M0yhMNyeiDSadir8xmRh_b6j2n0tzSXD0L7nkXnnz&s=Wgj7BoA8BlAHIK-LCUKR72ZLTUQmlgVvvVsTUdpvr5E&e=" target="_blank">https://packages.ubuntu.com/focal/ges1.0-tools</a></div><div dir="ltr"><br></div><div dir="ltr">Regarding the splitmuxsrc scenario could you explain in details what you’d like to achieve ?</div><div dir="ltr"><br></div><div dir="ltr">Best regards</div><div dir="ltr"><br></div><div dir="ltr">Stéphane.</div><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">Le 11 févr. 2022 à 17:16, Bellaccini, Niccolo <<a href="mailto:niccolo.bellaccini@verizonconnect.com" target="_blank">niccolo.bellaccini@verizonconnect.com</a>> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hi Stephane,<div><br></div><div>Thank you very much for the reply. I will surely take a look into <span style="color:rgb(0,0,0);white-space:pre-wrap">gst-editing-services as soon as possible. </span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">I have tried to run the basic pipeline using the </span><span style="color:rgb(0,0,0);white-space:pre-wrap">nleurisource element but it does not work for me because my installation doesn't have the NLE plugin on my GStreamer installation (I installed GStreamer on Ubuntu 20.04 following the instructions here </span><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__gstreamer.freedesktop.org_documentation_installing_on-2Dlinux.html-3Fgi-2Dlanguage-3Dc&d=DwMFaQ&c=MPZC0Rv-kl4oeK4li6Jc92hnsiCC4tOZO_GSKscRWJE&r=q0NOer1O8Xyr6lvRfA9B9on0LnGsWgl35ZFEi2s37Yc8DjlDs22kJZbYHLduupQF&m=cvlHfu51U6_I-jawIs7VyC7M0yhMNyeiDSadir8xmRh_b6j2n0tzSXD0L7nkXnnz&s=1oc5AZ43JrcAomqUAImfskezzZhQxTUTWKWUODHeI3A&e=" target="_blank">https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c</a>)<span style="color:rgb(0,0,0);white-space:pre-wrap">. Is there still the NLE plugin?  </span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">I will try in the meanwhile to search about it or maybe to download, compile and install the plugin by myself; and just for information, is there anything similar to the </span>nleurisource element which takes into account multiple files like the splitmuxsrc element?</div><div><br></div><div>Best regards,</div><div><br></div><div>Niccolò</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 9, 2022 at 3:58 PM Bellaccini, Niccolo <<a href="mailto:niccolo.bellaccini@verizonconnect.com" target="_blank">niccolo.bellaccini@verizonconnect.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I'm trying to write a pipeline that reads a video from a source file, seeks on that video and finally writes the seeked video to a local file.  </div><div>I used filesrc, decodebin, filesink and a muxer (like matroskamux or mp4mux) as GStreamer elements. </div><div>I noticed that with some muxer, like matroskamux, the seek operations (as <span style="background-color:initial;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:inherit;word-spacing:normal;color:black">gst_element_seek_simple(...) </span>method) fails and no seek is performed on the final video. Instead, If I use for example another muxer (like mp4mux or avimux) the seek on the final video is performed but this one results not playable by any media player (since in practice is saved as raw data not as video).</div><div>Am I missing something? Do you know if is it possible to seek on a video read from filesrc and save the seeked video (in playable format) on local?</div><div><br></div><div>I also send you in attachment the code I'm using for this task in case it could be useful.</div><div>Thank you,</div><div><br></div><div>Niccolò</div></div>
</blockquote></div>

<hr>PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL<br>
<br>
VERIZON CONNECT CONFIDENTIALITY NOTICE<br>
This message is intended for the addressee only and may contain confidential and/or privileged material. Any review, re-transmission, dissemination, reliance upon or other use of this information by persons or entities other than the addressee is prohibited. If you receive this in error, please contact the sender and delete this message. Thank you.<br>
</div></blockquote></div></blockquote></div>
</div></blockquote></body></html>