[Libav-user] when to call av_register_all()

Ron Woods rwoods at vaytek.com
Thu Nov 15 16:42:29 CET 2012


No, but you do need to close or free any ffmpeg objects that you created with, e.g., avcodec_close(), avfilter_graph_free(), av_free(), etc.

From: libav-user-bounces at ffmpeg.org [mailto:libav-user-bounces at ffmpeg.org] On Behalf Of Quy Pham Sy
Sent: Wednesday, November 14, 2012 6:38 PM
To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.
Subject: Re: [Libav-user] when to call av_register_all()

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<mailto: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> [mailto: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<mailto: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/98bcf223/attachment.html>


More information about the Libav-user mailing list