Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg continuously stream refreshing image to rtmp

Tags:

ffmpeg

rtmp

Is there a way to stream one image and refresh it all the time or at an interval.

This streams image continuously, but never refreshes its source.

ffmpeg -loop 1 -i http://test.dev/overlay.jpg -f flv rtmp://192.168.99.100:1935/live/mystream2

The overlay does the same, never refreshes logo...

ffmpeg -i rtmp://192.168.99.100:1935/live/mystream -vf "movie=overlay.jpg[logo]; [0][logo]overlay=0:70" -c:v flv -f flv rtmp://192.168.99.100:1935/live/mystream2

Thank you

like image 870
John Avatar asked Sep 12 '25 07:09

John


1 Answers

Try with adding -f image2. Works with PNGs.

ffmpeg -f image2 -loop 1 -i http://test.dev/overlay.jpg -f flv rtmp://192.168.99.100:1935/live/mystream2
like image 120
Gyan Avatar answered Sep 15 '25 19:09

Gyan