frigate: [Camera Support]: 0.12.0 Beta 3: mjpeg cameras with restream not working

Describe the problem you are having

Seems like my mjpeg stream is being passed to go2rtc as an h264 stream (even though input_args: preset-http-mjpeg-generic). Not sure how to override this.

Version

0.12.0-CF2466C

Frigate config file

cameras:
  cam1:
    ffmpeg:
      inputs:
        - path: rtsp://localhost:8554/cam1
          roles:
            - detect
            - record
        - path: http://xxx/?action=stream
          input_args: preset-http-mjpeg-generic
          roles:
            - restream
    restream:
      enabled: true
      video_encoding: h264

Relevant log output

2023-01-12 17:10:52.641836250  21:10:52.641 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:51 > error="exec: exit status 1" url=ffmpeg:http://xxx/?action=stream#video=h264#hardware=vaapi#audio=aac#audio=opus

FFprobe output from your camera

[ { "return_code": 0, "stderr": {}, "stdout": {} }, { "return_code": 0, "stderr": {}, "stdout": { "programs": [], "streams": [ { "avg_frame_rate": "0/0", "codec_long_name": "Motion JPEG", "height": 720, "width": 1280 } ] } } ]

Frigate stats

No response

Operating system

Debian

Install method

Docker Compose

Coral version

USB

Network connection

Wireless

Camera make and model

webcam

Any other information that may be helpful

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 36 (1 by maintainers)

Most upvoted comments

Thanks, yeah I agree preset-disable would make that more clear.

At this point Iā€™d suggest making a new issue on go2rtc including these args, let me know if you have any questions šŸ‘