ffmpeg continuously stream refreshing image to rtm

2020-08-01 06:06发布

问题:

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

回答1:

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


标签: ffmpeg rtmp