Page 1 of 1

Create Videosnapshot Problem

Posted: 26 Aug 2009 13:04
by skycryer
Hy, i tried to generate a thumbnail but have a problem. i can open vlc with command line thats because i know all is correct installed. If i use my code to generate thumb it opens vlc and close it but does not create the thumb. Here is my code

Code: Select all

c:/programme/videolan/vlc/vlc c:/BlueThunder-Sample.avi --snapshot-path={c:/} --snapshot-prefix={test} --snapshot-format={jpg} --snapshot-preview --snapshot-sequential --key-snapshot={50} vlc://quit
I use it under Windows Xp, an the file is on root of c: you can see

I want to take only one screenshot of the videofile and save it to c:/ - thats because i set key-snapshot to 50

I think key-snapshot i the number of seconden vlc should wait to take the snapshot right?

i do not get any error or something i can work with hope you can help. Thx

Re: Create Videosnapshot Problem

Posted: 27 Aug 2009 12:14
by skycryer
Is there noone how can help me???

Re: Create Videosnapshot Problem

Posted: 27 Aug 2009 16:19
by erwan10
key-snapshot refers to the hotkey for taking snapshot (default is Shift-S) ! Not really useful in your case

If you want to take a series of snapshots, you can use the scene video filter (see vlc -H for options). You can also use --start-time to target the right part of your video.

Erwan10

Re: Create Videosnapshot Problem

Posted: 28 Aug 2009 10:09
by skycryer
I can not create one screenshot. It dows nothing, it opens vlc and play the video but made no snapshot.

THe only how to an command line code i found seems to be outdate. Tried this one

Code: Select all

vlc -V image --start-time 0 --stop-time 1 --image-out-format jpg --image-out-ratio 24 --image-out-prefix snap test.mpg vlc:quit
but vlc says code not corrrect.

with my code i says nothing but do not make a snapshot.

Can someone help me and give me a code that make one single snapshot after 20 seconds and save it to c: with prefix thumb

The code i tried and were i do not get errors is in my first post.

Thanks for help

Re: Create Videosnapshot Problem

Posted: 28 Aug 2009 13:31
by erwan10
The following code has been tested successfully on WinNT with latest vlc 1.0.2-git. You get a series of snapshot in png format under C:\

Code: Select all

vlc --start-time 20 --run-time 10 --video-filter scene --scene-path C:\\ E:\\MyVideo\\Movie\\movie.vob
Erwan10

Re: Create Videosnapshot Problem

Posted: 03 Sep 2009 13:46
by skycryer
thanks it works, but my next problem is i want to use it with php. i know that i can call cli tools with exec like mediainfo, but how dows it work with vlc. ich have here a winxp computer with xampp and vlc installed. If i use the code direct over cmd i get a screenshot on c:/ but if i run i over exec nothing happens, is it not possible?

Please help me again, thx