Blair Azzopardi <blairuk@...> writes:

>     ret = avformat_open_input(&fmt_ctx, "/dev/video0", NULL, NULL);

> I note in the above code sample I am using a null AVFormatContext.

Sorry, I missed this.
You cannot auto-detect video4linux, you have to 
set it as format, before calling avformat_open_input().

Just compare "ffmpeg -i /dev/video0" with 
"ffmpeg -f v4l2 -i /dev/video0"

Carl Eugen

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to