How to Add Time stamp when using ffmpeg Video Recorder? [duplicate]

Solution 1:

You could try Kino. In this link they mention your same problem.
TL;DR: Go to view -> FX -> Filter -> Titler. Then you could use:

#timecode#

#dv.timecode#

#dv.datetime#

Solution 2:

First Install ffmpeg :

sudo apt-get install ffmpeg

Second To activate Time Stamp use this command which will start recording your web-cam and add to it time-stamp , and it will save your recording as .mp4 file in the directory you are running your command .

ffmpeg -f video4linux2 -i /dev/video0 -s 640x480 -r 30 -vf \
"drawtext=fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf: \
text='\%T': [email protected]: x=7: y=460" -vcodec libx264 -vb 2000k \
-preset ultrafast -f mp4 output.mp4

enter image description here

Sorry i put my Finger on my cam :D

Enjoy your Time !

Reference : Add Time Stamp in ffmpeg