do i need to unregister when there is no need of ffmpeg or before the program exit?<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 12:55 AM, Ron Woods <span dir="ltr"><<a href="mailto:rwoods@vaytek.com" target="_blank">rwoods@vaytek.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Call av_register_all() only at the beginning of your main program, not before each open file; but, depending on what you are doing, you may also need to call avcodec_register_all() and/or avfilter_register_all().  Refer to the documentation if you’re not sure what each does.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:libav-user-bounces@ffmpeg.org" target="_blank">libav-user-bounces@ffmpeg.org</a> [mailto:<a href="mailto:libav-user-bounces@ffmpeg.org" target="_blank">libav-user-bounces@ffmpeg.org</a>] <b>On Behalf Of </b>Quy Pham Sy<br>
<b>Sent:</b> Tuesday, November 13, 2012 10:31 PM<br><b>To:</b> This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.<br><b>Subject:</b> [Libav-user] when to call av_register_all()<u></u><u></u></span></p>
<div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hi, i'm very new to this, so please bear with me if the question is stupid.<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p>
</div><div><p class="MsoNormal">In my app, there will be more than one instance of decoder process that decode multiple files at the same time, so there will be more than place where i need to open and do all the initialization before open video files and start decoding.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">My question is that should i call av_register_all for each decoding process? when and where should the method be called? <u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks,<u></u><u></u></p></div></div></div></div></div><br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>