QuantumEntangledAndy / neolink

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

Syntax error: ")" unexpected #319

Open misosec opened 3 days ago

misosec commented 3 days ago

Describe the bug Neolink do not start at all because of error: Syntax error: ")" unexpected

To Reproduce

  1. Install packages like this:
    sudo apt install \
    libgstrtspserver-1.0-0 \
    libgstreamer1.0-0 \
    libgstreamer-plugins-bad1.0-0 \
    gstreamer1.0-x \
    gstreamer1.0-plugins-base \
    gstreamer1.0-plugins-good \
    gstreamer1.0-plugins-bad \
    libssl3
  2. Download and unzip neolink_linux_x86_64_bookworm
  3. Create neolink.toml
  4. Execute sudo ./neolink rtsp --config=neolink.toml

Expected behavior Neolink should start.

Versions Hardware: Raspberry Pi 5 OS: Bookworm with latest updates Reolink camera model: Argus 2

QuantumEntangledAndy commented 2 days ago

Check your config. Neolink is a in rust a complied not an interpreted language. There is no ( in the binary code that is shipped to you at all it is all asm.

It's most likely in the text file you are inserting into it which is the config. Or perhaps one of the other generated configs.

misosec commented 2 days ago

I've just wget sample_config.toml directly to my neolink_linux_x86_64_bookworm folder like this: wget "https://raw.githubusercontent.com/QuantumEntangledAndy/neolink/refs/heads/master/sample_config.toml"

and then run: sudo ./neolink rtsp --config=sample_config.toml

The same error: ./neolink: 3: Syntax error: ")" unexpected

I did not edit sample_config.toml at all so it seems like the error is somewhere else in my system. :-(

QuantumEntangledAndy commented 2 days ago

I've just spotted your on an rpi5. Please try the arm64 build please, unless they changed it from the rpi1-4 it's an arm architecture cpu

misosec commented 2 days ago

It's working now! :-) but it gives me an error:

Buffer full on audsrc
Buffer full on vidsrc

Maybe that why I can get mostly audio only. I did get video once. Any idea?

Thank you!