Page 1 of 1

Capture Images from Webcam Using Command Line

Posted: 28 Sep 2009 09:40
by rostamiani
Hi
I want to capture Logitech USB Web-cam through command line.
How can I do that ??

Thanks a lot :D

Re: Capture Images from Webcam Using Command Line

Posted: 28 Sep 2009 12:52
by rostamiani
I could take a snapshot using this command :

Code: Select all

vlc --dshow-vdev= --dshow-size=1600x1200 -V dummy --intf=dummy --dummy-quiet --video-filter=scene --no-audio --scene-path=D:\ --scene-format=jpeg --scene-prefix=snap --scene-replace --run-time=5 --scene-ratio=24 "dshow://" vlc://quit
But this code cannot produce a 1600*1200 snapshot !

It seams that the output image is in a lower resolution and upscales to 1600*1200

I attached a snapshot created by that command and another one built by Video>Snapshot from VLC GUI

Is this a bug or ...
(I'm using VLC 1.0.1)

Using code :
http://www.imgplace.com/viewimg195/7892/27snap.jpg

Using GUI :
http://www.imgplace.com/viewimg195/4613 ... 14h07m.jpg

Re: Capture Images from Webcam Using Command Line

Posted: 28 Sep 2009 14:16
by VLC_help
The one from GUI you took with Snapshot? If so, does --scene-format=png make any difference?

Re: Capture Images from Webcam Using Command Line

Posted: 30 Sep 2009 16:33
by rostamiani
Thanks a lot
I changed the type to PNG and the issue solved :D

Re: Capture Images from Webcam Using Command Line

Posted: 12 Oct 2009 18:50
by @fish
I tried following command line on VLC 1.0.2, Debian sid,

vlc -v v4l2:// :v4l2-vdev="/dev/video0" --video-filter=scene --no-audio --scene-path= --scene-format=png --scene-prefix=snap --scene-replace --run-time=5 --scene-ratio=24 vlc://quit

I can see a video for lasting 5 seconds from my camera but there is no png file captured. Is this a bug in VLC 1.0.2?

Re: Capture Images from Webcam Using Command Line

Posted: 13 Oct 2009 17:30
by VLC_help
Wrong forum, this is Windows only forum.