Difference between revisions of "Video capture from USB camera"

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "{{InfoBoxTop}} {{Applies To Linux}} {{AppliesToNaon}} {{InfoBoxBottom}} Category:HowTo = Introduction = This article describes various modes for capturing video from an...")
 
m (Video capture using FFmpeg)
Line 16: Line 16:
 
* Connection: USB Host 2.0
 
* Connection: USB Host 2.0
  
= Video capture using FFmpeg =
+
= Video capture using FFmpeg and Video4Linux =
  
 
FFmpeg project page: http://ffmpeg.org/
 
FFmpeg project page: http://ffmpeg.org/
 +
Video4Linux wiki: http://linuxtv.org/wiki/index.php/Main_Page
 +
Video4Linux kernel documentation: http://www.mjmwired.net/kernel/Documentation/video4linux/v4l2-framework.txt
 +
 +
The FFmpeg tool is not provided with the default NELK root file system. FFmpeg can be added to the root file system:
 +
 +
* manually, building it from source coder
 +
* using a build system, as buildroot or openembedded
 +
* 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 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 /dev/video0 e' la webcam, se si collega dopo il boot controllare dove viene montata.
  
 
= Video capture using gstreamer =
 
= Video capture using gstreamer =

Revision as of 13:42, 23 January 2013

Info Box
Tux.png Applies to Linux
Naon am387x-dm814x.png Applies to Naon

Introduction[edit | edit source]

This article describes various modes for capturing video from an USB camera.

System architecture[edit | edit source]

  • Board: NaonEVB-Mid
  • Camera: Webcam Logitech HD C310 720p (Product page)
  • Connection: USB Host 2.0

Video capture using FFmpeg and Video4Linux[edit | edit source]

FFmpeg project page: http://ffmpeg.org/ Video4Linux wiki: http://linuxtv.org/wiki/index.php/Main_Page Video4Linux kernel documentation: http://www.mjmwired.net/kernel/Documentation/video4linux/v4l2-framework.txt

The FFmpeg tool is not provided with the default NELK root file system. FFmpeg can be added to the root file system:

  • manually, building it from source coder
  • using a build system, as buildroot or openembedded
  • 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 video stream from the USB camera con be E' stato provato ffmpeg per registrare il flusso video di una webcam con questo comando

ffmpeg -f video4linux2 -r 30 -s 640x480 -i /dev/video0 out.avi

dove /dev/video0 e' la webcam, se si collega dopo il boot controllare dove viene montata.

Video capture using gstreamer[edit | edit source]