Skip to content

400 Bad Request on PUT /api/streams because of multi-line string in YAML #1626

@felipecrs

Description

@felipecrs
  1. 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:

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions