[Bug 714439] New: camsource doesn't work anymore.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c0 Summary: camsource doesn't work anymore. Classification: openSUSE Product: openSUSE 12.1 Version: Milestone 3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: matwey.kornilov@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0 As far as I understand Video4Linux1 compatibility was removed from the kernel (commit id 08af245de0cf6ab5f4ed008ee2bb99273774fce0). This means that camsource (which uses v4l 1 api) can't operate with /dev/video? anymore.This is supported by 'ioctl "get video cap" failed: Invalid argument' message when using specific v4l ioctl command.. There is no known patch that fix camsource to use v4l2. Moreover camsource seems be not maintained anymore (last activity on its site was at 2003). However, camsource can still grab images from other sources (i.e. input_xwd) and one can't say that it is fully useless. Unfortunately, the simplest solution is to remove this package from the distribution. But It seems to me that the patch can be easily prepared. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: Camsource 0.7.0 starting up... Loading modules: input_v4l (alias input_v4l) version 0.7.0 OK jpeg_comp (alias jpeg_comp) version 0.7.0 OK socket (alias socket) version 0.7.0 OK wc_serv (alias wc_serv) version 0.7.0 OK wc_serv (alias noresizewc) version 0.7.0 OK http (alias http) version 0.7.0 OK flip (alias flip) version 0.7.0 OK resize (alias resize) version 0.7.0 OK text (alias text) version 0.7.0 OK ioctl "get video cap" failed: Invalid argument Failed to open device for <camdev name="default"> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c zj jia <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |meissner@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c Matwey Kornilov <matwey.kornilov@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Platform|Other |x86 Version|Milestone 3 |Milestone 5 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c Matwey Kornilov <matwey.kornilov@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|Milestone 5 |Final -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c Jiaying ren <jren@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jren@suse.com AssignedTo|bnc-team-screening@forge.pr |meissner@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c1 Warren Jones <wjones@fluke.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wjones@fluke.com --- Comment #1 from Warren Jones <wjones@fluke.com> 2013-01-17 18:27:34 UTC --- Try installing "libv4l", and use this wrapper script for camsource: #! /bin/sh export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so exec /usr/bin/camsource "$@" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c2 Michal Hrusecky <mhrusecky@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mhrusecky@suse.com Resolution| |FIXED --- Comment #2 from Michal Hrusecky <mhrusecky@suse.com> 2013-01-19 14:16:16 UTC --- Wrapper works, fix sent as sr#149224 via OBS -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c3 --- Comment #3 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-19 16:00:08 CET --- This is an autogenerated message for OBS integration: This bug (714439) was mentioned in https://build.opensuse.org/request/show/149225 Factory / camsource -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c4 --- Comment #4 from Warren Jones <wjones@fluke.com> 2013-01-21 20:10:56 UTC --- This fix almost works, except that "camsource -k" no longer kills the running camsource process. It looks for the process to kill by name, but fails to find it, because the name it's looking for (camsource) is hardwired in, but the name of the real executable has been changed to "camsource.bin". A more complete fix would change the hardwired name to "camsource.bin" at main.c line 228. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c5 --- Comment #5 from Matwey Kornilov <matwey.kornilov@gmail.com> 2013-01-22 09:25:01 MSK --- The most complete fix would link libv4l1 at compile-time (with some fixes in input_v4l.c), there is no need in wrapper at all. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c6 --- Comment #6 from Michal Hrusecky <mhrusecky@suse.com> 2013-01-22 08:26:57 UTC --- (In reply to comment #4)
This fix almost works, except that "camsource -k" no longer kills the running camsource process. It looks for the process to kill by name, but fails to find it, because the name it's looking for (camsource) is hardwired in, but the name of the real executable has been changed to "camsource.bin". A more complete fix would change the hardwired name to "camsource.bin" at main.c line 228.
That is why there is camsource-rename.patch in the original submission and with it it worked for me. (In reply to comment #5)
The most complete fix would link libv4l1 at compile-time (with some fixes in input_v4l.c), there is no need in wrapper at all.
Feel free to fix it better and send your fix via OBS ;-) Only reason I touched it was that nobody cared enough to implement even the easy workaround... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c7 --- Comment #7 from Matwey Kornilov <matwey.kornilov@gmail.com> 2013-01-22 15:05:39 MSK ---
Feel free to fix it better and send your fix via OBS ;-) Only reason I touched it was that nobody cared enough to implement even the easy workaround...
Tried again. It is easily misunderstanding, my first attempt had been 3 hours before your and was declined as "superseded". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c8 --- Comment #8 from Marcus Meissner <meissner@suse.com> 2013-01-22 12:14:40 UTC --- feel free to resubmit a fix which links against libv4l1 ... this is preferable to a wrapper solution I think. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c9 --- Comment #9 from Matwey Kornilov <matwey.kornilov@gmail.com> 2013-01-22 15:22:59 MSK --- It is sr#149517 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714439 https://bugzilla.novell.com/show_bug.cgi?id=714439#c10 --- Comment #10 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-22 15:00:07 CET --- This is an autogenerated message for OBS integration: This bug (714439) was mentioned in https://build.opensuse.org/request/show/149546 Factory / camsource -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com