Camera feed green + several other errors. Please help?
See original GitHub issueFirst of all, big thank you for making this! I have been dreaming of such a solution for 2 years now and finally you did it! š I would be eternally grateful if you can help me out. Thank you Blake!
Describe the bug I have experienced several issues:
-
When i use my Samsung Hanwha Techwin camera, the video feed is green. So when i check the URL http://192.168.178.84:5000/Garage, i just see green screen. Ps see attached screenshot below. With my ezviz camera it works very well. So it must be some camera codec issue with the HANWHA camera perhaps?
-
In general, the ffmepg HW acceleration or any of the global parameters always cause errors. so i removed them all. Also the frigate logs showed error with your default config version because perhaps the ffmpeg arguments have double entries (one in the upper part in the ffmpegās own config section and then again in the camera section). Removing all these made the frigate work. I just cannot get the ffmpeg HW acceleration working. Tried it with the Raspi3/4 64bit version.
-
I made frigate detection work with another camera (EZVIZ CTQ3W) but i constantly get over 100% CPU even though iām using the Coral accelerator. Is this normal?
-
The logs always show the following error everytime it starts. āFontconfig error: Cannot load default config fileā. Is this normal?
-
I also continuously get āOn connect calledā but i dont see the docker container running multiple times.
Version of frigate 1.3
Config file Include your full config file wrapped in triple back ticks.
detectors:
coral:
type: edgetpu
device: usb
save_clips:
clips_dir: /media/frigate
mqtt:
host: core-mosquitto.local.hass.io
port: 1883
topic_prefix: frigate
client_id: frigate
user: **XXXXXXX**
password: **XXXXXXXX**
ffmpeg: {}
cameras:
Garage:
ffmpeg:
input: 'rtsp://192.168.178.234/profile1/media.smp'
height: 1080
width: 1920
fps: 5
best_image_timeout: 60
mqtt:
crop_to_region: true
snapshot_height: 300
save_clips:
enabled: false
pre_capture: 30
objects:
- person
snapshots:
show_timestamp: true
draw_zones: false
draw_bounding_boxes: true
objects:
track:
- person
- car
filters:
person:
min_area: 5000
max_area: 100000
min_score: 0.5
threshold: 0.85
Logs Fontconfig error: Cannot load default config file Starting detection process: 16 Attempting to load TPU as usb Camera capture process started for Garage: 17 Camera process started for Garage: 19 Creating ffmpeg processā¦ ffmpeg -hide_banner -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://192.168.178.234/profile1/media.smp -r 5 -f rawvideo -pix_fmt yuv420p pipe:
- Serving Flask app ādetect_objectsā (lazy loading)
- Environment: development
- Debug mode: off On connect called TPU found No frames received from Garage in 5 seconds. Exiting ffmpegā¦ Waiting for ffmpeg to exit gracefullyā¦ Garage: ffmpeg sent a broken frame. something is wrong. Garage: ffmpeg sent a broken frame. something is wrong. Garage: ffmpeg process is not running. exiting capture threadā¦ Creating ffmpeg processā¦ ffmpeg -hide_banner -loglevel panic -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://192.168.178.234/profile1/media.smp -r 5 -f rawvideo -pix_fmt yuv420p pipe:```
FFprobe from your camera This camera has 3 profiles. Did ffprobe for all 3 profiles below.
ubuntu@ubuntu:~$ ffprobe rtsp://192.168.178.234/profile1/media.smp ffprobe version 4.2.4-1ubuntu0.1 Copyright Ā© 2007-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, rtsp, from ārtsp://192.168.178.234/profile1/media.smpā: Metadata: title : Media Presentation comment : samsung Duration: N/A, start: 0.052144, bitrate: N/A Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 640x360 [SAR 1:1 DAR 16:9], 5 tbr, 90k tbn, 90k tbc Stream #0:1: Data: none Unsupported codec with id 0 for input stream 1
ubuntu@ubuntu:~$ ffprobe rtsp://192.168.178.234/profile2/media.smp ffprobe version 4.2.4-1ubuntu0.1 Copyright Ā© 2007-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, rtsp, from ārtsp://192.168.178.234/profile2/media.smpā: Metadata: title : Media Presentation comment : samsung Duration: N/A, start: 0.013000, bitrate: N/A Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1280x720, 20 tbr, 90k tbn, 180k tbc Stream #0:1: Data: none Unsupported codec with id 0 for input stream 1
ubuntu@ubuntu:~$ ffprobe rtsp://192.168.178.234/profile3/media.smp ffprobe version 4.2.4-1ubuntu0.1 Copyright Ā© 2007-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, rtsp, from ārtsp://192.168.178.234/profile3/media.smpā: Metadata: title : Media Presentation comment : samsung Duration: N/A, start: 0.025000, bitrate: N/A Stream #0:0: Video: hevc (Main), yuv420p(tv), 2592x1520, 20 fps, 20 tbr, 90k tbn, 90k tbc Stream #0:1: Data: none Unsupported codec with id 0 for input stream 1
Screenshots
Computer Hardware
- RaspberryPi 4 2GB
- OS: Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-1023-raspi aarch64)
- Coral Version: USB
- Network Setup: Wired
Camera Info:
- Manufacturer: Samsung Hanwha Techwin
- Model: QNO-7010R
- Resolution: tried several video profiles (1080p, 720p, 640x360 etc)
- FPS: tried several (1 to 20). currently at 5 with the profile1 MJPEG video feed.
Thank you very much in advance! š EMRE
Issue Analytics
- State:
- Created 3 years ago
- Comments:59 (20 by maintainers)
Top GitHub Comments
Do you know how to build your own docker image? If so - It sounds like it might be similar to this: https://github.com/blakeblackshear/frigate/issues/312ā¦ Maybeā¦
I was having the same problem on certain types of RTSP feeds until I increased the timeout. If youāre not too sure on building docker images, it my be worth trying the latest beta (0.8.0) which I believe has support for this already in the configuration.
If building your own image - Change frigate/video.py line 196 to increase the 5 seconds to something like 15/20.
It works!!! Youāre a genious. It was those extra quotes š Thanks a million Blake!
Iām so sorry i wasted so much of your time! I think we can close this threadā¦