How to add time in video using Ffmpeg.
-
Hello there. I have tried a number of options to convert a RAW mp4 file into mp4 file and showing the timestamp in it. These options are given as under
//////////////////////// FIRST METHOD
//
// Option timestamp cannot be applied to input file. You are trying to apply input option to output file or vice versa.cmd>> ffmpeg.exe -timestamp now -copyts -i input_file_name.mp4 -f mp4 -vcodec copy ouput_file_name.mp4
//////////////////////// SECOND METHOD
//
// A number of parameters were tried with the 'drawtext' argument. But in vein.
// font file copied in the directry.
// A number of variations applied to "TEXT" argument of "DRAWTEXT". Such as "timecode='09\:57\:00\:00': r=25", ORRR "text='\%T'"cmd>> ffmpeg.exe -i input_file_name.mp4 -f mp4 -vf "drawtext=fontfile=arial.ttf:text=%{localtime}" -vcodec copy ouput_file_name.mp4
But I am unable to draw timestamp (local time of computer of video seek time) on the video. How could I do that??? Thanks for any pointer.
This world is going to explode due to international politics, SOON.