V4L capturing: Difference between revisions

From LinuxTVWiki
Jump to navigation Jump to search
No edit summary
m (Added some more capture apps)
Line 1: Line 1:
There is several applications for continuous pictures capturing (e.g. for web, emailing)
There are several applications for continuous capture (this page could use some attention):


* webcam
* streamer
* streamer
* videodog
* videodog
* [[mencoder]]
** [[Home_brews |script examples]]
* [[MythTV]]
* ffmpeg
* transcode
* webcam


====Common configuration and control commands====
====Common configuration and control commands====
Line 11: Line 16:
:* v4lctl -c /dev/video0 bright "60%"
:* v4lctl -c /dev/video0 bright "60%"
:* v4lctl -c /dev/video0 contrast "55%"
:* v4lctl -c /dev/video0 contrast "55%"
:* [[v4l2ucp]] -- universal control panel for v4l2


2. Capture the snaps (streamer is a part of the xawtv package)
2. Capture the snaps (streamer is a part of the xawtv package)

Revision as of 07:47, 2 March 2006

There are several applications for continuous capture (this page could use some attention):

Common configuration and control commands

1. Control the TV card (v4lctl is a part of the xawtv package)

  • v4lctl -c /dev/video0 list
  • v4lctl -c /dev/video0 bright "60%"
  • v4lctl -c /dev/video0 contrast "55%"
  • v4l2ucp -- universal control panel for v4l2

2. Capture the snaps (streamer is a part of the xawtv package)

  • streamer:
Usage:
streamer -i 1 -c /dev/video0 -s 320x240 -q -j 80 -f jpeg -n ntsc -b 24 -o /var/www/webcam.jpeg
streamer -i 1 -c /dev/video0 -s 320x240 -q -j 80 -f jpeg -n ntsc -b 24 -o /dev/stdout |uuencode thief.jpeg|sendmail alarm@foo.com
  • videodog:
Usage:
videodog -x 640 -y 480 -w 3 -b 1 -c 65535 -m PAL -q -d /dev/video0 -j -f /var/www/webcam.jpg
This useful tool supports continuously moving (ftp or scp - ssh copy) of jpeg output to remote server. Also allows put in additional text (date time, location), rotating of image.
Usage:
webcam /etc/webcamrc

Image format information

Good place to look is http://www.fourcc.org/

About philips webcam compression format good info and free decoders can be found on http://www.saillard.org/linux/pwc/