Bug 25645 - Typhoon Easycam webcam does not work with cheese and firefox
Summary: Typhoon Easycam webcam does not work with cheese and firefox
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-31 14:37 CET by Elmar Stellnberger
Modified: 2021-09-07 14:09 CEST (History)
0 users

See Also:
Source RPM:
CVE:
Status comment:


Attachments
rpm -qa, result of on openSUSE Leap 15.1 (72.68 KB, text/plain)
2019-10-31 14:37 CET, Elmar Stellnberger
Details

Description Elmar Stellnberger 2019-10-31 14:37:14 CET
My external USB Webcam does not work with the most common programs like cheese, vlc and firefox. It works well with guvcview though. The same bug can be experienced in Debian, except in the very old Debian 8. It is not kernel related. I suppose it to be a library issue. You can see in the Debian report how I have tried to find out about that library on my own with fetchupd.py, a program I have written on my own. Interestingly cheese works well openSUSE Leap 15.1. I will attach a list with all installed packages under openSUSE.
related Debian report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941993
webcam: Typhoon Easycam USB 330K (newer)/Typhoon Easycam USB 2.0
Comment 1 Elmar Stellnberger 2019-10-31 14:37:54 CET
Created attachment 11338 [details]
rpm -qa, result of on openSUSE Leap 15.1
Comment 2 Lewis Smith 2019-11-01 11:51:45 CET
Thank you for the report, and the useful pointer:
> It works well with guvcview though
Please can you say:
- If you used Mageia 6, was the problem also there? Or did it work then?
- Do you have the 'Tainted' repos enabled? If not, enable them and update your system.
- Do you have the opportunity to try a different make of WebCam? (It looks as if you have 2 different models of the same maker). This would show whether the problem is device related. (I do not have one to try).

CC: (none) => lewyssmith

Comment 3 Elmar Stellnberger 2019-11-01 13:07:02 CET
  The integrated webcam worked normally on Debian 9 and I would suppose the same for Mageia. Next week when I have the Celsius notebook again I will be able to test with the Tainted repos and with Mageia 6.
Comment 4 William Kenney 2019-11-01 13:40:24 CET
I'll be looking at this over the next few days. Some thoughts and tips.

The kernel support for webcams is built exclusively around the Logitech cameras.
This due to the fact that there was a time when there were over 200 different
hardware USB webcams. Now there is really only one standard. I do have a Logitech
webcam and so far it seems to be working properly.

Please define precicisely how you are using you cameara. Like with Firefox what
websites, if any. How do you use it with VLC and cheese. Do you use Skype video?

Remember when webcams would come with a Windows driver install CD?
That was because each webcam had a different hardware structure.
Not anymore. Or shouldn't be.

You may be best served by going down to your local "Walmart" and picking
up one of the cheap Logitech webcams.

CC: (none) => wilcal.int

Comment 5 Elmar Stellnberger 2019-11-01 15:02:37 CET
camera usage:
* vlc /dev/video2
* cheese -d /dev/video2
* guvcview -d /dev/video2
* Facebook video chat

  Some versions of cheese also have a GUI dialogue to select the camera (you can select VGA ....). I have always asserted that I am using the right device. On Mageia I have used the -d parameter and cheese was displaying a black area while vlc was displaying a green bar at the top and a black screen area otherwhere. As far as I remember the camera was offered for selection in the Facebook chat but could then not be opened/used.
  I am quite sure that it is not a kernel issue. How could it work with guvcview otherwise? In former times the webcam has always worked - and it is still working with Debian 8 and one of the newest kernels i.e. 5.x as well as many elder kernels. On the other hand it does not work with Debian 9, also not with quite old kernels. It will be a library issue for sure.
Comment 6 William Kenney 2019-11-01 16:22:49 CET
My Logitech C615 webcam using USB viewer:

https://www.amazon.com/Logitech-Laptop-Webcam-Design-360-Degree/dp/B004YW7WCY

As seen on usbview:

HD Webcam C615
Serial Number: E940C230
Speed: 480Mb/s (high)
USB Version:  2.00
Device Class: ef(misc )
Device Subclass: 02
Device Protocol: 01
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 046d
Product Id: 082c
Revision Number:  0.11

