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 Support]: Not able to see video stream

See original GitHub issue

Describe the problem you are having

Hello Community, I’m having trouble to see my Webcam stream in Home Assistant (https://www.amazon.it/gp/product/B0766175L7/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1).

I’m able to see the video stream in VLC using the same RTSP path that I’m using in the frigate.yml configuration file.

I’ve a Rpi3. I used the app Yoosee to add the Webcam to my wifi network. In the Setting section of the app I enabled the NVR connection in order to let the Webcam be accessible by other softwares and of course I set a password that’s the same I use in the RTSP link.

Version

0.11.1

Frigate config file

mqtt:
  host: 192.168.x.xx
  user: myuser
  password: mypwd
  
detectors:
  cpu1:
    type: cpu
    num_threads: 3
  cpu2:
    type: cpu
    num_threads: 3

cameras:
  cucina: # <------ Name the camera
    ffmpeg:
      inputs:
         - path: rtsp://admin:mypwd@192.168.x.xx:554/onvif1
           roles:
            - detect
            - rtmp
    rtmp:
      enabled: False # <-- RTMP should be disabled if your stream is not H264
    detect:
      width: 1280 # <---- update for your camera's resolution
      height: 720 # <---- update for your camera's resolution

Relevant log output

[2022-11-21 13:53:51] frigate.app                    INFO    : Output process started: 215
[2022-11-21 13:53:51] frigate.app                    INFO    : Camera processor started for cucina: 217
[2022-11-21 13:53:51] frigate.app                    INFO    : Capture process started for cucina: 218
[2022-11-21 13:53:52] ws4py                          INFO    : Using epoll
[2022-11-21 13:53:54] frigate.video                  ERROR   : cucina: Unable to read frames from ffmpeg process.
[2022-11-21 13:53:54] frigate.video                  ERROR   : cucina: ffmpeg process is not running. exiting capture thread...
[2022-11-21 13:54:11] watchdog.cucina                ERROR   : Ffmpeg process crashed unexpectedly for cucina.
[2022-11-21 13:54:11] watchdog.cucina                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-11-21 13:54:11] ffmpeg.cucina.detect           ERROR   : [rtsp @ 0x4e8e70] Unable to open RTSP for listening
[2022-11-21 13:54:11] ffmpeg.cucina.detect           ERROR   : rtsp://admin:mypwd@192.168.x.xx:554/onvif1: Cannot assign requested address
[2022-11-21 13:54:12] frigate.video                  ERROR   : cucina: Unable to read frames from ffmpeg process.
[2022-11-21 13:54:12] frigate.video                  ERROR   : cucina: ffmpeg process is not running. exiting capture thread...
[2022-11-21 13:54:21] watchdog.cucina                ERROR   : Ffmpeg process crashed unexpectedly for cucina.
[2022-11-21 13:54:21] watchdog.cucina                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-11-21 13:54:21] ffmpeg.cucina.detect           ERROR   : [rtsp @ 0x964e70] Unable to open RTSP for listening
[2022-11-21 13:54:21] ffmpeg.cucina.detect           ERROR   : rtsp://admin:mypwd@192.168.x.xx:554/onvif1: Cannot assign requested address
[2022-11-21 13:54:21] frigate.video                  ERROR   : cucina: Unable to read frames from ffmpeg process.
[2022-11-21 13:54:21] frigate.video                  ERROR   : cucina: ffmpeg process is not running. exiting capture thread...
[2022-11-21 13:54:31] watchdog.cucina                ERROR   : Ffmpeg process crashed unexpectedly for cucina.
[2022-11-21 13:54:31] watchdog.cucina                ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-11-21 13:54:31] ffmpeg.cucina.detect           ERROR   : [rtsp @ 0x1d88e70] Unable to open RTSP for listening
[2022-11-21 13:54:31] ffmpeg.cucina.detect           ERROR   : rtsp://admin:mypwd@192.168.x.xx:554/onvif1: Cannot assign requested address
[2022-11-21 13:54:32] frigate.video                  ERROR   : cucina: Unable to read frames from ffmpeg process.
[2022-11-21 13:54:32] frigate.video                  ERROR   : cucina: Unable to read frames from ffmpeg process.
[2022-11-21 13:54:32] frigate.video                  ERROR   : cucina: ffmpeg process is not running. exiting capture thread...
[2022-11-21 13:54:41] watchdog.cucina                ERROR   : Ffmpeg process crashed unexpectedly for cucina.
[2022-11-21 13:54:41] watchdog.cucina                ERROR   : The following ffmpeg logs include the last 100 lines prior to

FFprobe output from your camera

N/A

Frigate stats

N/A

Operating system

HassOS

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wireless

Camera make and model

Onvif P2P wifi

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
Knot83commented, Nov 21, 2022

@Knot83 What helped me early on is making sure the RTSP link was a usable one. I tested it using VLC which can open an RTSP stream, on a Windows PC on the same network as Frigate. Once I knew the RTSP link is correct and readable in VLC, it worked in Frigate.

As I said in the post, the RTSP link works correctly in VLC

0reactions
Knot83commented, Nov 21, 2022

Change the tcp in your input args to udp

It works, thank you so much

Read more comments on GitHub >

github_iconTop Results From Across the Web

What do I do if I am unable to view the live video stream ...
1. Click on the gear icon next to your camera. · 2. Under Video, turn off Auto Adjust. · 3. Change the Resolution...
Read more >
IP Camera Streaming Troubleshooting Guide - Digital Watchdog
If your camera is not streaming video, and this is a first-time setup, check the physical camera connections and that all assigned IP...
Read more >
Camera doesn't work in Windows
Select Start , type device manager, then select it from the search results. · Find your camera under Cameras, Imaging devices, or Sound,...
Read more >
Failed to View Cameras Live in Clear Stream
Solutions: · 1. Switch the stream mode to Fluent. · 2. Access the cameras in clear stream in LAN. · 3. Lower the...
Read more >
How to troubleshoot when you cannot watch video streaming?
Network cameras are sophisticated devices. If the video stream is not displayed after installing, a number of possible causes must be checked.
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