Page 1 of 1

How to add a millisecond timestamp to the text overlay?

Posted: 24 Jun 2009 01:40
by gerlos
Hello everyone,
We are using a webcam on a telescope to get the timing of some astronomical phenomena.

I've seen that I can use something like:

Code: Select all

vlc v4l2:///dev/video0:width=640:height=480:fps=5 --sub-filter 'marq{marquee="%F %T",position=8}'
to add an overlay to each frame with the current date and time.

For our measurements, we need that the time is recorded on each frame, and we need a timestamp more precise than one second. We need tenths of seconds.

I've seen that this thing is possible in Linux with the date command (using the %N specifier I can get nanoseconds), but not with the stfrtime function.

Does anybody know how could we add a sub-second precision timestamp to our movies?

thanks in advance
gerlos