[Libav-user] when to call av_register_all()

Quy Pham Sy phamsyquybk at gmail.com
Thu Nov 15 01:37:57 CET 2012


do i need to unregister when there is no need of ffmpeg or before the
program exit?


On Thu, Nov 15, 2012 at 12:55 AM, Ron Woods <rwoods at vaytek.com> wrote:

> 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.****
>
> ** **
>
> *From:* libav-user-bounces at ffmpeg.org [mailto:
> libav-user-bounces at ffmpeg.org] *On Behalf Of *Quy Pham Sy
> *Sent:* Tuesday, November 13, 2012 10:31 PM
> *To:* This list is about using libavcodec, libavformat, libavutil,
> libavdevice and libavfilter.
> *Subject:* [Libav-user] when to call av_register_all()****
>
> ** **
>
> Hi, i'm very new to this, so please bear with me if the question is stupid.
> ****
>
> ** **
>
> 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.****
>
> ** **
>
> My question is that should i call av_register_all for each decoding
> process? when and where should the method be called? ****
>
> ** **
>
> Thanks,****
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121115/a54f95c0/attachment.html>


More information about the Libav-user mailing list