Bug 30317 - wmwebcam returns "VIDIOCMCAPTURE: Invalid argument" and "Error: Can't get image"
Summary: wmwebcam returns "VIDIOCMCAPTURE: Invalid argument" and "Error: Can't get image"
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Chris Denice
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-21 15:12 CEST by Pierre Fortin
Modified: 2022-04-24 12:11 CEST (History)
4 users (show)

See Also:
Source RPM: wmwebcam-0.3.5-11.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Pierre Fortin 2022-04-21 15:12:59 CEST
Description of problem:wmwwebcam is a useless application as provided.  There is no -h or --help 
With or without arguments, all it returns is:
VIDIOCMCAPTURE: Invalid argument
Error: Can't get image

There is no documentation .

https://slackbuilds.org/repository/15.0/desktop/wmwebcam/
Version-Release number of selected component (if applicable):


How reproducible:  always.  Enhancement:  remove this app.


Steps to Reproduce:
1.install
2.start it (a waste of time)
3.
Comment 1 Lewis Smith 2022-04-21 20:48:26 CEST
This is the package info for it:
Summary     : A dock application for your webcam
Description :
Wmwebcam is yet another dockapp for WindowMaker, or any desktop
environment that handles dock applications, that streams your webcam
into a small docked window. Check the perl script
"/usr/bin/wmwebcam.pl" if you want to publish the captured images
with your favorite web server.

Installed it, with no webcam:
 $ wmwebcam
 Can't open device /dev/video0
reasonable.

Checking further, as you say no command help, nothing in /usr/doc. This is no help either:
 $ less /usr/bin/wmwebcam.pl
#!/usr/bin/perl
# this script checks if the ppp connection is on and then stamps the
# images and sends them to the webserver
# check if the ppp is on before stamping&sending, otherwise don't do
# anything
$areweonline = `grep "eth" /proc/net/route`;
if (length $areweonline != 0) { # THIS IS JUST MY CONFIGURATION,
                                # CHANGE TO YOUR OWN
system "scp -q /tmp/webcam.jpg SOME_HOST:public_html/webcam.jpg";
                   # replace the previous line to suit your needs
                   # or disable if you use stamp's own ftpsend
} else {
# don't do anything
}

and the project link https://www.dockapps.net/wmwebcam has no useful information.

I agree with the verdict, it is unusable (even if it works if you know how to drive it). This can be added to the list of packages to drop; CC'ing Marja & Morgan for that (TIA & sorry...)

Source RPM: (none) => wmwebcam-0.3.5-11.mga8.src.rpm
CC: (none) => fri, marja11
Summary: wmwebcam is useless => wmebcam is useless

Comment 2 Morgan Leijström 2022-04-22 10:07:37 CEST
Yes.  It seem somewhat useful

"Watch your own webcam in a small dockapp window. Now supports external scripts (to stamp and send the jpeg images to webserver etc..)"

But without documentation...
Morgan Leijström 2022-04-22 10:07:54 CEST

Blocks: (none) => 30163

Comment 3 Marja Van Waes 2022-04-22 15:11:36 CEST
(In reply to Lewis Smith from comment #1)

> 
> I agree with the verdict, it is unusable (even if it works if you know how
> to drive it). This can be added to the list of packages to drop; CC'ing
> Marja & Morgan for that (TIA & sorry...)

Well, the package has a maintainer, I think he should decide what to do with it :-)

@ Eatdirt

Please remove it from "bug 30163 [TRACKER] Packages that need to be obsoleted"
if you think there is a good reason to keep it. In that case, it would be nice to have something in the wiki about how to use it :-D

Assignee: bugsquad => eatdirt

Comment 4 Morgan Leijström 2022-04-22 15:14:18 CEST
Opps sorry, I forgot to check for maintainer!  Thank you Marja :)
Comment 5 Chris Denice 2022-04-22 21:52:28 CEST
Hi guys,

I'll be happy to show you a screenshot of myself using wmwebcam, on my desktop, now, mga8, with a recent logitech full HD cam.

How to use it???

How about typing: "w.m.w.e.b.c.a.m" in a terminal?

Oh god!, you did not find a README to do so? Or a man? Hey, let me make a youtube video for mentally disabled persons on how to use wmwebcam...

Now if you tell me that wmwebcam does not work if you don't have a webcam plugged, and it crashes because there is no device /dev/vide0, I have only one thing to say: You got what you deserved :)

Who the f#$@$ tries to use a software named wmwebcam with no webcam plugged?

Closing at invalid. Feel free to reopen with real info.

Cheers,
chris.

PS: and please don't summoned me on "we should not offend bug reporter". YES I DO!

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

