Embedding Logo

Embedding logo on a live stream

FFmpeg also provides complex a/v filters which allow us to manipulate audio and video in a rather complex manner. We can use this to embed a png image as a brand logo on the live stream. Here we re-encode the stream to have the logo in each video frame and then package it along with the audio stream before publishing it to Red5 Pro.

Sample command to add a logo to a live stream to a Red5 Pro live stream and re-transmit it as a new stream


ffmpeg  -i "rtmp:// live=1 timeout=2" -i /home/rajdeeprath/Downloads/red5pro_logo.png -filter_complex "overlay=0:0" -vcodec libx264 -acodec libfdk_aac -ab 128k -f flv "rtmp:// live=1"


ffmpeg  -i "rtmp:// live=1 timeout=2" -i M:\\workspace-ffmpeg\\red5pro_logo.png -filter_complex "overlay=0:0" -vcodec libx264 -acodec aac -strict experimental -ab 128k -f flv "rtmp:// live=1"

Overlaying a logo on a Red5 pro live stream