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

Reply via email to