Capture Images from Webcam Using Command Line

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
rostamiani
New Cone
New Cone
Posts: 9
Joined: 28 Sep 2009 09:21

Capture Images from Webcam Using Command Line

Postby rostamiani » 28 Sep 2009 09:40

Hi
I want to capture Logitech USB Web-cam through command line.
How can I do that ??

Thanks a lot :D

rostamiani
New Cone
New Cone
Posts: 9
Joined: 28 Sep 2009 09:21

Re: Capture Images from Webcam Using Command Line

Postby rostamiani » 28 Sep 2009 12:52

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

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Capture Images from Webcam Using Command Line

Postby VLC_help » 28 Sep 2009 14:16

The one from GUI you took with Snapshot? If so, does --scene-format=png make any difference?

rostamiani
New Cone
New Cone
Posts: 9
Joined: 28 Sep 2009 09:21

Re: Capture Images from Webcam Using Command Line

Postby rostamiani » 30 Sep 2009 16:33

Thanks a lot
I changed the type to PNG and the issue solved :D

@fish
New Cone
New Cone
Posts: 1
Joined: 12 Oct 2009 18:38

Re: Capture Images from Webcam Using Command Line

Postby @fish » 12 Oct 2009 18:50

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?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Capture Images from Webcam Using Command Line

Postby VLC_help » 13 Oct 2009 17:30

Wrong forum, this is Windows only forum.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 68 guests