ffmpe transcoding add time watermark

ffmpeg a live stream of time, then you can add time watermark observed delayed recording is also convenient to check the font issue the following commands need to use their own Baidu or download it to the C: \ Windows \ Fonts copy it

ffmpeg -stream_loop -1 -re -i /home/player/src.ts -vf drawtext="expansion=strftime:fontfile=arial.ttf:x=w-tw:fontcolor=red:fontsize=30:text='%Y-%m-%d  %H\\:%M\\: %S" -vcodec h264 -acodec aac -f flv rtmp://127.0.0.1/hls/4

 

Guess you like

Origin www.cnblogs.com/yuandaozhe/p/12076855.html