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.

[Support]: Connecting a subStream via Neolink to Frigate

See original GitHub issue

Describe the problem you are having

I’m currently trying to connect my RTSP sub stream that is generated via Neolink from the Reolink Argus 3 Pro camera to Frigate. Currently running the most up to date Home Assistant on a Oracle VM VirtualBox.

I keep getting the error that it is “Unable to read frames from ffmpeg process.”

Version

DEBUG 0.10.1-83481AF

Frigate config file

mqtt:
  host: 192.168.1.117
  port: 1883
  user: mqtt-user
  password: pw
cameras:
  OfficeCamera:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/Camera/subStream
          roles:
            - detect
            - rtmp
    detect:
      width: 896
      height: 504
      fps: 5

Relevant log output

[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-03-29 14:23:58] frigate.app                    INFO    : Starting Frigate (0.10.1-83481af)
[2022-03-29 14:23:58] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2022-03-29 14:23:58] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2022-03-29 14:23:58] peewee_migrate                 INFO    : There is nothing to migrate
[2022-03-29 14:23:58] frigate.app                    INFO    : Output process started: 215
[2022-03-29 14:23:58] detector.cpu                   INFO    : Starting detection process: 214
[2022-03-29 14:23:58] frigate.edgetpu                WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
[2022-03-29 14:23:58] ws4py                          INFO    : Using epoll
[2022-03-29 14:23:58] frigate.app                    INFO    : Camera processor started for OfficeCamera: 218
[2022-03-29 14:23:58] frigate.app                    INFO    : Capture process started for OfficeCamera: 221
[2022-03-29 14:23:58] ws4py                          INFO    : Using epoll
[2022-03-29 14:23:58] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:23:58] frigate.video                  ERROR   : OfficeCamera: ffmpeg process is not running. exiting capture thread...
[2022-03-29 14:24:18] watchdog.OfficeCamera          ERROR   : Ffmpeg process crashed unexpectedly for OfficeCamera.
[2022-03-29 14:24:18] watchdog.OfficeCamera          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-03-29 14:24:18] ffmpeg.OfficeCamera.detect     ERROR   : [tcp @ 0x55d62ef67280] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
[2022-03-29 14:24:18] ffmpeg.OfficeCamera.detect     ERROR   : rtsp://127.0.0.1:8554/Camera/subStream: Connection refused
[2022-03-29 14:24:18] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:18] frigate.video                  ERROR   : OfficeCamera: ffmpeg process is not running. exiting capture thread...
[2022-03-29 14:24:28] watchdog.OfficeCamera          ERROR   : Ffmpeg process crashed unexpectedly for OfficeCamera.
[2022-03-29 14:24:28] watchdog.OfficeCamera          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-03-29 14:24:28] ffmpeg.OfficeCamera.detect     ERROR   : [tcp @ 0x5631289c7280] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
[2022-03-29 14:24:28] ffmpeg.OfficeCamera.detect     ERROR   : rtsp://127.0.0.1:8554/Camera/subStream: Connection refused
[2022-03-29 14:24:28] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:28] frigate.video                  ERROR   : OfficeCamera: ffmpeg process is not running. exiting capture thread...
[2022-03-29 14:24:38] watchdog.OfficeCamera          ERROR   : Ffmpeg process crashed unexpectedly for OfficeCamera.
[2022-03-29 14:24:38] watchdog.OfficeCamera          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-03-29 14:24:38] ffmpeg.OfficeCamera.detect     ERROR   : [tcp @ 0x55fc8ccb2280] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
[2022-03-29 14:24:38] ffmpeg.OfficeCamera.detect     ERROR   : rtsp://127.0.0.1:8554/Camera/subStream: Connection refused
[2022-03-29 14:24:38] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:38] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:38] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:38] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:38] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:38] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:38] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:38] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:38] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:38] frigate.video                  ERROR   : OfficeCamera: ffmpeg process is not running. exiting capture thread...
[2022-03-29 14:24:48] watchdog.OfficeCamera          ERROR   : Ffmpeg process crashed unexpectedly for OfficeCamera.
[2022-03-29 14:24:48] watchdog.OfficeCamera          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-03-29 14:24:48] ffmpeg.OfficeCamera.detect     ERROR   : [tcp @ 0x558662b61280] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
[2022-03-29 14:24:48] ffmpeg.OfficeCamera.detect     ERROR   : rtsp://127.0.0.1:8554/Camera/subStream: Connection refused
[2022-03-29 14:24:48] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:48] frigate.video                  ERROR   : OfficeCamera: ffmpeg process is not running. exiting capture thread...
[2022-03-29 14:24:58] watchdog.OfficeCamera          ERROR   : Ffmpeg process crashed unexpectedly for OfficeCamera.
[2022-03-29 14:24:58] watchdog.OfficeCamera          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-03-29 14:24:58] ffmpeg.OfficeCamera.detect     ERROR   : [tcp @ 0x559067663280] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
[2022-03-29 14:24:58] ffmpeg.OfficeCamera.detect     ERROR   : rtsp://127.0.0.1:8554/Camera/subStream: Connection refused
[2022-03-29 14:24:58] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:24:58] frigate.video                  ERROR   : OfficeCamera: ffmpeg process is not running. exiting capture thread...
[2022-03-29 14:25:08] watchdog.OfficeCamera          ERROR   : Ffmpeg process crashed unexpectedly for OfficeCamera.
[2022-03-29 14:25:08] watchdog.OfficeCamera          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-03-29 14:25:08] ffmpeg.OfficeCamera.detect     ERROR   : [tcp @ 0x55bab1ebe280] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
[2022-03-29 14:25:08] ffmpeg.OfficeCamera.detect     ERROR   : rtsp://127.0.0.1:8554/Camera/subStream: Connection refused
[2022-03-29 14:25:08] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:25:08] frigate.video                  ERROR   : OfficeCamera: ffmpeg process is not running. exiting capture thread...
[2022-03-29 14:25:18] watchdog.OfficeCamera          ERROR   : Ffmpeg process crashed unexpectedly for OfficeCamera.
[2022-03-29 14:25:18] watchdog.OfficeCamera          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-03-29 14:25:18] ffmpeg.OfficeCamera.detect     ERROR   : [tcp @ 0x55f266b4c280] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
[2022-03-29 14:25:18] ffmpeg.OfficeCamera.detect     ERROR   : rtsp://127.0.0.1:8554/Camera/subStream: Connection refused
[2022-03-29 14:25:18] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:25:18] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:25:18] frigate.video                  ERROR   : OfficeCamera: ffmpeg process is not running. exiting capture thread...
[2022-03-29 14:25:28] watchdog.OfficeCamera          ERROR   : Ffmpeg process crashed unexpectedly for OfficeCamera.
[2022-03-29 14:25:28] watchdog.OfficeCamera          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-03-29 14:25:28] ffmpeg.OfficeCamera.detect     ERROR   : [tcp @ 0x561524a1a280] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
[2022-03-29 14:25:28] ffmpeg.OfficeCamera.detect     ERROR   : rtsp://127.0.0.1:8554/Camera/subStream: Connection refused
[2022-03-29 14:25:28] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:25:28] frigate.video                  ERROR   : OfficeCamera: ffmpeg process is not running. exiting capture thread...
[2022-03-29 14:25:38] watchdog.OfficeCamera          ERROR   : Ffmpeg process crashed unexpectedly for OfficeCamera.
[2022-03-29 14:25:38] watchdog.OfficeCamera          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-03-29 14:25:38] ffmpeg.OfficeCamera.detect     ERROR   : [tcp @ 0x560c7521e280] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
[2022-03-29 14:25:38] ffmpeg.OfficeCamera.detect     ERROR   : rtsp://127.0.0.1:8554/Camera/subStream: Connection refused
[2022-03-29 14:25:38] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:25:38] frigate.video                  ERROR   : OfficeCamera: ffmpeg process is not running. exiting capture thread...
[2022-03-29 14:25:48] watchdog.OfficeCamera          ERROR   : Ffmpeg process crashed unexpectedly for OfficeCamera.
[2022-03-29 14:25:48] watchdog.OfficeCamera          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-03-29 14:25:48] ffmpeg.OfficeCamera.detect     ERROR   : [tcp @ 0x564c75b14280] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
[2022-03-29 14:25:48] ffmpeg.OfficeCamera.detect     ERROR   : rtsp://127.0.0.1:8554/Camera/subStream: Connection refused
[2022-03-29 14:25:48] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:25:48] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:25:48] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:25:48] frigate.video                  ERROR   : OfficeCamera: ffmpeg process is not running. exiting capture thread...
[2022-03-29 14:25:58] watchdog.OfficeCamera          ERROR   : Ffmpeg process crashed unexpectedly for OfficeCamera.
[2022-03-29 14:25:58] watchdog.OfficeCamera          ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-03-29 14:25:58] ffmpeg.OfficeCamera.detect     ERROR   : [tcp @ 0x55812a296280] Connection to tcp://127.0.0.1:8554?timeout=5000000 failed: Connection refused
[2022-03-29 14:25:58] ffmpeg.OfficeCamera.detect     ERROR   : rtsp://127.0.0.1:8554/Camera/subStream: Connection refused
[2022-03-29 14:25:58] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:25:58] frigate.video                  ERROR   : OfficeCamera: Unable to read frames from ffmpeg process.
[2022-03-29 14:25:58] frigate.video                  ERROR   : OfficeCamera: ffmpeg process is not running. exiting capture thread...

