Page 1 of 1

Scene or Snapshot using command line help

Posted: 08 Oct 2009 14:39
by simster
I am attempting to take a series of stills of a building construction every ten minutes (every 18000 frames) over the next year. The media is an MMS stream from a Windows media server. I have successfully captured images using the scene command, but after it reaches frame number 99,000+ it stops saving the files (about 8 hours worth). The naming convention for scene is prefix + frame number, where frame number is limited to 5 digits (xx,xxx). Is there a way to either use incremental, instead of frame number in scene, as featured in the snapshot function or is there a way to set the interval automatically in the snapshot function like used in the scene function?

Thanks for any input,

-Simster

Here's my code for MMS stream capture with scene capture:

Code: Select all

vlc -I dummy mms://192.168.166.6:8080 --video-filter scene --no-audio --scene-path /media/construction --scene-prefix construction --scene-format jpg -scene-ratio 18000 "mms://"

Re: Scene or Snapshot using command line help

Posted: 08 Oct 2009 19:18
by Jean-Baptiste Kempf
Does it stop at 99,000 or 99,999 ?

Re: Scene or Snapshot using command line help

Posted: 08 Oct 2009 19:54
by simster
99,999 or whatever that last increment of 18,000 is...it starts with prefix00001.jpg, then prefix18001.jpg, then prefix36001.jpg, etc...

-Simster

Re: Scene or Snapshot using command line help

Posted: 08 Oct 2009 19:55
by Jean-Baptiste Kempf
ARe you using --scene-ratio or -scene-ratio ?

Re: Scene or Snapshot using command line help

Posted: 08 Oct 2009 19:56
by simster
Yes, see code above in initial post...

Re: Scene or Snapshot using command line help

Posted: 08 Oct 2009 20:00
by simster
Does anyone know of any software for Linux that will automate the Snapshot keystroke (Shift-S)?

Re: Scene or Snapshot using command line help

Posted: 09 Oct 2009 11:50
by xtophe
having vlc running continously seems inefficient.

What about:
while true; do vlc mms://.... :stream-time=120 --video-filter=scene ...... vlc:quit ; mv "last jpeg" construction-`date`.jpg; sleep 600; done

Re: Scene or Snapshot using command line help

Posted: 05 Mar 2018 12:03
by davidjohnhall321
i am using this command line.
vlc -I dummy v4l2:///dev/video0 --video-filter scene --no-audio --scene-path /home/stoppal/test --scene-prefix image_prefix --scene-format png vlc://quit --run-time=1