[FFmpeg-devel] [PATCH] Use v4l2 input format automatically if filename starts with "/dev/video"

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Oct 25 14:47:33 CEST 2014


On Sat, Oct 25, 2014 at 12:35:11PM +0000, Carl Eugen Hoyos wrote:
> Reimar Döffinger <Reimar.Doeffinger <at> gmx.de> writes:
> 
> > It should be possible to override the other way via 
> > file:///dev/video/... I believe?
> 
> Of course.
> 
> Could the original patch please be applied?

I think I agree, however...

> If really necessary with MAX - 1, we have 
> 32bit probe functions that return MAX and 
> no user will ever want to read a file from 
> /dev/videofile.avi

I think this is a bit Linux/Unix/centric.
On Windows, BeOS etc. you can use / as path separator and
you can easily have c:/dev as path for development stuff.
ffmpeg /dev/video/test.avi probably has non-0 probability.
Though I'd guess nobody manages to compile the v4l2 thing
on anything but Linux anyway, so it should be an irrelevant point
(I hope).


More information about the ffmpeg-devel mailing list