ffmpeg continuously stream refreshing image to rtmp

懵懂的女人 提交于 2019-12-08 09:52:44

问题


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


来源:https://stackoverflow.com/questions/42735121/ffmpeg-continuously-stream-refreshing-image-to-rtmp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!