[wilcal@localhost ~]$ uname -a
Linux localhost.localdomain 5.3.7-desktop-4.mga7 #1 SMP Thu Oct 24 20:11:12 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost wilcal]# urpmi vlc
Package vlc-3.0.8-1.mga7.tainted.x86_64 is already installed

VLC -> View -> Turn on Advanced Controls
Media -> Open Capture Device -> Capture mode -> Video camera -> play
Logitech webcam appears on VLC
Left button click on Advanced Controls red dot start recording
records video to /home/wilcal/Videos
creates: vlc-record-2019-11-01-08h03m09s-v4l2____dev_video0-.avi
avi file playable using VLC, ffplay and SMPLayer
Comment 7 William Kenney 2019-11-01 21:33:54 CET
Logitech C615 as seen by usbview:

HD Webcam C615
Serial Number: E940C230
Speed: 480Mb/s (high)
USB Version:  2.00
Device Class: ef(misc )
Device Subclass: 02
Device Protocol: 01
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 046d
Product Id: 082c
Revision Number:  0.11

[root@localhost wilcal]# uname -a
Linux localhost.localdomain 5.3.7-desktop-4.mga7 #1 SMP Thu Oct 24 20:11:12 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost wilcal]# urpmi cheese
Package cheese-3.32.1-1.mga7.x86_64 is already installed
[root@localhost wilcal]# lspci -k
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 440] (rev a1)
        Subsystem: Gigabyte Technology Co., Ltd Device 3518
        Kernel driver in use: nvidia
        Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia390
        
Webcam is displayed by Cheese
Video is captured by Cheese:  /Videos/2019-11-01-130337.webm
VLC can play video
ffplay plays video
SMPlayer plays video
Comment 8 Elmar Stellnberger 2019-11-06 17:16:39 CET
I have enabled the tainted repos now but urpmi.update -a does not replace any libarary or package automatically.
Comment 9 Elmar Stellnberger 2019-11-06 18:04:43 CET
Yes, it works with the tainted repos (used urpmi --auto-update) and vlc (/dev/video2). However cheese seems to ignore the -d /dev/video2 parameter so that I will need to re-test without tainted.
Comment 10 Elmar Stellnberger 2019-11-06 18:28:10 CET
  Now I have uninstalled all tainted packages by hand (sort, comm, rpm -e --nodeps, urpmi) and see it still works with vlc the way you described it.
$ rpm -qa | grep -i tainted
>> no single line with a tainted package returned
$

  I think the bug that irritated me is that there is no more camera selection dialogue with cheese and that cheese -d /dev/video2 does not take any effect for /dev/video2. I will reboot now in order to verify that it is really still working.
Comment 11 Elmar Stellnberger 2019-11-06 18:29:46 CET
Yes, and vlc /dev/video2 really gives a green screen; i.e. you have to select that device via the dialogue.
Comment 12 Elmar Stellnberger 2019-11-06 18:49:49 CET
I have rebooted now and it still works (urpmi --replacepkgs would have been the better option.). The last thing to test will be the webcam with Firefox/Facebook.
Comment 13 Elmar Stellnberger 2019-11-06 19:03:29 CET
The camera still does not work with Firefox/Facebook: 'hardware access failed' - you have to enable your camera; - and believe me I have selected 'enable' for it. The integrated camera seems to work.
Comment 14 Elmar Stellnberger 2019-11-06 19:06:07 CET
Maybe it tries to open /dev/video2 when it should open /dev/video0. You can not open /dev/video2 with vlc.
Comment 15 Lewis Smith 2019-11-07 21:25:10 CET
Thank you for trying all that you have, with more things working now than previously.
The current state of affairs is unclear. Can you please re-summarise the problem as it currently stands: what now works, and what is left that does not. It is difficult to assign a bug that is too widespread; you have done much to narrow the field.
Comment 16 Elmar Stellnberger 2019-11-07 21:33:43 CET
** works **: viewing the webcam with vlc and guvcview, tainted repos not required
** does not work **: selecting another camera in cheese, neither with -d on the command line nor is there a menu for this any more (as far as I remember elder versions had one)
** does not work **: using the camera with Firefox/Facebook video chat: You can select the camera ('VGA') but then it writes 'hardware access failed' - you have to enable your camera; - and believe me I have selected 'enable' for it.
Comment 17 Elmar Stellnberger 2019-11-07 21:39:31 CET
  Cheese seems to have access problems similar to Firefox. If I rename the device nodes of the integrate webcam cheese writes: 'no devices found'.
