<html><head></head><body><div>On Wed, 2020-12-30 at 12:17 -0600, fre deric wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Hi,<br></div><div>my goal is to demux video in libav and decode it in GStreamer. <br></div><div><br></div><div>My approach is to take AVPacket from the video stream in the first thread<br></div><div>and send it to GStreamer pipeline in the second thread. Important parts of<br></div><div>code are here: [...]</div></blockquote><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"></blockquote><div><br></div><div>Apart from what Edward replied already, the code in gst-libav should be helpful to you.</div><div>Specifically everything in this file:</div><div> <a href="https://gitlab.freedesktop.org/gstreamer/gst-libav/-/blob/master/ext/libav/gstavdemux.c">https://gitlab.freedesktop.org/gstreamer/gst-libav/-/blob/master/ext/libav/gstavdemux.c</a> </div><div><br></div><div><span><pre>-- <br></pre><div data-evo-paragraph="" class="" style="width: 71ch;" data-evo-signature-plain-text-mode="">Sebastian Dröge, Centricular Ltd · <a href="https://www.centricular.com">https://www.centricular.com</a></div></span></div></body></html>