Language Selection

English French German Italian Portuguese Spanish

Five fun ways to use a Linux webcam

Filed under
Hardware

So you just set up a Linux-compatible webcam. You've tested it with Kopete, and you can send images on MSN and Yahoo! Now what? Here are some fun things you can try.

Record yourself

One of the simplest ways you can record webcam videos is with mencoder. Using the Video4Linux driver, mencoder can take input from the webcam and save it in an uncompressed AVI file. Use the following command line to record an AVI with a resolution of 320x240 pixels.

mencoder tv:// -tv driver=v4l:width=320:height=240:device=/dev/video0 -nosound -ovc lavc -o wcrecording.avi

Substitute /dev/video0 with the device node used by your USB webcam. Since my low-budget webcam doesn't have a microphone, I use the -nosound option to skip audio recording.

If you'd rather use a GUI to do the recording, try Video4Linux Grab. It can encode DivX and XviD files of the webcam input in real time using V4L. You can choose any other video and audio codec available on your system and use the GUI to select an aspect ratio.

Make a video stream

More Here




Also at linux.com:

When you have shelled out for a swanky mouse like the Logitech VX Nano, you want to make the most out of your investment, which means making its programmable buttons work. However, many Linux distributions recognize most mice as generic pointing devices, so none of the fancy extra buttons work right out of the box. The btnx utility can help you to turn your mouse into the versatile tool it is meant to be.

btnx comes in two parts: the btnx daemon that does the behind-the-scenes work of managing mouse button events, and the btnx-config tool, a graphical front end that helps you configure mouse button actions. btnx's Web site provides packages for Ubuntu and openSUSE, as well as source code archives for other distributions. As often happens, the packages are a step behind the source code distribution, so if you want to install the latest version of btnx, you have to go the usual ./configure; make; make install route.

Get the most out of your mouse with btnx

More in Tux Machines

Google in Devices

  • Glow LEDs with Google Home
    For the part one, the custom commands were possible thanks to Google Actions Apis. I used API.AI for my purpose since they had good documentation. I wont go into detail explaining the form fields in Api.ai, they have done a good job with documentation and explaining part, I will just share my configurations screenshot for your quick reference and understanding. In Api.ai the conversations are broken into intents. I used one intent (Default Welcome Intent) and a followup intent (Default Welcome Intent – custom) for my application.
  • Google Assistant SDK preview brings voice agent to the Raspberry Pi
    Google has released a Python-based Google Assistant SDK that’s designed for prototyping voice agent technology on the Raspberry Pi 3. Google’s developer preview aims to bring Google Assistant voice agent applications to Linux developers. The Google Assistant SDK is initially designed for prototyping voice agent technology on the Raspberry Pi 3 using Python and Raspbian Linux, but it works with most Linux distributions. The SDK lets developers add voice control, natural language understanding, and Google AI services to a variety of devices.
  • Huawei, Google create a high-powered single board computer for Android
    The Raspberry Pi is very popular with DIY enthusiasts because of the seemingly endless possibilities of how you can design devices with it. Huawei and Google have created their own single board computer (SBC), but this will probably benefit Android developers more than DIY enthusiasts. The HiKey 960 is a very robust SBC aimed at creating an Android PC or a testing tool for Android apps.
  • Huawei’s $239 HiKey 960 wants to be a high-end alternative to Raspberry Pi
    12.5 million sales in five years – Linaro and Huawei have unveiled a high-end (read: expensive) rival.

Mobile, Tizen, and Android

Leftovers: OSS

  • Is The Open Source Software Movement A Technological Religion?
  • Experts weigh in on open source platforms, market
    In this Advisory Board, our experts discuss the pros and cons of open source virtualization and which platforms are giving proprietary vendors a run for their money.
  • Light a fire under Cassandra with Apache Ignite
    Apache Cassandra is a popular database for several reasons. The open source, distributed, NoSQL database has no single point of failure, so it’s well suited for high-availability applications. It supports multi-datacenter replication, allowing organizations to achieve greater resiliency by, for example, storing data across multiple Amazon Web Services availability zones. It also offers massive and linear scalability, so any number of nodes can easily be added to any Cassandra cluster in any datacenter. For these reasons, companies such as Netflix, eBay, Expedia, and several others have been using Cassandra for key parts of their businesses for many years.
  • Proprietary Election Systems: Summarily Disqualified
    Hello Open Source Software Community & U.S. Voters, I and the California Association of Voting Officials, represent a group of renowned computer scientists that have pioneered open source election systems, including, "one4all," New Hampshire’s Open Source Accessible Voting System (see attached). Today government organizations like NASA, the Department of Defense, and the U.S. Air Force rely on open source software for mission critical operations. I and CAVO believe voting and elections are indeed mission-critical to protect democracy and fulfill the promise of the United States of America as a representative republic. Since 2004, the open source community has advocated for transparent and secure—publicly owned—election systems to replace the insecure, proprietary systems most often deployed within communities. Open source options for elections systems can reduce the costs to taxpayers by as much as 50% compared to traditional proprietary options, which also eliminates vendor lock-in, or the inability of an elections office to migrate away from a solution as costs rise or quality decreases.
  • Microsoft SQL Server on Linux – YES, Linux! [Ed: Marketing and PR from IDG's "Microsoft Subnet"; This headline is a lie from Microsoft; something running on DrawBridge (proprietary Wine-like Windows layer) is not GNU/Linux]

Creative Commons News

  • Creative Commons Is Resurrecting Palmyra
    Creative Commons launched its 2017 Global Summit today with a rather moving surprise: a seven-foot-tall 3D printed replica of the Tetrapylon from Palmyra, Syria. For those who don't know the tragic situation, Palmyra is one of the most historic cities in the world — but it is being steadily destroyed by ISIS, robbing the world of countless irreplaceable artifacts and murdering those who have tried to protect them (the folks at Extra History have a pair of good summary videos discussing the history and the current situation in the city). Among ISIS's human targets was Bassel Khartabil, who launched Syria's CC community several years ago and began a project to take 3D scans of the city, which CC has been gathering and releasing under a CC0 Public Domain license. He was captured and imprisoned, and for the past five years his whereabouts and status have been unknown. As the #FreeBassel campaign continues, Creative Commons is now working to bring his invaluable scans to life in the form of 3D-printed replicas, starting with today's unveiling of the Tetrapylon — which was destroyed in January along with part of a Roman theatre after ISIS captured the city for a second time.
  • Creative Commons: 1.2 billion strong and growing
    "The state of the commons is strong." The 2016 State of the Commons report, issued by Creative Commons this morning, does not begin with those words, but it could. The report shows an increase in adoption for the suite of licenses, but that is not the whole story.