- Create a go2rtc config like this one:
streams:
birdseye: exec:/usr/lib/ffmpeg/5.0/bin/ffmpeg -hide_banner -hwaccel vaapi -hwaccel_output_format
vaapi -hwaccel_device /dev/dri/renderD128 -f rawvideo -pix_fmt yuv420p -video_size
1280x720 -r 10 -i /tmp/cache/birdseye -c:v h264_vaapi -g 50 -bf 0 -profile:v high
-level:v 4.1 -sei:v 0 -an -vf format=vaapi|nv12,hwupload -rtsp_transport tcp -f
rtsp {output}
Note: this is valid YAML.
Now, try to:
$ curl -fsSL -X PUT 'http://192.168.1.10:1984/api/streams?name=test&src=rtsp://192.168.1.10:8554/test'
curl: (22) The requested URL returned error: 400
When doing from UI:
