go2rtc icon indicating copy to clipboard operation
go2rtc copied to clipboard

How to merge multiple images into one image?

Open bbhxwl opened this issue 1 month ago • 1 comments

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"
Image

bbhxwl avatar Dec 08 '25 07:12 bbhxwl

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.

AlexxIT avatar Dec 08 '25 07:12 AlexxIT