Page 1 of 1

Trying to take snapshots from a webcam

Posted: 28 Mar 2010 22:15
by CoyoteBait
I'm trying to create a script that will take a snapshot of my webcam every 1 minute so I can upload via FTP, but I'm running into a bit of difficulty.
I'm using this code:

Code: Select all

/Applications/VLC.app/Contents/MacOS/VLC --start-time=1 --run-time=1 --video-filter=scene --scene-path=/Users/name/Movies/Linksys/ http://192.168.1.115/img/video.asf
Which successfully takes a single snapshot and saves it to the correct path, but I haven't been able to successfully quit VLC to terminate the command so I can run it again in 1 minute.
When I try adding vlc://quit to the end of it, it won't save a snapshot and this is what I get back from command line:
[0x2d6b98] access_http access error: cannot connect to 192.168.1.115:80
[0x2d6b98] access_mms access error: cannot connect to 192.168.1.115:80
[0x2d9d98] dummy demux: command `quit'
Any ideas on how to get VLC to terminate?

Thanks!

Re: Trying to take snapshots from a webcam

Posted: 30 Mar 2010 18:49
by CoyoteBait
Also, using the above code doesn't increment the file like the snapshots do… does anybody have any idea how to make the snapshots work correctly?