Ubuntu test camera and generate AVI file

Source: Internet
Author: User
Keywords Camera can install
Tags aliyun apt file help html http install install the camera

Many cameras can be installed on the use, if not used, you can use the Easycam to install the camera driver. But if this still does not http://www.aliyun.com/zixun/aggregation/7432.html ">" and you may need to install the driver manually. There are several links at the end of this page to help.

Test camera

There is a handy applet called Camorama that can view, modify, and save images captured by the camera. Can be installed through the APT command:

sudo apt install Camorama

XAWTV is another tool that can be used to test the camera.

sudo apt install xawtv

Additional software

You can install a system tray camera Monitor, which can notify you when the camera is open. In aMSN, Kopete and Ekiga also have built-in camera drivers. The installation method is as follows:

sudo apt install kopete
sudo apt install amsn
sudo apt install Ekiga

Record as AVI file

MPlayer can play the camera streaming media, you can use the following command line to open:

MPlayer tv://-tv Driver=v4l:width=640:height=480:device=/dev/video0

You need to set the resolution (width =??? & high =???) according to your device output. MPlayer, MEncoder can record the contents of the camera into AVI and other video files, such as can be recorded as no sound AVI file:

MEncoder tv://-tv DRIVER=V4L:WIDTH=320:HEIGHT=240:DEVICE=/DEV/VIDEO0-OVC lavc-o Webcam.avi

or record the sound at the same time:

MEncoder tv://-tv DRIVER=V4L:WIDTH=320:HEIGHT=240:DEVICE=/DEV/VIDEO0:FORCEAUDIO:ADEVICE=/DEV/DSP1-OVC LAVC-OAC Mp3lame-lameopts Cbr:br=64:mode=3-o Webcam.avi

You can use ' man mencoder ' to see more audio options. In the example above,/DEV/DSP1 refers to the USB audio device of the camera, while/DEV/DSP refers to the sound card. Program Installation Method:

sudo apt install mplayer mencoder

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.