Skip to content

albert17/WebCam-V4L2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WebCam-V4L2

WEBCAM-V4L2 is a software which allows to capture images and video from USB cameras using the V4L2 API.

Usage

Compile

In Beaglbone.

$ ./compile.sh beaglbone

In Ubuntu.

$ ./compile.sh ubuntu

Execute

$ cd src
$ ./main

Usage: ./main [options]

Options:
-d | --device name   Video device name [ /dev/videoN ]
-t | --type          Capture type [ video | frames ]
-f | --format        Image format [ YUYV | JPEG ] (only applicable for type: frames)
-w | --width         Image width
-h | --height        Image height
-m | --method        Capture method [ mmap | read | userp ]
-n | --number        Number of frames to capture

Display

Images

Images can be displayed with any viewing application

Video

MJPEG is a rare video format without a standard. I use "vlc" to display de videos.

$ vlc --demux=mjpeg --mjpeg-fps=15 result/video.mjpeg 

Environment

Platform

This software has been tested is the following platforms:

  • Ubuntu 16.04 - Linux kernel: 4.4.0-57
  • Beaglebone - Linux kernel: 3.8.13

Webcam

This software has been tested with the following cameras:

  • Logitech c170

Disclaimer

This software has been based on the example provided in the V4L2 API.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published