On date Tuesday 2008-06-03 14:02:20 +0200, Luca Abeni wrote:
> Hi Stefano,
> 
> Stefano Sabatini wrote:
> > On date Tuesday 2008-06-03 10:51:57 +0200, Luca Abeni wrote:
> >> Hi Nicolas,
> >>
> >> Nicolas Krieger wrote:
> >> [...]
> >>> I have also modified "utils.c" so that "av_find_input_format" prints all 
> >>> the
> >>> AVInputFormat->name. And I don't know why, but what is printed is 
> >>> different
> >>> when I launch my project and ffmpeg...
> >>> When I try your exemple, I can see "oss" in the formats found, but not 
> >>> when
> >>> I launch my project.
> >> Remember to use
> >>      avcodec_register_all();
> >>      avdevice_register_all();
> >>      av_register_all();
> >> in the initialization phase of your program.
> > 
> > Hi Luca,
> > 
> > I wonder if an avdevice_register_all() shouldn't register also all the
> > codecs and formats, the same way av_register_all() (defined in lavf)
> > registers all the codecs.
> 
> I do not know... It currently doesn't (I think this behaviour was requested
> when avdevice_register_all() has been introduced, but I might be wrong), and
> I have no opinion about it.

Yes, now I see:
http://thread.gmane.org/[EMAIL PROTECTED]

|> (needs the call to avdevice_register_all
|> to be conditionnal, but can be done later).
|> This means that you shouldn't rely on avdevice_register_all()
|> to register formats and codecs.
|
|So, should I change this to an explicit call to
|avcodec_register_all(), followed by av_register_all() and then
|avdevice_register_all()? If everyone agrees on this, I have no
|problems in doing this change...

Anyway I think that since libavdevice requires libavcodec and
libavformat then it could be a still a good idea to call from here
avcodec_register_all() and av_register_all() (not sure for the last
one).

Regards.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to