[Libav-user] when to call av_register_all()

Ron Woods rwoods at vaytek.com
Wed Nov 14 16:55:02 CET 2012


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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121114/d0e540ab/attachment.html>


More information about the Libav-user mailing list