Create Videosnapshot Problem

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
skycryer
New Cone
New Cone
Posts: 5
Joined: 26 Aug 2009 12:49

Create Videosnapshot Problem

Postby skycryer » 26 Aug 2009 13:04

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

skycryer
New Cone
New Cone
Posts: 5
Joined: 26 Aug 2009 12:49

Re: Create Videosnapshot Problem

Postby skycryer » 27 Aug 2009 12:14

Is there noone how can help me???

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: Create Videosnapshot Problem

Postby erwan10 » 27 Aug 2009 16:19

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

skycryer
New Cone
New Cone
Posts: 5
Joined: 26 Aug 2009 12:49

Re: Create Videosnapshot Problem

Postby skycryer » 28 Aug 2009 10:09

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

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: Create Videosnapshot Problem

Postby erwan10 » 28 Aug 2009 13:31

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

skycryer
New Cone
New Cone
Posts: 5
Joined: 26 Aug 2009 12:49

Re: Create Videosnapshot Problem

Postby skycryer » 03 Sep 2009 13:46

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 77 guests