FFprobe output from your camera

NA

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

CPU (no coral)

Network connection

Wireless

Camera make and model

Reolink Argus 3 Pro

Any other information that may be helpful

Since Reolink does not provide native RTSP… used Neolink to setup a RTSP. I’m able to view the stream on VLC and got the codec info from there and input that into the code.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
NickM-27commented, Apr 1, 2022

You’ll most likely find better help than I can give in a virtual box forum or subreddit asking more generally “how to let VM access services running on host device”. That or Blake may be able to help further.

0reactions
stale[bot]commented, May 1, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support for Reolink ip cameras - Home Assistant Community
Frigate with neolink is working fine using the subStream from neolink for detection and clips. If I try to use the 4k stream...
Read more >
Does the Reolink NVR output an RTSP Stream? - Reddit
When I connect directly to frigate (using rtsp) I'm getting the stream ... neolink to be able to feed it to frigate, but...
Read more >
Frigate NVR: Reolink Camera Configuration - digiMoot
This Frigate NVR: Reolink Camera Configuration article will help you optimize your Reolink camera settings for your Frigate NVR setup.
Read more >
3 Ways To Add Reolink Cameras (HOME ASSISTANT)
In todays video we are having a look at 3 different methods for getting our Reolink Cameras into Home Assistant. The first two...
Read more >
Request for RTSP URL - Reolink Support
(or you may install RTSP plug-in on web browser to view RTSP stream ... Sub Stream: rtsp://admin:111111@192.168.10.92:554/h264Preview_01_sub.
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