
我使用 avconv 對 rtmp 流進行編碼。
我在影片上覆蓋了 PNG。
我想,每次更新 png 圖片時,覆蓋層都會更新為。
我嘗試添加:
-f image2 -loop 1 -i /score.png
但我仍然需要重新啟動流來刷新覆蓋圖片
avconv -f video4linux2 -r 25 -i /dev/video0 -f image2 -loop 1 -i /score.png -filter_complex "overlay=20:160" -f flv rtmp://localhost/live/
avconv
ffmpeg
選項與?相同(https://stackoverflow.com/questions/42735121/ffmpeg-continuously-stream-refreshing-image-to-rtmp)
想法?
謝謝
答案1
我安裝了ffmpeg
,image2
與 ffmpeg 配合得很好