The problem was with not calling avdevice_register_all(). I have since made
some headway after making this call, but have questions on some
AVFormatParameter variables. I don't have a clear understanding of
time_base, sample_rate and channels. Can someone explain or point me to
somewhere that explains these?

thanks, Ray

On Wed, Jan 14, 2009 at 12:56 AM, Luca Abeni <[email protected]> wrote:

> Hi,
>
> Ray Lopez wrote:
> [...]
> >   av_register_all();
> >
> >   iformat = av_find_input_format("x11grab");
> >
> >   if (!iformat)
> >     {
> >       fprintf(stderr, "Unknown input format: X11grab\n");
> >       // return -1;
> >     }
> >
> >   // Open video file
> >   if(av_open_input_file(&ifc, filename, iformat, 0, NULL)!=0)
> >     {
> >       fprintf(stderr, "Couldn't open file\n");
> >       return -1; // Couldn't open file
> >     }
> >
> >
> > This fails because it is not a known input format.
>
> If av_find_input_format() is failing, I think there are two
> possibilities:
> 1) You compiled ffmpeg without x11grab support, or
> 2) You forgot to call avdevice_register_all()
>
> Also note that you should correctly set filename, otherwise
> av_open_input_file() will fail.
>
>
>                        Luca
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to