Giter Site home page Giter Site logo

Not working with go2rtc about neolink HOT 10 CLOSED

moskovskiy82 avatar moskovskiy82 commented on August 16, 2024
Not working with go2rtc

from neolink.

Comments (10)

QuantumEntangledAndy avatar QuantumEntangledAndy commented on August 16, 2024

Sorry I'm having trouble understanding what you are doing in that other thread. Not familiar with the workings of go2rtc or frigate.

Where is neolink in this setup and how are you connecting to it and what error do you get?

from neolink.

moskovskiy82 avatar moskovskiy82 commented on August 16, 2024

Reolink B800 > Your fork of Neolink. (Had to change the port to 8551 as go2rtc uses 8554 as well) > go2rtc > frigate

The problem is that the go2rtc part is not working. If i skip it out - it works. Go2rtc is like a video proxy allowing to convert for example the H265 stream to H264. Not good at video on linux - but can it be some kind of a conflict between Neolink and go2rtc? Although both run in docker containers.

from neolink.

moskovskiy82 avatar moskovskiy82 commented on August 16, 2024

Have also posted on go2rtc site. It's just strange that non Neolink cameras work without a hitch. So the problem is somewhere in between and i would appreciate if you could help with you knowledge

AlexxIT/go2rtc#392

from neolink.

QuantumEntangledAndy avatar QuantumEntangledAndy commented on August 16, 2024

Perhaps you can give me some more clear error messages/logs. It's hard to trace an issue without them.

Your using docker so i hope your aware of the extra work required to get a connection. Each container has its own ip and you need to know the IP address of the container for a connection. (If your using compose you can use the link parameter to give them names instead of IPs)

from neolink.

QuantumEntangledAndy avatar QuantumEntangledAndy commented on August 16, 2024

For neolink the two variables that control logging are

RUST_LOG="debug"

And

GST_DEBUG=3

The former is our log and the later is gstreamer log

from neolink.

moskovskiy82 avatar moskovskiy82 commented on August 16, 2024

Your using docker so i hope your aware of the extra work required to get a connection. Each container has its own ip and you need to know the IP address of the container for a connection. (If your using compose you can use the link parameter to give them names instead of IPs)

Yes. So to make things work i just expose the necessary ports. That is why had to change the Neolink port as it was the same as go2rtc (8554) which is a weird similarity to me and that is why i opened an issue here as well as you understand the internal workings of Neolink and have the knowledge. Will do some debug logging as currently no errors are logged neither in go2rtc or Neolink side which is just strange

version: "2.7"
services:
  frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    restart: unless-stopped
    image: ghcr.io/blakeblackshear/frigate:stable
    shm_size: "2048mb
    volumes:
      - /dev:/dev
      - /etc/localtime:/etc/localtime:ro
      - /i/frigate/config.yml:/config/config.yml
      - /i/frigate/media:/media/frigate
      - type: tmpfs
        target: /tmp/cache
        tmpfs:
          size: 4000000000
    ports:
      - "5000:5000"
      - "1935:1935" # RTMP feeds
      - "8554:8554"
    environment:
      - LIBVA_DRIVER_NAME=radeonsi
      - PGID=1001

  neolink:
    image: quantumentangledandy/neolink
    container_name: neolink
    ports:
      - 8551:8551
    volumes:
      - /i/frigate/neolink.toml:/etc/neolink.toml
    restart: unless-stopped

from neolink.

QuantumEntangledAndy avatar QuantumEntangledAndy commented on August 16, 2024

8554 is the standard rtsp port. So anything the provides rtsp will probably have it for the default.

Could you provide the following:

  1. The neolink config
  2. The config for frigate that shows the neolink rtsp url it is connecting to

from neolink.

QuantumEntangledAndy avatar QuantumEntangledAndy commented on August 16, 2024

Ok so I've added some things to improve the connection on VLC and frigate I hope it helps you. Could you test the latest build?

Also do you actually need go2rtc to convert the video? If you have a specific reason I might try and work up some conversion into neolink itself

from neolink.

QuantumEntangledAndy avatar QuantumEntangledAndy commented on August 16, 2024

Just thought I'd share the test docker and frigate setup I use

docker-compose.yml

version: "3.9"
services:
  frigate:
    image: ghcr.io/blakeblackshear/frigate:stable
    links:
      - neolink
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./frigate.yml:/config/config.yml
      - ./storage:/media/frigate
      - ./db:/db
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - "5000:5000"
      - "8554:8554" # RTSP feeds
      - "8555:8555/tcp" # WebRTC over tcp
      - "8555:8555/udp" # WebRTC over udp
  neolink:
    image: quantumentangledandy/neolink:latest
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./neolink.toml:/etc/neolink.toml
    environment:
      RUST_LOG: "neolink=debug"

neolink.toml

bind = "0.0.0.0"

[[cameras]]
name = "ANAME"
username = "MYUSER"
password = "MYPASS"
address = "MYIP:9000"
uid = "MYUID"
stream = "subStream"

frigate.yml

database:
    path: /db/frigate.db

mqtt:
    enabled: false

cameras:
    ANAME:
      ffmpeg:
        inputs:
          - path: rtsp://neolink:8554/ANAME/subStream
      detect:
        enabled: False
        width: 1280 # <---- update for your camera's resolution
        height: 720

from neolink.

QuantumEntangledAndy avatar QuantumEntangledAndy commented on August 16, 2024

Closing as I think this is all working in latest but please let me know if not

from neolink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.