Page 1 of 1

capture jpg image for webserver

Posted: 04 Jan 2006 12:43
by kempvet
Is it possible for VLC to capture an image every 60 seconds from a stream and save the image as a jpg the same name every time so that the image overwrites itself. In other words can the VLC do what some webcam programs can do.

It is almost impossible to find a clear explanation of what is a very basic request of the program, not all people have access to broadband so refreshing images are still needed instead of a stream

Posted: 11 Jan 2006 17:28
by tvtalkshowshigh
that sounds like a handy function. and i wouldn't think it would be that difficult to impliment since vlc already has the screenshot function. It may already be possible to bodge something via the command line or the http interface. i'll have a look.

mark.

Posted: 11 Jan 2006 17:58
by xtophe
It is possible.

Look at the image video output module

Posted: 11 Jan 2006 18:06
by tvtalkshowshigh
excellent!

i've been using VLC for ages now and i learn about new features all the time! :D

mark.

Multiple Streams

Posted: 31 Jan 2006 23:21
by StrugglingBob
It is possible.

Look at the image video output module
Hi,
I am encoding from a tuner card into 2 mms streams. I have this working (high and low bandwidth)
I can also capture frames from a tuner card (say, 1 frame per second) - but if I want to do all of this in one command line I am completely losing it. I can't figure out the syntax.

Here is what I am using to get the 2 mms streams:

vlc --no-osd pvr:/dev/video0:norm=ntsc:size=640x480:frequency=18725000:bitrate=3000000:maxbitrate=4000000 --cr-average 1000 --sout '#duplicate{dst="transcode{vcodec=WMV2,vb=384,scale=1,acodec=mp3,ab=32,channels=2}:standard{access=mmsh,mux=asfh,url=:8182}",dst="transcode{vcodec=WMV2,vb=128,scale=.5,acodec=mp3,ab=16,channels=2}:standard{access=mmsh,mux=asfh,url=:8183}"}'


I tried this monster to serve up the images as a temporary solution but it seems to crash out fairly regularly:

vlc --no-osd mmsh://10.1.1.193:8182 --sout-transcode-fps -V image --image-out-ratio 30 '#transcode{vcodec=mp4v,venc=ffmpeg{keyint=28,hurry-up},vb=128,scale=1,acodec=mpga,ab=8,channels=2}:std{access=file,mux=ts,url=/dev/null}'


So how can I combine these into one solid vlc command ? Am I right that I have to use ffmpeg to encode the image stream ? I don't know how much extra overhead I'm creating as well.

Thanks.

Posted: 12 Feb 2006 04:15
by kempvet
xtophe
Cone that earned his stripes



Joined: 24 Nov 2003
Posts: 335
Location: Bristol, England
Posted: Wed Jan 11, 2006 4:58 pm Post subject:

--------------------------------------------------------------------------------

It is possible.

Look at the image video output module
_________________
Xtophe


Yes I have looked and so have many others and that is why we post in the first place. Would it be possible to tell us how this is possible, I can not see easily by looking at the area that you mention where the images are going to be stored etc etc

Posted: 12 Feb 2006 13:30
by tvtalkshowshigh
VLC preferences:
Image

the Recording Ratio is the ratio of images that are recorded. 3 means that one out of every 3 images is recorded. If you had a 12fps stream and wanted a still every 60 seconds this value should be 720.

i'm not sure how you would set it to be the same name every time though... xtophe? i'm also not sure how it's done from the command line.


mark.