frigate icon indicating copy to clipboard operation
frigate copied to clipboard

[Support]: 0.12.0 Beta 3 - ffmpeg rtsp server returned 404 not found

Open LaurenceGough opened this issue 2 years ago • 4 comments

Describe the problem you are having

Hello,

I've noticed my recordings are not working on either camera since upgrading to 0.12.0 Beta 3 from 0.12.0 Beta 2. I am getting a 404 could not be found error for both my cameras.

Example: ffmpeg.Cam1.record ERROR : rtsp://localhost:8554/Cam1: Server returned 404 Not Found

Just for fun I tried specifying the IP specifically and it fails with a different error.

rtsp://192.168.8.80:8554/Cam1: Connection refused

The live and debug views all work fine, objects are being detected thumbnails are being created but viewing them events or any recordings shows nothing there.

Perhaps it's a portainer issue but recordings were working fine in the previous beta.

I've tried rebooting the container a couple of times.

Any idea to try? I've tried turning off hwaccel as that was the only difference I've made but the same issue exists.

I've copied the config default example as I'm on my phone currently and it won't let me copy mine, but mine is the exact same other than the paths, and username / password (untouched from previous beta).

setup: Raspberry Pi 4 running portainer docker manager.

Thank you

Version

0.12.0 Beta 3

Frigate config file

cameras:
  Cam1:
    ffmpeg:
      inputs:
        - path: rtsp://localhost:8554/Cam1 # <--- the name here must match the name of the camera
          roles:
            - record
        - path: rtsp://192.168.1.5:554/stream # <--- camera high res stream
          roles:
            - restream
        - path: rtsp://192.168.1.5:554/substream # <--- camera sub stream
          roles:
            - detect

Relevant log output

ffmpeg.Cam1.record ERROR   : rtsp://localhost:8554/Cam1: Server returned 404 Not Found

FFprobe output from your camera

I don't have one currently

Frigate stats

No response

Operating system

Other Linux

Install method

Docker Compose

Coral version

USB

Network connection

Wired

Camera make and model

Hikvision DS-2CD2142FWD

Any other information that may be helpful

No response

LaurenceGough avatar Jan 12 '23 14:01 LaurenceGough

What do you see if you go to frigate_ip:5000/live/webrtc (or frigate_ip:1984 if you have mapped that port)

NickM-27 avatar Jan 12 '23 15:01 NickM-27

What do you see if you go to frigate_ip:5000/live/webrtc (or frigate_ip:1984 if you have mapped that port)

Ooooh, I do love a good secret menu ;).

With all of the tickboxes selected I see my two cameras listed. Both have a 0 for the online column which doesn't look good. When I try to load either stream it tries to load a video player then it fails after a few seconds with the following error:

Webrtc/offer: source 0 error: exec: exit status 1

But I guess that's because my phone is outside of the frigate container.

LaurenceGough avatar Jan 12 '23 15:01 LaurenceGough

Can you send a screenshot of that screen? also you should add go2rtc logs to this issue

NickM-27 avatar Jan 12 '23 15:01 NickM-27

Also which live view are you using

NickM-27 avatar Jan 12 '23 16:01 NickM-27

Also which live view are you using

Ah you have spotted an issue, the MSE streams don't work, I have been defaulting to the JPEG one as it's more responsive, but lower quality.

I've just added the go2rtc logs to my original issue case.

Cheers

LaurenceGough avatar Jan 12 '23 19:01 LaurenceGough

Looks like it is having trouble connecting to that stream. Seems the url might be incorrect?

Otherwise, I'd recommend trying to add

restream:
  force_audio: false

to your config and paste the new logs if there are errors

NickM-27 avatar Jan 12 '23 20:01 NickM-27

Looks like it is having trouble connecting to that stream. Seems the url might be incorrect?

Otherwise, I'd recommend trying to add

restream:
  force_audio: false

to your config and paste the new logs if there are errors

That is so funny, I was just looking into them extra audio arguments after searching through various other people's issues on here! Mainly where they were using the wrong settings for ffprobe. I was trying to find a way to disable them but your post just now saved me a lot of bother!

After I removed the other things I've been messing around with trying to fix this I now have a very clear log and all recording working. Thanks so much!

For reference my cameras don't have audio nor does anywhere in my config mention audio before. Weird.

LaurenceGough avatar Jan 12 '23 21:01 LaurenceGough