-
Notifications
You must be signed in to change notification settings - Fork 21
clock in rtmp stream
Mark Van den Borre edited this page Feb 3, 2022
·
1 revision
This produces a clock in an rtmp stream. You need a raw background image. See the infra repo for that one and hints on how to produce one.
ffmpeg -re -f image2 -loop 1 -framerate 30 -video_size 1280x720 -s 1280x720 -pix_fmt yuv420p -i background.raw -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=48000 -vf drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeMonoBold.ttf:text='%{localtime} frame %{n}':fontsize=36:fontcolor=Black:x=200:y=200 -c:v libx264 -c:a aac -f flv rtmp://destination