Open main menu

DAVE Developer's Wiki β

Changes

Video capture from USB camera

833 bytes added, 14:00, 23 January 2013
m
Video capture using FFmpeg and Video4Linux
* installing it as a package, if the root file system features a package manager and ffmpeg is available as a package
In this article, we assume that the use of a root file system built with Buildroot and customized adding the EZSDK components, as described in the [[Creating a RFS with Buildroot]] article. The FFmpeg package can be selected entering the '''Package selection for the target''' menuconfig option (see [[Creating_a_RFS_with_Buildroot#Configuring_Buildroot]]). Before using the Video4Linux framework, it should be enabled in the kernel. The following options must be enabled: * Device Drivers->Multimedia support* Device Drivers->Video For Linux* Device Drivers->Video For Linux->Video capture adapters* Device Drivers->Video For Linux->Video capture adapters->V4L USB devices* Device Drivers->Video For Linux->Video capture adapters->V4L USB devices->USB Video Class (UVC)* Device Drivers->Video For Linux->Video capture adapters->V4L USB devices->UVC input events device support (NEW)  [[File: enabling-v4l-usb|600px]]  The video stream from the USB camera con be captured and saved to the out.avi file using the following command:
The video stream from the USB camera con be E' stato provato ffmpeg per registrare il flusso video di una webcam con questo comando
<pre>
ffmpeg -f video4linux2 -r 30 -s 640x480 -i /dev/video0 out.avi
</pre>
dove assuming that /dev/video0 e' la is the webcam, se si collega dopo il boot controllare dove viene montatadevice file.
= Video capture using gstreamer =