Page 1 of 1

Record video with current timestamp?

Posted: 02 Nov 2016 09:43
by ppasler
Hey guys,

I want to record from my webcam with vlc and show / save the current time within the videodata. It is not about the filename (Which would be also helpful: https://forum.videolan.org/viewtopic.ph ... 601773fa93), the time should be shown inside the frames (as subtitle would be cool, so I can turn it on / off). There are some questions about it on google, but without satisfying answers.

I would prefer recording via command line.

Hope anyone can help!

Greetz paul

Re: Record video with current timestamp?

Posted: 12 Nov 2016 14:11
by ppasler
You can apply a marquee filter to stream the current time within the video data

Code: Select all

marq{marquee='%Y-%m-%d_%H:%M:%S',position=6}
This is the full command to stream from your webcam with the current time

Code: Select all

vlc dshow:// :dshow-vdev=%cam1% :dshow-adev=%mic1% --sout "#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,sfilter=marq{marquee='%%Y-%%m-%%d_%%H:%%M:%%S',position=6}}:file{dst=%file1%,no-overwrite}"