Taking screenshot every X seconds from 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.
albyr
New Cone
New Cone
Posts: 4
Joined: 24 Oct 2009 00:26

Taking screenshot every X seconds from command line

Postby albyr » 24 Oct 2009 00:49

I'm trying to take a screencap from a video file every X seconds. I've been trying to do this with the command line to no avail.

The command line command:
"vlc file.avi --vout=image --image-out-prefix=shot --image-out-ratio=240"
should give me an image every ten seconds but instead gives me the message:
"The command line options couldn't be loaded, check that they are valid"

In my preferences, under video output modules I have the usual suspects, including coloured ASCII art, but no "image" option, so I'm guessing this is related.

I'd rather find a solution to the problem I've described, so that I can use the command line properly; but if anyone has a different method of screenshotting every X seconds I'll happily take that (maybe something with the --snapshot command?). I really don't want to have to switch to MPlayer, VirtualDub or something else.

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

Re: Taking screenshot every X seconds from command line

Postby VLC_help » 24 Oct 2009 14:43

There aren't any options called image-out-prefix nor image-out-ratio in VLC 1.0.2 because scene filter replaced image.
--scene-prefix=<string> Filename prefix
Prefix of the output images filenames. Output filenames will have the
"prefixNUMBER.format" form if replace is not true.
--scene-ratio=<integer> Recording ratio
Ratio of images to record. 3 means that one image out of three is
recorded.

albyr
New Cone
New Cone
Posts: 4
Joined: 24 Oct 2009 00:26

Re: Taking screenshot every X seconds from command line

Postby albyr » 24 Oct 2009 17:08

Okay, thanks. But even replacing the image-out with scene filter doesn't fix the problem. The video plays (not on screen, but sound is audible) but no images are captured.

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

Re: Taking screenshot every X seconds from command line

Postby VLC_help » 25 Oct 2009 13:55

You replaced --vout=image with --video-filter=scene ?

albyr
New Cone
New Cone
Posts: 4
Joined: 24 Oct 2009 00:26

Re: Taking screenshot every X seconds from command line

Postby albyr » 27 Oct 2009 16:52

Yep. The command I'm using is

"vlc file.avi --video-filter=scene --scene-prefix=cut --scene-ratio=48"

The result is that the video plays as normal. No images are recorded and the video file is unchanged.

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

Re: Taking screenshot every X seconds from command line

Postby VLC_help » 28 Oct 2009 12:41

Does addition of scene-path help?

albyr
New Cone
New Cone
Posts: 4
Joined: 24 Oct 2009 00:26

Re: Taking screenshot every X seconds from command line

Postby albyr » 29 Oct 2009 16:03

Yes! It looks very promising!


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 11 guests