<div dir="ltr"><div dir="ltr"></div><div>Hi,</div><div><br></div><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 30, 2020 at 9:57 PM xmufzy <<a href="mailto:xmufzy@foxmail.com">xmufzy@foxmail.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">Thank you , I known it's easier with ges, but I don't known how to change the<br>
encoder to nvenc, and hown can I export the data from ges to app sink, or<br>
import data from appsrc.<br></blockquote><div><br></div><div>You can check the EncodingProfile[0] API to enforce a certain encoder, on the command line you could even do for example `video/quicktime:nvenc:audio/x-opus`.</div><div><br></div><div>You can set your sinks as you would do with `playbin` if you use GESPipeline, or you can use GESTimeline as any bin if you need more control. For appsrc you can use the `appsrc://` protocol for your clips and then work from there, or you can subclass `GES[Video|Audio]Source` to implement exactly what you need.</div><div><br></div><div>- Thibault<br></div><div><br></div><div>[0] <a href="https://gstreamer.freedesktop.org/documentation/pbutils/encoding-profile.html">https://gstreamer.freedesktop.org/documentation/pbutils/encoding-profile.html</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Nicolas Dufresne-5 wrote<br>
> Le jeudi 27 août 2020 à 08:14 -0500, xmufzy a écrit :<br>
>> If we can do 2 segment seek for the element<br>
>> <br>
>> <br>
>> pipeline change :<br>
>> filesrc(backgroup.mp4) --> qtdemux --> h264dec --> queue --\<br>
>> <br>
>> --> mixer -->x264enc --> filesink<br>
>> filesrc(fga.mp4) --> qtdemux --> h264dec -->queue ---------/<br>
>> <br>
>> if I need mix fga.mp4 3~8s, and backgroup.mp4 9~14s, I try to use 2<br>
>> gst_element_seek(SEGMENT) for that, but failed<br>
> <br>
> This is easier done with ges-launch-1.0 (from gst-editing-services).<br>
> <br>
> ges-launch-1.0 +clip background.mp4 inpoint=9.0 duration=5.0 \<br>
> +clip fga.mp4 inpoint=3.0 duration=5.0 \<br>
> --smart-rendering --outputuri=file:///tmp/test.mp4<br>
> <br>
> You can live preview the edit by removing the render options (last<br>
> line). <br>
> <br>
>> <br>
>> <br>
>> <br>
>> <br>
>> --<br>
>> Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
>> _______________________________________________<br>
>> gstreamer-devel mailing list<br>
>> <br>
<br>
> gstreamer-devel@.freedesktop<br>
<br>
>> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
> <br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
<br>
> gstreamer-devel@.freedesktop<br>
<br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>