Page 1 of 1
Timestamp in filename of autom. caps
Posted: 13 Mar 2011 00:48
by Barbara
I'm using vlc to automatically take screencaps every x frames.
This is the basic code but I want to change the filename so that it has a timestamp. i.e. IMG-hour.minute.second.png
I read about
format strings so I tried:
Code: Select all
vlc --video-filter="scene" --scene-prefix="IMG-$T" -V dummy
but it doesn't work. Can anyone help?
Re: Timestamp in filename of autom. caps
Posted: 13 Mar 2011 17:33
by Jean-Baptiste Kempf
use -vvv to have more info
Re: Timestamp in filename of autom. caps
Posted: 13 Mar 2011 20:07
by Barbara
Like this?
Code: Select all
vlc --video-filter="scene" --scene-prefix="IMG-$T" -vvv dummy
It gives me this error.
Re: Timestamp in filename of autom. caps
Posted: 14 Mar 2011 07:17
by Jean-Baptiste Kempf
-vvv -V dummy
Re: Timestamp in filename of autom. caps
Posted: 14 Mar 2011 11:30
by Barbara
Thanks! Uhm ok, it's basically the same name as before. And I'm beginning to suspect it's not the right command because the files names are scene$T00001.png, scene$T00013.png, etc instead of IMG-xxxxxx.png
This is what I have for the scene filter. It's as if the two commands get mixed up, the 'scene' part of the filename comes from the GUI while the '$T' part is from the command line.
Re: Timestamp in filename of autom. caps
Posted: 14 Mar 2011 12:36
by Jean-Baptiste Kempf
Maybe it is just a bug in the scene filter. File a report on trac.videolan.org
Re: Timestamp in filename of autom. caps
Posted: 17 Mar 2011 01:11
by neot
I need to do the same thing so could you give me a link to the bug report. I am going to write an LUA extension so that VLC can convert Video to CDG format.
Re: Timestamp in filename of autom. caps
Posted: 17 Mar 2011 09:13
by Jean-Baptiste Kempf
I need to do the same thing so could you give me a link to the bug report. I am going to write an LUA extension so that VLC can convert Video to CDG format.
This is a totally different topic.