blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
19.2k stars 1.76k forks source link

[Config Support]: "cam/realmonitor?channel=1&subtype=0" receiving "Server returned 404 Not Found" #8968

Closed Hantritor closed 11 months ago

Hantritor commented 11 months ago

Describe the problem you are having

I'm successfully connecting to second and third streams from my Dahua IPC-HDW4631C-A via VLC player and Home assistant, but frigate returns "Server returned 404 Not Found". Simple "rtsp://:@192.168.1.105:554" works perfect Sorry, I'm just a beginner and probably missing something. Googled it and didn't find any hint what could it be.

Version

truenas charts 0.12.1-367d724

Frigate config file

mqtt:
  enabled: false
cameras:
  test1:
    ffmpeg:
      inputs:
        - path: rtsp://***:***@192.168.1.105:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - detect
  test2:
    ffmpeg:
      inputs:
        - path: rtsp://***:***@192.168.1.105:554
          roles:
            - rtmp

Relevant log output

2023-12-15 09:20:59.041755487  [INFO] Starting Frigate...
2023-12-15 09:20:59.755681603  [2023-12-15 11:20:59] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-12-15 09:20:59.762966866  [2023-12-15 11:20:59] peewee_migrate                 INFO    : Starting migrations
2023-12-15 09:20:59.765393793  [2023-12-15 11:20:59] peewee_migrate                 INFO    : There is nothing to migrate
2023-12-15 09:20:59.770699017  [2023-12-15 11:20:59] detector.cpu                   INFO    : Starting detection process: 425
2023-12-15 09:20:59.770778450  [2023-12-15 11:20:59] frigate.app                    INFO    : Output process started: 426
2023-12-15 09:20:59.772357983  [2023-12-15 11:20:59] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-12-15 09:20:59.772697752  [2023-12-15 11:20:59] frigate.app                    INFO    : Camera processor started for test1: 430
2023-12-15 09:20:59.774381340  [2023-12-15 11:20:59] frigate.app                    INFO    : Camera processor started for test2: 432
2023-12-15 09:20:59.776114654  [2023-12-15 11:20:59] frigate.app                    INFO    : Capture process started for test1: 433
2023-12-15 09:20:59.778193735  [2023-12-15 11:20:59] frigate.app                    INFO    : Capture process started for test2: 437
2023-12-15 09:20:59.870426914  [2023-12-15 11:20:59] frigate.video                  ERROR   : test1: Unable to read frames from ffmpeg process.
2023-12-15 09:20:59.870503692  [2023-12-15 11:20:59] frigate.video                  ERROR   : test1: ffmpeg process is not running. exiting capture thread...
2023-12-15 09:21:19.792830390  [2023-12-15 11:21:19] watchdog.test1                 ERROR   : Ffmpeg process crashed unexpectedly for test1.
2023-12-15 09:21:19.792847036  [2023-12-15 11:21:19] watchdog.test1                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-15 09:21:19.792893173  [2023-12-15 11:21:19] ffmpeg.test1.detect            ERROR   : [rtsp @ 0x55f2499dae00] method DESCRIBE failed: 404 Not Found
2023-12-15 09:21:19.792957108  [2023-12-15 11:21:19] ffmpeg.test1.detect            ERROR   : rtsp://*:*@192.168.1.105:554/cam/realmonitor?channel=1&subtype=0# <-----   The stream you want to use for detection: Server returned 404 Not Found
2023-12-15 09:21:19.856862807  [2023-12-15 11:21:19] frigate.video                  ERROR   : test1: Unable to read frames from ffmpeg process.
2023-12-15 09:21:19.856886192  [2023-12-15 11:21:19] frigate.video                  ERROR   : test1: ffmpeg process is not running. exiting capture thread...
2023-12-15 09:21:29.796335693  [2023-12-15 11:21:29] watchdog.test1                 ERROR   : Ffmpeg process crashed unexpectedly for test1.
2023-12-15 09:21:29.796384633  [2023-12-15 11:21:29] watchdog.test1                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-15 09:21:29.796438178  [2023-12-15 11:21:29] ffmpeg.test1.detect            ERROR   : [rtsp @ 0x563ad47d0e00] method DESCRIBE failed: 404 Not Found
2023-12-15 09:21:29.796472600  [2023-12-15 11:21:29] ffmpeg.test1.detect            ERROR   : rtsp://*:*@192.168.1.105:554/cam/realmonitor?channel=1&subtype=0# <-----   The stream you want to use for detection: Server returned 404 Not Found
2023-12-15 09:21:29.856568222  [2023-12-15 11:21:29] frigate.video                  ERROR   : test1: Unable to read frames from ffmpeg process.
2023-12-15 09:21:29.856589556  [2023-12-15 11:21:29] frigate.video                  ERROR   : test1: ffmpeg process is not running. exiting capture thread...
2023-12-15 09:21:39.798314852  [2023-12-15 11:21:39] watchdog.test1                 ERROR   : Ffmpeg process crashed unexpectedly for test1.
2023-12-15 09:21:39.798355071  [2023-12-15 11:21:39] watchdog.test1                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-15 09:21:39.798434167  [2023-12-15 11:21:39] ffmpeg.test1.detect            ERROR   : [rtsp @ 0x561e47b66e00] method DESCRIBE failed: 404 Not Found
2023-12-15 09:21:39.798436200  [2023-12-15 11:21:39] ffmpeg.test1.detect            ERROR   : rtsp://*:*@192.168.1.105:554/cam/realmonitor?channel=1&subtype=0# <-----   The stream you want to use for detection: Server returned 404 Not Found
2023-12-15 09:21:39.855173455  [2023-12-15 11:21:39] frigate.video                  ERROR   : test1: Unable to read frames from ffmpeg process.
2023-12-15 09:21:39.855197160  [2023-12-15 11:21:39] frigate.video                  ERROR   : test1: ffmpeg process is not running. exiting capture thread...
2023-12-15 09:21:49.803159152  [2023-12-15 11:21:49] watchdog.test1                 ERROR   : Ffmpeg process crashed unexpectedly for test1.
2023-12-15 09:21:49.803235550  [2023-12-15 11:21:49] watchdog.test1                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-15 09:21:49.803255444  [2023-12-15 11:21:49] ffmpeg.test1.detect            ERROR   : [rtsp @ 0x55d09ffaae00] method DESCRIBE failed: 404 Not Found
2023-12-15 09:21:49.803280667  [2023-12-15 11:21:49] ffmpeg.test1.detect            ERROR   : rtsp://*:*@192.168.1.105:554/cam/realmonitor?channel=1&subtype=0# <-----   The stream you want to use for detection: Server returned 404 Not Found
2023-12-15 09:21:49.858349390  [2023-12-15 11:21:49] frigate.video                  ERROR   : test1: Unable to read frames from ffmpeg process.
2023-12-15 09:21:49.858436629  [2023-12-15 11:21:49] frigate.video                  ERROR   : test1: ffmpeg process is not running. exiting capture thread...
2023-12-15 09:21:59.805060463  [2023-12-15 11:21:59] watchdog.test1                 ERROR   : Ffmpeg process crashed unexpectedly for test1.
2023-12-15 09:21:59.805133413  [2023-12-15 11:21:59] watchdog.test1                 ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-12-15 09:21:59.805135206  [2023-12-15 11:21:59] ffmpeg.test1.detect            ERROR   : [rtsp @ 0x558cee90de00] method DESCRIBE failed: 404 Not Found
2023-12-15 09:21:59.805156979  [2023-12-15 11:21:59] ffmpeg.test1.detect            ERROR   : rtsp://*:*@192.168.1.105:554/cam/realmonitor?channel=1&subtype=0# <-----   The stream you want to use for detection: Server returned 404 Not Found
2023-12-15 09:21:59.880710356  [2023-12-15 11:21:59] frigate.video                  ERROR   : test1: Unable to read frames from ffmpeg process.
2023-12-15 09:21:59.880719492  [2023-12-15 11:21:59] frigate.video                  ERROR   : test1: ffmpeg process is not running. exiting capture thread...

Frigate stats

No response

Operating system

Other Linux

Install method

Docker CLI

Coral version

CPU (no coral)

Any other information that may be helpful

No response

NickM-27 commented 11 months ago

the problem is that you don't have a space before the # which means the # <----- The stream you want to use for detection: Server returned 404 Not Found is being included in the URL

Hantritor commented 11 months ago

the problem is that you don't have a space before the # which means the # <----- The stream you want to use for detection: Server returned 404 Not Found is being included in the URL

OMG! Thank you! that was exactly was my case

NickM-27 commented 11 months ago

feel free to create a new issue if something else comes up