blakeblackshear / frigate

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

[Camera Support]: #6630

Closed gzcwnk closed 1 year ago

gzcwnk commented 1 year ago

Describe the problem you are having

I have this from the vendor of the camera,

rtsp://IPAddress:554/user=admin&password=&channel=1&stream=0.sdp?

and,

rtsp://IPAddress:554/user=admin&password=&channel=1&stream=1.sdp?

how do I convert this to frigate's format?

Version

no idea

Frigate config file

mqtt:
  #host: mqtt.server.com #Please replace with a valid mqtt broker
  host:  192.168.31.181
cameras:
  back:
    ffmpeg:
      inputs:
        #- path: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2 #replace with your RTSP camera url
        #- path: rtsp://192.168.31.11:8554
        #- path: rtsp://192.168.31.11:554/user=admin&xxxxxx=&channel=1&stream=0.sdp
        - path: rtsp://192.168.31.9:554/user=admin&xxxxxx=&channel=1&stream=1.sdp?
          roles:
            - detect
            - rtmp
    detect:
      width: 1280
      height: 720

Relevant log output

2023-05-27 11:59:46.042790984  [2023-05-27 11:59:46] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
2023-05-27 11:59:46.044041883  [2023-05-27 11:59:46] frigate.video                  ERROR   : back: ffmpeg process is not running. exiting capture thread...
2023-05-27 11:59:56.035307746  [2023-05-27 11:59:56] watchdog.back                  ERROR   : Ffmpeg process crashed unexpectedly for back.
2023-05-27 11:59:56.035317916  [2023-05-27 11:59:56] watchdog.back                  ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-05-27 11:59:56.035322799  [2023-05-27 11:59:56] ffmpeg.back.detect             ERROR   : [rtsp @ 0x55a22c21be00] method DESCRIBE failed: 451 Parameter Not Understood
2023-05-27 11:59:56.035327992  [2023-05-27 11:59:56] ffmpeg.back.detect             ERROR   : rtsp://192.168.31.9:554/user=admin&xxxxx=&channel=1&stream=1.sdp?: Server returned 4XX Client Error, but not one of 40{0,1,3,4}
2023-05-27 11:59:56.065268946  [2023-05-27 11:59:56] frigate.video                  ERROR   : back: Unable to read frames from ffmpeg process.
2023-05-27 11:59:56.066135484  [2023-05-27 11:59:56] frigate.video                  ERROR   : back: ffmpeg process is not running. exiting capture thread...

FFprobe output from your camera

root@docker1:/var/lib/docker/frigate# ffprobe 192.168.31.11
ffprobe version 4.3.6-0+deb11u1 Copyright (c) 2007-2023 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
192.168.31.11: No such file or directory
root@docker1:/var/lib/docker/frigate#

Frigate stats

na

Operating system

Debian

Install method

Docker Compose

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

https://www.aliexpress.com/item/1005003469566441.html

Any other information that may be helpful

No response

NickM-27 commented 1 year ago

The camera is most likely UDP only https://docs.frigate.video/configuration/camera_specific#udp-only-cameras

gzcwnk commented 1 year ago

mqtt:

host: mqtt.server.com #Please replace with a valid mqtt broker

host: 192.168.31.181 so like this? still doesnt work

cameras: back: ffmpeg:

input_args: preset-rtmp-generic

  input_args: preset-rtsp-udp
  inputs:
    #- path: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2 #replace with your RTSP camera url
    #- path: rtsp://192.168.31.11:8554
    #- path: rtsp://192.168.31.11:554/user=admin&xxxxxx=&channel=1&stream=0.sdp
    - path: rtsp://192.168.31.9:554/user=admin&xxxxx=&channel=1&stream=1.sdp?
      roles:
        - detect
        - rtmp
detect:
  width: 1280
  height: 720
gzcwnk commented 1 year ago

Looks like you are correct UDP works fine TY :)

gzcwnk commented 1 year ago

udp needed