Scene or Snapshot using command line help

*nix specific usage questions
simster
New Cone
New Cone
Posts: 4
Joined: 08 Oct 2009 14:09

Scene or Snapshot using command line help

Postby simster » 08 Oct 2009 14:39

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://"

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Scene or Snapshot using command line help

Postby Jean-Baptiste Kempf » 08 Oct 2009 19:18

Does it stop at 99,000 or 99,999 ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

simster
New Cone
New Cone
Posts: 4
Joined: 08 Oct 2009 14:09

Re: Scene or Snapshot using command line help

Postby simster » 08 Oct 2009 19:54

99,999 or whatever that last increment of 18,000 is...it starts with prefix00001.jpg, then prefix18001.jpg, then prefix36001.jpg, etc...

-Simster
Last edited by simster on 08 Oct 2009 19:56, edited 1 time in total.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Scene or Snapshot using command line help

Postby Jean-Baptiste Kempf » 08 Oct 2009 19:55

ARe you using --scene-ratio or -scene-ratio ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

simster
New Cone
New Cone
Posts: 4
Joined: 08 Oct 2009 14:09

Re: Scene or Snapshot using command line help

Postby simster » 08 Oct 2009 19:56

Yes, see code above in initial post...

simster
New Cone
New Cone
Posts: 4
Joined: 08 Oct 2009 14:09

Re: Scene or Snapshot using command line help

Postby simster » 08 Oct 2009 20:00

Does anyone know of any software for Linux that will automate the Snapshot keystroke (Shift-S)?

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: Scene or Snapshot using command line help

Postby xtophe » 09 Oct 2009 11:50

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
Xtophe

davidjohnhall321

Re: Scene or Snapshot using command line help

Postby davidjohnhall321 » 05 Mar 2018 12:03

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


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 11 guests