Comment 6 Dave Hodgins 2022-04-22 22:20:15 CEST
(In reply to Chris Denice from comment #5)

Please follow the code of conduct.
https://www.mageia.org/en/about/code-of-conduct/

CC: (none) => davidwhodgins

Comment 7 Chris Denice 2022-04-22 22:29:37 CEST
Thanks for the link Dave.

I am entering now a 24 hour moratorium for emotional language having being used, but I'll be ready to fix the bug after the week-end.

I love you all guys, big kisses!
Comment 8 Marja Van Waes 2022-04-22 22:41:11 CEST
Hi Chris,

Thanks for telling why it shouldn't be obsoleted.

The "Can't open device /dev/video0" error was from someone who tried to reproduce the issue, The original reporter of this ticket wrote that, when using wmwebcam, he got:

VIDIOCMCAPTURE: Invalid argument
Error: Can't get image

Then looking for documentation, as he did, makes semse, it might give a clue about what went wrong.

I would appreciate it if you'd tell the reporter what he can do to debug the issue, especially since you're not at all mentally disabled. 
I am nowadays, you were right about that. The others aren't, afaik, but were probably just too tired/busy/ or just too human to function at your expectation level.

Kind regards,

Marja


And thanks for your comment 7 and Dave for comment 6

Blocks: 30163 => (none)
Resolution: INVALID => (none)
Status: RESOLVED => REOPENED

Marja Van Waes 2022-04-22 22:42:36 CEST

Summary: wmebcam is useless => wmwebcam returns "VIDIOCMCAPTURE: Invalid argument" and "Error: Can't get image"

Comment 9 Chris Denice 2022-04-22 23:42:48 CEST
I was not referring to you Marja, but to that bug report that you gently fixed saying that wmwebcam is "useless" and we should remove it.

How about the reporter checks that:

1) /dev/video0 exist, is accessible to the user, for instance the user should belong to the group "video"

2) Which webcam is plugged in, lspci, or lsusb may help. Mine appears in lsusb as:

Bus 002 Device 002: ID 046d:0826 Logitech, Inc. HD Webcam C525
Comment 10 Pierre Fortin 2022-04-23 02:23:34 CEST
Just now saw comment 5...

As the bug reporter, I included information which was OBVIOUSLY TOO COMPLEX for you to grok, so let me repeat it:

>Description of problem:wmwwebcam is a useless application as provided.  
>There is no -h or --help 
>With or without arguments, all it returns is:
>VIDIOCMCAPTURE: Invalid argument
>Error: Can't get image

First, how do you suppose I got that output without typing "w.m.w.e.b.c.a.m"??

Next, let's repeat and address your other comments...

$ wmwebcam
VIDIOCMCAPTURE: Invalid argument
Error: Can't get image

$ wmwebcam -h
VIDIOCMCAPTURE: Invalid argument
Error: Can't get image

$ wmwebcam --help
VIDIOCMCAPTURE: Invalid argument
Error: Can't get image

If you need me to translate; feel free to ask...

$ ll /dev/video0
crw-rw----+ 1 root video 81, 0 Apr 21 12:59 /dev/video0

$ grep video /etc/group
video:x:82:pfortin,pierre

$ lsusb
Bus 001 Device 017: ID 1d6c:1278 YGTek Webcam

which I use several times a week for zoom calls.

You're well on your way to writing at least a minimal README... but based on the above, it would still be useless... 

:)
Comment 11 Pierre Fortin 2022-04-23 02:26:31 CEST
Also, this report was against Cauldron, not mga8...  HTH
Comment 12 Chris Denice 2022-04-23 10:20:17 CEST
This is my last comment on that fake bug:

1) Concerning the description, it is there, just read it:

Description :
Wmwebcam is yet another dockapp for WindowMaker, or any desktop
environment that handles dock applications, that streams your webcam
into a small docked window. Check the perl script
"/usr/bin/wmwebcam.pl" if you want to publish the captured images
with your favorite web server.

2) Your camera YGTek seems to be not supported by wmwebcam, it may simply not be supported by the uvcvideo driver at all. If that is the case, the bug is not against wmwebcam. So use another application if you want to use it or try to determine what is wrong with your YGTeK webcam:

https://forums.linuxmint.com/viewtopic.php?t=339218

As far as I am aware, Mageia is not distributing Zoom, which is closed source software and certainly contains its own drivers for the camera.

Resolution: (none) => INVALID
Status: REOPENED => RESOLVED

Comment 13 Lewis Smith 2022-04-24 12:11:05 CEST
@Chris
First apologies for not checking out with you to start with. That was a mistake.

I was very surprised at your reaction to my comment 1. I made it clear that I fired this up, without webcam, to explore its help or other information. That it could not open the device, I said was "reasonable".

I cited all the information I could find - some of which you repeated above, (1). And which as a  potential user leaves one clueless beyond launching it and hoping things will pan out.

There is no denigration of the application, only the lack of information about using it. If I want somebody to use software I have written, I provide somehow documentation to that effect. This is normal, if sometimes not done. Rare is the application, however good it might be, that is useable with no help information. Saying what something does is not the same as saying how to do it. I happen to think that applications with no user information are not valid - unless they really are totally self-explanatory.

You could have said simply it *is* worth retaining despite its lack of information, because (?) just launching it suffices, you need to know nothing more.

As for Pierre's problem with it, your previous comment (2) and comment 9 would have made a nice initial response.

 http://wxcam.sourceforge.net/
is a parallel case, where the page tells a lot of things that can be done, assuming that they will be evident when running it. Bug 30316.

CC: (none) => lewyssmith


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