thirtythreeforty / neolink

An RTSP bridge to Reolink IP cameras
https://www.thirtythreeforty.net/posts/2020/05/hacking-reolink-cameras-for-fun-and-profit/
GNU Affero General Public License v3.0
893 stars 151 forks source link

ffmpeg missing picture in access unit with size #338

Open ternium1 opened 1 year ago

ternium1 commented 1 year ago

Describe the bug Error when trying to stream the main channel of a camera (B800), no issues with the substream. FFmpeg crashes with missing picture in access unit with size 88 on multiple ffmpeg clients VLC stream works fine though

To Reproduce Steps to reproduce the behavior. Example:

  1. Create this configuration file:
    [[cameras]]
    name = "parking"
    username = "admin"
    password = "xxxxxxxxxx"
    address = "10.21.0.16:9000"
  2. Launch Neolink via docker-compose
  3. execute ffprobe and ffmpeg with different arguments

I saw multiple issues with similar problems, but none of them helped me fix this error

Expected behavior FFMPEG should work fine even on the main stream

Versions NVR software: frigate/ffmpeg Neolink software: lastest docker image (Neolink 0.4.0) Reolink camera model and firmware: B800 v3.0.0.183_21012800

chimpppy commented 1 year ago

For anyone else who comes across this I resolved this by migrating to Andy's image.

Portainer Stack Config below

neolink: container_name: neolink user: redacted privileged: redacted restart: unless-stopped image: quantumentangledandy/neolink:latest volumes: