[Libav-user] AVERROR_INVALIDDATA in avformat_open_input on Raspberry Pi
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Feb 4 16:58:08 CET 2014
Blair Azzopardi <blairuk at ...> 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
More information about the Libav-user
mailing list