Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

shu Chan
shu Chan
2,951 Points

ffmpeg text overlay on live stream rtmp url output

I have ffmpeg take an HLS stream and output into an rtmp url with this command.

ffmpeg -re -i "http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8" -acodec libmp3lame -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 426x240 -bufsize 6000k -vb 400k -maxrate 1500k -deinterlace -vcodec libx264 -preset veryfast -g 30 -r 30 -f flv "rtmp://ingest-us-east.a.switchboard.zone/live/moo-abced-ppoo-noas"

I would like to put text overlay on the stream but I can't figure out how to do it. I need to have the the ability to control when the text comes up on the screen. Your help is much appreciated.