Video4Linux: Difference between revisions
No edit summary |
No edit summary |
||
| Line 33: | Line 33: | ||
| website = {{URL|http://www.linuxtv.org/}} | | website = {{URL|http://www.linuxtv.org/}} | ||
}} | }} | ||
'''Video4Linux''' ('''V4L''' for short) is a collection of [[device driver]]s and an [[ | |||
<ref name=":0" />'''Video4Linux''' ('''V4L''' for short) is a collection of [[device driver]]s and an [[API]] for supporting realtime [[video capture]] on [[Linux]] systems.<ref>{{cite web |url=https://fosdem.org/2014/schedule/event/v4l_intro/ |title=An Introduction to the Video4Linux Framework: How to write a video capture driver |date=2014-02-02 |access-date=2014-02-16}}</ref> It supports [[USB]] [[webcam]]s, [[TV tuner card|TV tuners]], [[Camera Serial Interface|CSI]] cameras, and related devices, standardizing their output, so programmers can easily add video support to their applications. | |||
Video4Linux is responsible for creating V4L2 device nodes aka a device file (/dev/videoX, /dev/vbiX and /dev/radioX) and tracking data from these nodes. The device node creation is handled by V4L device drivers using the video_device struct (v4l2-dev.h) and it can either be allocated dynamically or embedded in another larger struct. | Video4Linux is responsible for creating V4L2 device nodes aka a device file (/dev/videoX, /dev/vbiX and /dev/radioX) and tracking data from these nodes. The device node creation is handled by V4L device drivers using the video_device struct (v4l2-dev.h) and it can either be allocated dynamically or embedded in another larger struct. | ||
| Line 82: | Line 83: | ||
== Criticism == | == Criticism == | ||
Video4Linux has a complex negotiation process, which caused not all applications having support for all cameras.<ref>{{Cite web |last=Corbet |first=Jonathan |date=2019-07-25 |title=Access to complex video devices with libcamera |url=https://lwn.net/Articles/794555/ |access-date=2023-02-06 |website=[[LWN.net]]}}</ref> | Video4Linux has a complex negotiation process, which caused not all applications having support for all cameras.<ref name=":0">{{Cite web |last=Corbet |first=Jonathan |date=2019-07-25 |title=Access to complex video devices with libcamera |url=https://lwn.net/Articles/794555/ |access-date=2023-02-06 |website=[[LWN.net]]}}</ref> | ||
== See also == | == See also == | ||
| Line 97: | Line 98: | ||
*[https://www.linuxtv.org/wiki/index.php/Main_Page Video4Linux-DVB wiki] | *[https://www.linuxtv.org/wiki/index.php/Main_Page Video4Linux-DVB wiki] | ||
* [http://www.exploits.org/v4l Video4Linux resources] | * [http://www.exploits.org/v4l Video4Linux resources] | ||
* [ | * [https://video4bsd.sourceforge.net/ Video4BSD], a Video4Linux emulation layer | ||
* [https://web.archive.org/web/20110707012535/http://alumnos.elo.utfsm.cl/~yanez/video-for-linux-sample-programs/ Video For Linux (V4L) sample applications] | * [https://web.archive.org/web/20110707012535/http://alumnos.elo.utfsm.cl/~yanez/video-for-linux-sample-programs/ Video For Linux (V4L) sample applications] | ||
* [https://web.archive.org/web/20110707012738/http://alumnos.elo.utfsm.cl/~yanez/video-for-linux-2-sample-programs/ Video For Linux 2 (V4L2) sample application] | * [https://web.archive.org/web/20110707012738/http://alumnos.elo.utfsm.cl/~yanez/video-for-linux-2-sample-programs/ Video For Linux 2 (V4L2) sample application] | ||
Latest revision as of 12:47, 24 December 2025
Template:Short description Script error: No such module "Infobox".Template:Template other Script error: No such module "Check for unknown parameters".Script error: No such module "Check for conflicting parameters".
[1]Video4Linux (V4L for short) is a collection of device drivers and an API for supporting realtime video capture on Linux systems.[2] It supports USB webcams, TV tuners, CSI cameras, and related devices, standardizing their output, so programmers can easily add video support to their applications.
Video4Linux is responsible for creating V4L2 device nodes aka a device file (/dev/videoX, /dev/vbiX and /dev/radioX) and tracking data from these nodes. The device node creation is handled by V4L device drivers using the video_device struct (v4l2-dev.h) and it can either be allocated dynamically or embedded in another larger struct.
Video4Linux was named after Video for Windows (which is sometimes abbreviated "V4W"), but is not technically related to it.[3][4]
While Video4Linux is only available on Linux, there is a compatibility layer available for FreeBSD called Video4BSD. This provides a way for many programs that depend on V4L to also compile and run on the FreeBSD operating system.
History
V4L had been introduced late into the 2.1.X development cycle of the Linux kernel. Retroactively being renamed to V4L1, it was dropped in kernel 2.6.38.[5]
V4L2 is the second version of V4L. Video4Linux2 fixed some design bugs and started appearing in the 2.5.x kernels. Video4Linux2 drivers include a compatibility mode for Video4Linux1 applications, though the support can be incomplete and it is recommended to use Video4Linux1 devices in V4L2 mode. The project DVB-Wiki is now hosted on LinuxTV web site.[6]
Some programs support V4L2 through the media resource locator v4l2://.
Software support
<templatestyles src="Div col/styles.css"/>
Criticism
Video4Linux has a complex negotiation process, which caused not all applications having support for all cameras.[1]
See also
- Direct Rendering Manager – defines a kernel-to-user-space interface for access to graphics rendering and video acceleration
- Mesa 3D – implements video acceleration APIs
References
<templatestyles src="Reflist/styles.css" />
- ↑ a b Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1". Overview of the V4L2 driver framework.
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
Script error: No such module "Check for unknown parameters".
External links
- media_tree development git
- v4l-utils development git
- Linux Media Infrastructure API (V4L2, DVB and Remote Controllers)
- Video4Linux-DVB wiki
- Video4Linux resources
- Video4BSD, a Video4Linux emulation layer
- Video For Linux (V4L) sample applications
- Video For Linux 2 (V4L2) sample application
- Access Video4Linux devices from Java
- kernel.org
- OpenWrt Wiki
- Linux UVC driver and tools, USB video device class (UVC)