<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, 5 Apr 2016 at 16:40 Luka Petrinsak <<a href="mailto:lukapetrinsakx@gmail.com">lukapetrinsakx@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Are you sure it gets stuck right there? Did you try to printf something behind if statement? Btw you are registering codecs twice with av_register_all and avcodec_ register_all, maybe thats giving you problems.</p>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a></blockquote><div><br></div><div>Hi Luka,</div><div><br></div><div>Yes I am sure. I was debugging the code one line at a time, and upon reaching avformat_write_header() it fails to return.</div><div><br></div><div>However, I have found that I can exit the blocking function by setting <a href="https://ffmpeg.org/pipermail/libav-user/2015-June/008208.html">AVFormatContext::interrupt_callback</a> [1]. </div><div><br></div><div>Which brings me to my next problem. Upon returning from avformat_write_header(), I am unable to find out what went wrong. The av_strerror() only gives "Immediate exit requested", which tells me that I have exited the function, nothing else.</div><div><br></div><div><br></div><div>[1] <a href="https://ffmpeg.org/pipermail/libav-user/2015-June/008208.html">https://ffmpeg.org/pipermail/libav-user/2015-June/008208.html</a><br></div><div><br></div><div> </div></div></div><div dir="ltr">-- <br></div><div dir="ltr">Ang</div>