Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I bought a Logitech HD Pro Webcam C920. I tried it with Cheese and the stills are great but the video and audio are terrbily out of sync. I tried Guvciew and I get: Could not start a video stream in the device.
Anybody know how I could get this thing capturing video well? Thanks.
It's probably not a guvc webcam if it works with Cheese, but not with Guvcview.
What distro/version are you using and what is your graphics card? (Your user agent icon says "Ubuntu," but many Ubuntu derivatives will report as Ubuntu in their user agent strings.)
It's probably not a guvc webcam if it works with Cheese, but not with Guvcview.
What distro/version are you using and what is your graphics card? (Your user agent icon says "Ubuntu," but many Ubuntu derivatives will report as Ubuntu in their user agent strings.)
Thanks Frank. Xubuntu 16.04LTS. I'm not on that computer but I'll check it tomorrow and report back (as to what the graphics card is).
I bought a Logitech HD Pro Webcam C920. I tried it with Cheese and the stills are great but the video and audio are terrbily out of sync. I tried Guvciew and I get: Could not start a video stream in the device.
Anybody know how I could get this thing capturing video well? Thanks.
this guy got it to work (i guess) I didn't watch the entire how to video. But it looks like he is using Ubuntutututututu, not that that should really matter, or should it? Ubuntututu is funny like Windows funny.
It's probably not a guvc webcam if it works with Cheese, but not with Guvcview.
What distro/version are you using and what is your graphics card? (Your user agent icon says "Ubuntu," but many Ubuntu derivatives will report as Ubuntu in their user agent strings.)
Here's the graphic card. Thanks.
Code:
gregory@gregory-GA-A55M-DS2:~/Desktop$ lspci | grep VGA
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] BeaverCreek [Radeon HD 6530D]
gregory@gregory-GA-A55M-DS2:~/Desktop$
this guy got it to work (i guess) I didn't watch the entire how to video. But it looks like he is using Ubuntutututututu, not that that should really matter, or should it? Ubuntututu is funny like Windows funny.
Thanks BW. I already saw that youtube video and if you'll notice he never shows the video with audio. If you google around you find all kinds of people have trouble syncing the video and audio with Cheese. I guess there's no solution. I guess Linux people never record video from webcams. LOL
If you have cheese already open, guvview won't be able to grab the video from the webcam.
Just a thought.
I would suggest trialling OBS (Open Broadcast Studio).
It's a little overkill for just recording a webcam, but I've been using the C920 webcam and it's been flawless 1920p 30fps ever since I got it (no special config done)
You could of course use mplayer or ffmpeg to simply record from the webcam to a file.
If you have cheese already open, guvview won't be able to grab the video from the webcam.
Just a thought.
I would suggest trialling OBS (Open Broadcast Studio).
It's a little overkill for just recording a webcam, but I've been using the C920 webcam and it's been flawless 1920p 30fps ever since I got it (no special config done)
You could of course use mplayer or ffmpeg to simply record from the webcam to a file.
Thanks Sefyir. I just want to record simple videos of me talking. It would help to be able to see myself in the monitor as it records. Would OBS or mplayer or ffmpeg be best for that? Thanks.
P.S. I did not have Cheese and guvcview open at the same time.
P.S. I did not have Cheese and guvcview open at the same time.
Not sure then about that..
But if it's just a fullscreen of you and you want to be able to see yourself, you could try a desktop recorder like recordmydesktop or kazam and doing something like mplayer -fs -x 1920 -y 1080 tv://
I still suggest OBS though. You can have it record you in full screen and let you do other stuff at the same time. If you want to see yourself, just bring up the OBS window
It should be in repo: obs-studio
But if it's just a fullscreen of you and you want to be able to see yourself, you could try a desktop recorder like recordmydesktop or kazam and doing something like mplayer -fs -x 1920 -y 1080 tv://
I still suggest OBS though. You can have it record you in full screen and let you do other stuff at the same time. If you want to see yourself, just bring up the OBS window
It should be in repo: obs-studio
Thanks Sefyir. I'd like to try OBS. I'm not up on how to get it though. Think the way they have it on the website https://obsproject.com/download would work? Just run those four commands? (see screenshot)
Ubuntu installation
FFmpeg is required. If you do not have the FFmpeg installed (if you're not sure, then you probably don't have it), you can get it with the following commands:
For Ubuntu 14.04 LTS, FFmpeg is not officially included so you will need a specific PPA:
sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next
sudo apt-get update && sudo apt-get install ffmpeg
For Ubuntu 15.04 and following versions, FFmpeg is officially included:
sudo apt-get install ffmpeg
Then you can install OBS with the following commands:
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update && sudo apt-get install obs-studio
Technically there a compressed stream coming off that webcam already. You shouldn't have any sync issues capturing that. It's a common device for beaglebone black, which isn't that beefy specs wise. If you have enough computes you can play it back on screen and screen capture.
The "async 1" is a legacy option, but is required IME to achieve av sync. The -filter_complex is the new way (in theory) but doesn't seem to do anything without "async 1". The parms past it should be defaults (long hand in case I needed to adjust). The -r:v 5 is the fps, which you have to keep without the computation specs of your device and it's optimizations. Most of mine being dual cores with 2GB ram at about 2GHz each core, so 5fps is the safe zone which allows me to capture and do stuff. And avconv which is the fork of ffmpeg in debian jessie.
Not sure if the old way of $(/dev/video0 > capture.raw) would work for that one, it does have an onboard encoder. You'll likely need to set attributes with v4l2-ctl, uvcdynctrl, and friends. With tools like vlc you need to pass the parameters to vlc if it's not the default (highest capability). guvcview is good for setting preferences, but vlc will ignore them. While mpv will go with the flow / inherit attributes IME. Where IME equals in my experience.
Which is the highest resolution at the framerate my low spec'd gear can handle. And turning the LED OFF since that reflects if you have it pointed out a window. Sometimes I have to unplug and replug the webcam for that LED option to exist. Even after a cold boot.
If the MJPG format is supported, then vlc can stream the webcam over the network. Although it's a lot of data and 960x720 @ 5fps is the best I could do without capping out the bitrate of a 10/100 network (rpi B).
.
I tend towards the screen capture because the webcam is often a variable frame rate device and sync is an issue. For example if I set capture at 30 fps, the webcam will still drop to 15 fps in low light. Capturing the screen lets you set a fixed frame rate (and keep it). Not a lot of webcams give you much control of basic camera settings like frame rate, aperture, iso, and such.
Ubuntu installation
FFmpeg is required. If you do not have the FFmpeg installed (if you're not sure, then you probably don't have it), you can get it with the following commands:
For Ubuntu 14.04 LTS, FFmpeg is not officially included so you will need a specific PPA:
sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next
sudo apt-get update && sudo apt-get install ffmpeg
For Ubuntu 15.04 and following versions, FFmpeg is officially included:
sudo apt-get install ffmpeg
Then you can install OBS with the following commands:
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update && sudo apt-get install obs-studio
Thanks Sefyir. Yeah, I should've said I have Xubuntu 16.04LTS so I should be okay following the instructions. Appreciate it!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.