LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-11-2017, 11:53 AM   #1
kenb1000
Member
 
Registered: Oct 2015
Distribution: Linux Mint 20.3
Posts: 83

Rep: Reputation: Disabled
Logitech C270 webcam problems with guvcview


Greetings:

I'm trying to get my Logitech webcam working with guvcview but not having much luck. The green light on the camera lights up when I launch guvcview and I get audio but the video window is black. I tried plugging the camera into all of the various USB slots on the computer - front, rear, USB powered hub, and USB 3.0 expansion card. I also tried adjusting the video settings using Video4Linux control panel and in the application as well, as one person reported that lowering the contrast setting solved the same problem.

I can get video using VLC but the quality is pretty bad and no audio. I've stayed away from Cheese because many users seem to have problems with it.

The camera works fine on Windows 7 using the Logitech software but I'm trying to depend on Windows as little as possible these days.

I'm currently running Mint 17.3

Any advice will be appreciated. Thanks.
 
Old 02-11-2017, 12:19 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I have that webcam. Works great. And you can turn that light off.

Code:
$ uvcdynctrl --device=video1 --set 'LED1 Mode' 0
$ v4l2-ctl --device=/dev/video1 --set-fmt-video=width=1280,height=960,pixelformat=MJPG --set-parm="5"
$ mpv --ao=null --vo=opengl --demuxer-lavf-format=video4linux2 /dev/video1
And various other ways to use the webcam. You might check the settings on guvcview and select auto where possible.
 
Old 02-11-2017, 12:21 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
On my laptop guvcview defaults to the built in camcorder (/dev/video0). Which shows up green because I have a dollar bill folded over the lens to block it's view.
 
Old 02-11-2017, 12:46 PM   #4
kenb1000
Member
 
Registered: Oct 2015
Distribution: Linux Mint 20.3
Posts: 83

Original Poster
Rep: Reputation: Disabled
@Shadow 7: Thanks for the reply. All the auto boxes are checked (I only see two). Does the green light have any effect on whether or not I get video?
 
Old 02-11-2017, 12:47 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Quote:
Originally Posted by kenb1000 View Post
@Shadow 7: Thanks for the reply. All the auto boxes are checked (I only see two). Does the green light have any effect on whether or not I get video?
No. But it will reflect off a window if you have it pointed out one. And required to be on by law if you are recording, depending on region.
 
Old 02-11-2017, 12:57 PM   #6
kenb1000
Member
 
Registered: Oct 2015
Distribution: Linux Mint 20.3
Posts: 83

Original Poster
Rep: Reputation: Disabled
Interesting. I suppose that light is for people walking into a room to let hem know they're being recorded.
 
Old 02-11-2017, 07:02 PM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
The /dev/video# is assigned to the video group, so if your user isn't in that group, might be why you're seeing black.

$ groups
 
Old 02-11-2017, 07:27 PM   #8
kenb1000
Member
 
Registered: Oct 2015
Distribution: Linux Mint 20.3
Posts: 83

Original Poster
Rep: Reputation: Disabled
When I run that command I get the following output:

adm cdrom sudo dip plugdev lpadmin sambashare debian-tor

I ran:
$ useradd -G video {my user name}

Results:
useradd: user 'my user name' already exists

I assume that means I'm in the video group?
 
Old 02-11-2017, 07:48 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Groups are changed with "usermod". Also, you need to be root the change permissions, and relog to have the changes take affect.

$ sudo usermod -G adm,cdrom,sudo,dip,plugdev,lpadmin,sambashare,debian-tor,video,audio {my user name}
 
Old 02-11-2017, 08:03 PM   #10
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Quote:
Originally Posted by Shadow_7 View Post
Groups are changed with "usermod". Also, you need to be root the change permissions, and relog to have the changes take affect.

$ sudo usermod -G adm,cdrom,sudo,dip,plugdev,lpadmin,sambashare,debian-tor,video,audio {my user name}
You may also use gpasswd.

Code:
       -a, --add user
           Add the user to the named group.
eg

Code:
gpasswd -a your_username your_group
 
Old 02-11-2017, 08:07 PM   #11
kenb1000
Member
 
Registered: Oct 2015
Distribution: Linux Mint 20.3
Posts: 83

Original Poster
Rep: Reputation: Disabled
Well, unfortunately that did not work. Have audio and still no video. Rebooted and changed USB slot. Tried fiddling with the brightness and contrast.

Any other possible solutions you can think of?
 
Old 02-11-2017, 08:09 PM   #12
kenb1000
Member
 
Registered: Oct 2015
Distribution: Linux Mint 20.3
Posts: 83

Original Poster
Rep: Reputation: Disabled
Will try your other suggestions and let you know.

Thanks.
 
Old 02-11-2017, 08:15 PM   #13
kenb1000
Member
 
Registered: Oct 2015
Distribution: Linux Mint 20.3
Posts: 83

Original Poster
Rep: Reputation: Disabled
@Sefyir: Thanks for your reply. Ran the command and I was successfully added to the group but problem persists.
 
Old 02-11-2017, 08:51 PM   #14
kenb1000
Member
 
Registered: Oct 2015
Distribution: Linux Mint 20.3
Posts: 83

Original Poster
Rep: Reputation: Disabled
OK - problem solved.

I originally installed guvcview using the Synaptic Package manager. I tried uninstalling and reinstalling the same way but no difference. So I decided to uninstall and then reinstall using PPA. Now everything works. My guess is that Synaptic installed an older version which for some reason my system did not like.

Thanks to all for you help. I did learn a few things.
 
  


Reply

Tags
guvcview, logitech, mint-17, webcam



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
guvcview not working with logitech c270 webcam mia_tech Linux - General 3 11-23-2016 08:20 PM
[SOLVED] logitech webcam c270 usage? vonbiber Slackware 6 03-11-2015 01:41 PM
Logitech C270 webcam mike11 Linux - Hardware 1 03-18-2012 06:53 AM
Logitech webcam C270 driver Michael Pacini Linux - Newbie 1 03-03-2012 03:22 PM
Logitech C270 webcam video problems allie1941 Linux - Newbie 3 12-08-2010 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration