Click here to Skip to main content
15,886,018 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.
Posted
Updated 2-Mar-15 18:41pm
v2
Comments
Sergey Alexandrovich Kryukov 3-Mar-15 0:41am    
The name "timestamp" is ambiguous :-). What do you mean by "showing timestamp"? Showing where, how? What feature if the player do you mean?
—SA
AmbiguousName 3-Mar-15 0:57am    
I want to show the current system time on the video. I have a RAW mp4 file. When I convert this RAW mp4 file to mp4 file, I want the system time to be embedded in it (NOTE: if the video is of 3 minutes, then the time will be incremented accordingly).
RedDk 5-Mar-15 12:27pm    
https://trac.ffmpeg.org/wiki/FilteringGuide
Member 13995944 22-Oct-18 14:29pm    
how to add timestamp to my raw video frame(.yuv) ffmpeg API code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900