question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Camera feed green + several other errors. Please help?

See original GitHub issue

First 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:

  1. 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?

  2. 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.

  3. 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?

  4. The logs always show the following error everytime it starts. ā€œFontconfig error: Cannot load default config fileā€. Is this normal?

  5. 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

image

image

image

image

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:closed
  • Created 3 years ago
  • Comments:59 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
scottgrobinsoncommented, Dec 9, 2020

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.

0reactions
asemevcommented, Dec 22, 2020

It works!!! Youā€™re a genious. It was those extra quotes šŸ˜ƒ Thanks a million Blake!

image

Iā€™m so sorry i wasted so much of your time! I think we can close this threadā€¦

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix Discord Green Screen Camera issue? - Auslogics
Driver errors. A missing, broken, obsolete or incompatible camera driver can cause the green screen to appear in Discord and other applications.
Read more >
How To Fix Discord Green Screen Camera Problem - YouTube
OBS Studio Link:- https://obsproject.com/OBS VirtualCam Link:- https://obsproject.com/forum/resources/obs-virtualcam.539/In This Video WeĀ ...
Read more >
How to fix Discord green screen ā€“ camera not working?
Camera drivers might get corrupt due to one reason or another. Thus, reinstalling them could help you resolve the situation: Right-click onĀ ...
Read more >
Green tint on webcam - HP Support Community - 7692619
If adjusting the Low Light Compensation settings does not fix the green tint of the webcam please contact HP for further assistance.
Read more >
How to Fix Green Screen Problem When Playing Videos
So, first try the quick solutions to fix green screen problem on YouTube, Netflix, Amazon Prime, Disney+, Hulu, Paramount Plus, or other ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found