QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
330 stars 45 forks source link

neolink changes audio codec - problem with XProtect #302

Open straussmarkus opened 3 days ago

straussmarkus commented 3 days ago

Describe the bug Viewing the stream of my B800 camera neolink provides, VLC player shows following audio codec: image

In the XProtect NVR Software, it seams that this codec is unsupported. I tried every codec, but I cannot get audio to work. If i connect directly to the stream of the Reolink NVR, the codec shows differnt: image

When selecting AAC as codec in XProtect, Audio works immediatly

Expected behavior An option to keep source audio codec or choose one supported by XProtect: image

Versions NVR software: XProtect 24.1a Neolink software: 0.6.2 docker image Reolink camera model and firmware: B800, newest

QuantumEntangledAndy commented 2 days ago

PCM 16s BE is a very standard and simple format. We decided to trans-code from AAC to PCM because of a lack of AAC support in some clients (I believe Blue Iris).

I'm currently working on other projects at the moment. So if you want to adjust the way trans-coding happens please consider opening a PR for it yourself. The relevant sections are in src/rtsp/factory.rs at around L682 in the build_aac function