Skip to contentSkip to conversation

Python script + v4lctl

DISCUSSION Gatis 1 participant 1 message Oct 20, 2008 Media (V4L/DVB)

lore
Share & tools
lore

Gatis

author
#0 lore raw

Hello!
Intro:
I wrote script that in case of some event takes picture using usb webcam [Creative Live! Cam Vista IM (VF0420)] and command line utility v4lctl (from package xawtv).
Problem:
When script is run from /etc/init.d (in runlevel 2) during boot, no pictures are taken. I can't tell error message, because I have not yet managed to get error messages into logfile.
If I execute v4lctl now from commandline (while my script is running in background), picture is taken.
If script is restarted (using same init.d startup script that was used by pc to start my python script) pictures are taken - all works. I set in rc2.d that script starts at the end of boot - "S99script" - so it starts after webcam drivers are loaded.
I set delay of minute at the begining of script to allow pc to finish boot - no results.
In dmesg there are error messages:
"v4lctl: segm: ...... : error 4"
Command executed: v4lctl -c /dev/video0 snap jpeg full test.jpg Using Linux Ubuntu 8.
Drivers for webcam - using EasyCam
[https://help.ubuntu.com/community/EasyCam].
Where can be found v4lctl return codes?
Best regards,
Gatis Liepins
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list