go2rtc
go2rtc copied to clipboard
How to merge multiple images into one image?
streams:
m25:
- 'rtsp://admin:[email protected]:554/'
m26:
- 'rtsp://admin:[email protected]:554/'
m27:
- 'rtsp://admin:[email protected]:554/'
m28:
- 'rtsp://admin:[email protected]:554/'
mosaic:
- exec:ffmpeg -hide_banner -nostats -i rtsp://127.0.0.1:8554/m25 -rtsp_transport tcp -i rtsp://127.0.0.1:8554/m26 -filter_complex "[0:v]scale=960:540[v0];[1:v]scale=960:540[v1];[v0][v1]hstack=inputs=2" -map "[v]" -map 0:a? -c:v libx264 -preset ultrafast -tune zerolatency -b:v 2M -c:a aac -f rtsp {output}
api:
listen: ":1984"
origin: "*"
username: "123"
password: "123"
This is a question for the ffmpeg command. It's not directly related to go2rtc. When your command works, it will work in go2rtc. I don't have a working example for your task.