save to jpg

About encoding, codec settings, muxers and filter usage
michel11271

save to jpg

Postby michel11271 » 15 Oct 2005 20:24

Salut


Is it possible to save automatically snapshot every 1 or 2 minutes :?: :?: :?:

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 19 Oct 2005 15:38

You can use the image video output and specify a ratio of <frames per second>*2 .
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

pixie95
New Cone
New Cone
Posts: 2
Joined: 21 Oct 2005 01:38

Postby pixie95 » 21 Oct 2005 01:53

could you post the cmd line you used to get the snapshot every 1 or 2 minutes
Thanks

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 29 Oct 2005 23:56

this should work :

Code: Select all

./vlc -V image --image-out-ratio 60 movie.mpg
(untested)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

bXn
Blank Cone
Blank Cone
Posts: 46
Joined: 08 Jun 2005 09:14

Postby bXn » 07 Nov 2005 18:30

I tried

Code: Select all

C:\Program Files\VideoLAN\VLC>vlc -v --image-out-format jpg --image-out-ratio 10 --image-out-prefix toktok rtsp://xx.xx.xx.xx/public/direct01 vlc -v --image-out-format jpeg --image-out-ratio 10 --image-out-prefix toktok rtsp://xx.xx.xx.xx/public/direct01 vlc -v --image-out-ratio 10 --image-out-prefix toktok rtsp://xx.xx.xx.xx/public/direct01
with no success.

do we need to set up a fake transcoding to generate images ?

bXn
Blank Cone
Blank Cone
Posts: 46
Joined: 08 Jun 2005 09:14

Postby bXn » 07 Nov 2005 18:34

I made a mistake, the following command works (0.8.2) :

Code: Select all

C:\Program Files\VideoLAN\VLC>vlc -V image --image-out-format jpeg --image-out- ratio 10 --image-out-prefix toktok rtsp://xx.xx.xx.xx/public/direct01
png images are created in the current directory

michel11271

Postby michel11271 » 30 Nov 2005 22:00

I have tried your command line but without succes: :cry:

is image the name of the file you are looking ?
where is the name of the file created by the snapshot?
what is rtsp?

PS: for not a lot of money i can say that in french

bXn
Blank Cone
Blank Cone
Posts: 46
Joined: 08 Jun 2005 09:14

Postby bXn » 02 Dec 2005 12:11

I have tried your command line but without succes: :cry:

is image the name of the file you are looking ?
where is the name of the file created by the snapshot?
what is rtsp?

PS: for not a lot of money i can say that in french

Are you running on Linux or windows ?

The image files created are named :
toktok000015.png
toktok000016.png
and so on

the rtsp is the url to access a stream.
what are you trying to play ?

Did you had a look to the documentation ?

spank

Postby spank » 29 Jan 2006 15:14

Hi, I'm also trying to automatically/periodically save images (jpg or png, either will do) from a local video file (avi, mpg, etc). I've played around with the video ouput options, mainly MJPEG, and used the wizard a few times, but to not much luck. I am using Windows and VLC 0.8.2. Any solution would be great, as I would really like to be able to do this. Thanks in advance for any help!

EDIT: After getting some errors with the command line listed in this thread, I found my error, and it works nicely. However, the dimensions are 480x480 which doesn't respect the source file's aspect ratio. What can I add to the command line to make it use the source file aspect ratio? Here's what I'm using:

vlc -V image --image-out-format jpeg --image-out-ratio 200 --image-out-prefix lalala C:\file.mpg


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests