Can ffmpeg burn in time code?

后端 未结 7 1643
天涯浪人
天涯浪人 2020-12-07 21:16

I have a need to burn in a time code to a video and am wondering if this is something that ffmpeg is capable of?

7条回答
  •  旧巷少年郎
    2020-12-07 21:51

    The simplest solution i found to show the clock when the file has been captured, not its duration and it working /based on this post, thanks!/ is

    D:\Temp\2>ffmpeg.exe -i test.avi -vf "drawtext=fontfile=C\\:/Windows/Fonts/arial.ttf:timecode='00\:20\:10\:00':rate=25:text='TCR\:':fontsize=46:fontcolor=white:x=500:y=50: box=1: boxcolor=0x00000000@1"  -f mp4 textts.mp4
    

    So simple in timecode - put your starting time, then the counting is going fine! The example is for Windows

提交回复
热议问题