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

Nicolas George george at nsup.org
Sat Oct 25 15:25:37 CEST 2014


Le quartidi 4 brumaire, an CCXXIII, Reimar Döffinger a écrit :
> Such a special protocol that doesn't need /dev/video magic would probably be
> a good idea.

We could agree on a global convention that states something like this:

Whenever it makes sense, demuxers that use the file name directly should
treat an empty string or a single dash as equivalent to the default device
name.

(In other words: ALSA should treat "" and "-" as "default", v4l2 should
treat them as /dev/video0; x11grab already accepts "" thanks to the magic in
Xlib, but not "-".)

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141025/c843c54a/attachment.asc>


More information about the ffmpeg-devel mailing list