Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Yesterday I installed a new (Meltdown-proofed) kernel on a friend's machine. She showed me a webcam that she had acquired. She had no idea how to use it and frankly nor did I!
We plugged it in and the kernel recognised it and loaded the v4linux driver, so we looked in synaptic for a suitable program to run. I noticed cheese, which I have seen a lot of posts on, so I said, "Let's install that. It's a well known program."
It came with a slew of dependencies including several gnome libraries. But she has plenty of room on her hard drive, so I said, "What the heck! Let's just do it."
And do you know, we couldn't get that program to work. All we ever saw was a black window with an error message on it. When I googled the message, lots of other people had seen it, but I found only one post (in an Ubuntu forum) that suggested how to solve it, and the method (reducing the resolution) didn't work for us. But I noticed a lot of references to guvcview as a better option. So I decided to install that.
It came with only one dependency! I thought maybe it was piggybacking on the stuff we'd already downloaded for cheese, but that turned out not to be the case. When I deinstalled cheese afterwards, it took (probably) all its dependencies with it. But guvcview worked right out of the box.
Now can someone explain why a small and simple application works while one that brings half of Gnome with it doesn't?
Distribution: Slackware/Salix while testing others
Posts: 1,718
Rep:
sure, the problem with loads of dependencies (created by packagers) is sometimes stuff gets left out, or one dependency might not work-be deprecated-poorly maintained etc... Hazel, you just discovered the blessing of KISS.
may I introduce you to my friend Slackware or Salix: http://slackware.com/ https://salixos.org/
of course there are a few others that still follow KISS, but Debian and *buntus are not one of them.
General - If you have ffmpeg and v4l2 you can do just about everything anyone could want with a webcam and most importantly gather info on your webcam's capabilities. Here's 2 examples
Code:
$ v4l2-ctl --list-devices
(which will give you a simple printout like)
UVC Camera (046d:081b) (usb-0000:00:1d.0-1.5):
/dev/video0
That last one will tell you if a resolution is possible or what type of ideal camera output to choose in any application to get the best results.
MPlayer and VLC also do nice webcam work.
Specific to Cheese and guvcview -
Guvcview does tend to work right out of the box but it also is a bit limited compared to Cheese, partly because it has some dbus issues. It tends to crash quite a bit. These are easily seen when running "guvcview" from CLI.
Cheese is a bit of an automated oddball. When it first starts up it is gathering information to self-configure. It causes some GTK errors in Debian Buster (latest testing) due to older, deprecated library calls. I started it 3 times and it failed twice but got better each time. The 3rd time was the charm and from then, on was at least simple and decent. However it experiences a number of errors on Debian Buster, too. In Cheese's defense it handled higher resolutions without crashing better than guvcview on my box in Debian.
BUT - Since this Debian is a trial install for testing a few items I don't care to expose on my main Slackware system, I visited AlienBob's Slackbuilds.org and searched for "cheese". Bob wisely translated that to "kamerka" which on any reasonable KDE install has zero dependencies. This is true of Slackware by default Full Recommended Install [that incidentally some (foolishly) call "bloated"] but probably since I have a lot of KDE on this Debian, it had zero dependencies as well. It worked right out of the box with zero errors, launched quickly and handled not only higher but maximum possible resolutions with nary a glitch.
Moral of the Story - There's at least two kinds of bloat - subjective and objective, each with possible subheadings of "for no good reason (possibly incompetence)" and "for improved performance, stability, configurability and flexibility". I am of the opinion since hard drive space is cheap and I consider my time valuable, I'd rather spend a few hours during install and initial setup if it saves me time and hassle over the long run where that can add up to huge losses of time, productivity and fun. I rather like Debian for the most part but I LOVE Slackware and the odd thing about that is most people perceive Slackware as "too much work manually resolving dependencies" when the opposite is actually true. PLUS, the developers are few, and that with a single final arbiter, so there is less cross-purposed conflicts, a dedication to simplicity and reliability that I haven't seen anyone close to in almost 20 years of use with LOTS of distro testing.
In relation to this thread, since kamerka is in Synaptic, please do try that and get a hint of the kind of simple stability that appeals to Slackers... and many, many others who just don't know it yet.
One relevant factor (which I don't think I mentioned) is that this is a fairly old computer with 1 MB RAM, running AntiX. So there's plenty of drive space but not a lot of memory. I think that as long as guvcview works, she'd better stick to that. She's not the kind of user who will want to play around with different resolutions.
What Enorbet said about cheese configuring itself the first time around reminded me of something I'd forgotten. The first time we launched it, we did actually get a picture. On every subsequent occasion, we got nothing. It looks like cheese may have configured itself out of operation. Another reason for avoiding software that is too clever by half.
Kamerka sounds quite nice but it would bring the KDE libraries with it. Better stick to what we have.
antiX (full) ships with guvcview so I'm surprised you had to install it. Or are you using antiX-base version?
Yes, it was base when we installed it, although I've added a few bits and pieces since, including LO. This is a "learning" machine for a complete computer virgin, so she'd only be confused by a huge gamut of software. Mainly she's learning how to be confident on a computer, how to use a keyboard and mouse, surf the web, play music (she taught herself that!), write stuff on LO Writer, keep the system up to date and so on. As she asks about other things, we add them, like with the webcam. I'm glad you favour guvcview. I found it quite impressive.
Distribution: Slackware/Salix while testing others
Posts: 1,718
Rep:
Quote:
Originally Posted by hazel
Yes, it was base when we installed it, although I've added a few bits and pieces since, including LO. This is a "learning" machine for a complete computer virgin, so she'd only be confused by a huge gamut of software. Mainly she's learning how to be confident on a computer, how to use a keyboard and mouse, surf the web, play music (she taught herself that!), write stuff on LO Writer, keep the system up to date and so on. As she asks about other things, we add them, like with the webcam. I'm glad you favour guvcview. I found it quite impressive.
I always thought giving new users a "full" distro experience was best, then they can play around with minimalism after experience is gained.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.