[SOLVED] I found a camera. I wonder if I can make it work
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.
Someone threw out this globe-shaped Logitech "Quickcam" USB camera and I'm intrigued by it and wonder if I could make it work. There's an included software disk for using it on Windows & MacOS but of course nothing for Linux. I found some old Linux threads on using this model but they're probably quite out of date now. It was certainly very difficult in those days but it might be easier now.
My Slackware-15 kernel (5.15.38) recognises it and autoloads a driver module called gspca_stv06xx, which is a good start. A device file link to video0 appears. I know absolutely nothing about video but this could be an interesting learning experience. Any advice would be welcome.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818
Rep:
Quote:
Originally Posted by hazel
Someone threw out this globe-shaped Logitech "Quickcam" USB camera and I'm intrigued by it and wonder if I could make it work. There's an included software disk for using it on Windows & MacOS but of course nothing for Linux. I found some old Linux threads on using this model but they're probably quite out of date now. It was certainly very difficult in those days but it might be easier now.
My Slackware-15 kernel (5.15.38) recognises it and autoloads a driver module called gspca_stv06xx, which is a good start. A device file link to video0 appears. I know absolutely nothing about video but this could be an interesting learning experience. Any advice would be welcome.
I haven't tried using my webcam on a Slackware system so I'm not certain what applications are available for it. I found a few webcam applications on OpenSUSE that do image capture, streaming, etc. and all of them recognized my AVerMedia (a brand I'd only ran across by doing a web search back when finding a Logitech was darned near impossible in the early days of the COVID lockdowns) without any fuss (I was pleasantly surprised). Slackbuild.org has "wxcam" which claims to support a large number of webcams and would certainly be worth looking into.
BTW, there's always Zoom and while their download page doesn't have a Slackware option, it does have an "other Linux OS" option that provides a link for a tar archive download. Sadly, I don't see an INSTALL or README in the archive I looked at. Maybe it's self-contained and/or dependency-free. That'd be refreshing.
I need an ultra-simple front end, since I have no experience in this kind of thing. digiKam already looks too complicated. I'll try building wxcam; I just checked its sourceforge page and it doesn't seem to have any major desktop dependencies. I don't want to get involved with zoom.
Look for 'Qt V4L2 test Utility' in your Applications menu. It should be included with Slackware. If you can get a live feed from your webcam through this program, then your webcam will work (usually) with other various video programs such as ffmpeg, SimpleScreenRecorder (SSR), OBS Studio (available via slackbuilds.org), etc, etc. I must warn that these software are not easy to work with if you've never work with videos before.
SSR is pretty straight forward (for me anyway) so I suggested starting with SSR to get the basics down. See the attached images for my suggestion on configuring SSR generically to capture a webcam feed. In the output screenshot, I've used the YouTube template profile and modified it. It may or may not work on your system. On your input screen, you may need to change the width/height and frame rate to match your webcam's video input. The aforementioned ffmpeg link has information that will help you find your device's specifications. I also highly recommend swapping out (upgradepkg works fine) the Slackware's default ffmpeg for alien's restricted-slackbuild ffmpeg to work with the H.264 codec properly.
I don't have a full slackware install with KDE. I do have ffmpeg but I've just looked at the man page for that and it seems like gobbledygook. I do like the idea of a cli tool though.
So I tried with ffmpeg and I think it works. I followed some instructions on the ffmpeg.org site and got a file called output.mkv. But how do I display it?
Ha Ha! It works! I found a command ffplay and got an image. It doesn't show anything recognisable but you can see it's a video.
No, mp4 output doesn't work. I got Unknown encoder 'libx264'. But I tried the same command as before while actually looking at the camera and I think what I can see is a very out-of-focus rendition of my face. At any rate there is what looks like two eyes, a nose and a mouth. Now I'll have to learn how to make pictures that look like something .
Yup! It's my face. I just tried it with the camera further away. This is going to give me a lot of fun.
.
Sorry, I did assumed a full Slackware installation. Yes, ffmpeg required a basic understanding of inner working of a video.
You can open the mkv videos with various media players such as mplayer, mpv (my favorite, available via slackbuilds.org), VLC (you'll want alien's restricted build, available here, to play back H.264 videos), etc, etc.
Or
You can change your ffmpeg's output extension to something you're familiar with, like avi, mov, or the most commonly used one, the mp4. ffmpeg will then automatically change its inner settings to match the video profile of the output's extension. This is sometime undesired and will lead to errors if this is not understood. At this point, this is where ffmpeg stop being easy.
Personally, Matroska (mkv) is my favorite container as I can throw in just about any formats (video codecs, audio codecs, and subtitles) I can think of in it. It being an open source codec is a bonus point, too.
No, mp4 output doesn't work. I got Unknown encoder 'libx264'. But I tried the same command as before while actually looking at the camera and I think what I can see is a very out-of-focus rendition of my face. At any rate there is what looks like two eyes, a nose and a mouth. Now I'll have to learn how to make pictures that look like something .
Yup! It's my face. I just tried it with the camera further away. This is going to give me a lot of fun.
.
On Slackware 15, H.264 codec isn't included in its ffmpeg builds due to copyright restrictions. You must switch over to alien's restricted builds to be able to create and play back videos created with libx264 codec.
Congratulations on getting videos out of your webcam. Have fun!
I've found out how to focus it. Now I get a recognisable portrait. But definitely not a flattering one. OK, I call myself an old lady (I'll be 77 next month) but this makes me look like an old hag!
Did you know that sane can (in theory) handle webcams? The man page for the sane v4l backend warns that it is alpha software and full of bugs but I tried it just now all the same because I like scanimage. It's a relatively simple program to use. Unfortunately it doesn't quite work on this camera.I tried a full debug run and got
Yes, ffmpeg required a basic understanding of inner working of a video.
Candidate for understatement of the year ?.
Sorry, no input that might be useful, but simply a compliment to those that can understand the arcane machinations of the various standards (for wont of a better name) that interfere in this space ... :sheesh:
I've discovered something else. This camera won't work in bright sunlight; it just whites out. I did my first experiments yesterday in the evening. Today I found that I need to draw the blinds to take a photo. No doubt there's some parameter I could set to cover that. But the latest photo isn't too bad, apart from being horribly unflattering.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.