$mv /dev/video0 /dev/vid0
$mv /dev/video1 /dev/vid1
$mv /dev/video3 /dev/video0
$ls -l /dev/vid*
crw-rw----+ 1 root video 81, 0 Sep 27 16:43 /dev/vid0
crw-rw----+ 1 root video 81, 1 Sep 27 16:43 /dev/vid1
crw-rw----+ 1 root video 81, 3 Nov  7 21:27 /dev/video0
#renaming it to /dev/video1 does not help either

  There seems to be some kind of access problem with Firefox and cheese, but only in newer versions of the distribution´s environment.
Comment 18 Lewis Smith 2019-11-08 20:23:51 CET
Once again, Elmar, thank you for all your trials.
Not seeing where the problem might lie, assigning this globally. In any case, cheese has no maintainer.

Assignee: bugsquad => pkg-bugs
Summary: webcam does not work with cheese, vlc and firefox => Typhoon Easycam webcam does not work with cheese and firefox
CC: lewyssmith, wilcal.int => (none)

Comment 19 Elmar Stellnberger 2019-11-08 20:40:56 CET
  My idea would have been that a common library between cheese and firefox-esr would cause the problem:

./fetchupd.py commdep cheese firefox-esr
common dependencies:
 libncursesw6 amd64
 libatk1.0-0 amd64
 libasound2-data all
 libasound2 amd64
 libice6 amd64
 lsb-base all
 x11-common all
 libncurses6 amd64
 libatk1.0-data all
 libc6 amd64
 libgcc1 amd64

  However there is no promising candidate in that list.
Comment 20 Elmar Stellnberger 2021-02-19 20:55:29 CET
  I have now retested with Mageia Cauldron:
* works with guvcview & vlc
* does not work with cheese (no device found) & firefox
  
  Webcam appears as /dev/video0. Cheese says it can not find the device. With Firefox I can grant www.facebook.com access to my webcam but then it says 'something has failed', restart your browser or reboot.

kernel: 5.10.16-desktop-1.mga8 (works)
Comment 21 Elmar Stellnberger 2021-02-19 20:56:44 CET
firefox-78.7.0-1.mga8
cheese-3.38.0-1.mga8
Comment 22 Elmar Stellnberger 2021-02-20 13:34:43 CET
I have now found out where this issue comes from: GStreamer is compiled without libv4l2 code by default. Something that could be changed easily: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/644
Comment 23 Elmar Stellnberger 2021-02-21 11:45:46 CET
You can use 
> export GST_V4L2_USE_LIBV4L2=1

 and then Cheese works perfectly. However Firefox still does not work. Also the chromium browser seems not to support my webcam as a visit at https://de.webcamtests.com/ showed. Unfortunately Firefox does not use Gstreamer like Cheese.
Comment 24 Elmar Stellnberger 2021-02-21 12:13:59 CET
The Firefox bug is here: https://bugzilla.mozilla.org/show_bug.cgi?id=1693887
Comment 25 Elmar Stellnberger 2021-04-25 10:54:39 CEST
Unfortunately they are shifting the issue back and forth at Chromium/WebRTC. No one wants to solve it. Perhaps you can talk to some of the developers to make the problem being solved: https://bugs.chromium.org/p/webrtc/issues/detail?id=12599
Comment 26 Aurelien Oudelet 2021-07-06 13:15:09 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 27 Marja Van Waes 2021-09-07 14:09:35 CEST
Hi bug reporter and hi assignee and others involved,

Please reopen this bug report if it is still valid for Mageia 8 or 9(cauldron), and change "Version:" in the upper left of this report accordingly.

This report is being closed as OLD because it was filed against Mageia 7, for which  support ended on June 30th 2021.

Thanks,
Marja

Resolution: (none) => OLD
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.