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
897 stars 151 forks source link

g_object_new_is_valid_property: property 'name' for type 'GstRtpL16Pay' cannot be set twice #353

Open moskovskiy82 opened 1 year ago

moskovskiy82 commented 1 year ago

](neolink:7): GLib-GObject-CRITICAL **: 14:43:00.195: g_object_new_is_valid_property: property 'name' for type 'GstRtpL16Pay' cannot be set twice)

After upgrading to Reolink B800 Firmware to the latest on their website v 3.0.0.183 from vanilla v 3.0.0 got the following error

[2023-04-23T14:46:13Z INFO neolink::rtsp] Main: Starting video stream Main Stream (Clear) (neolink:7): GLib-GObject-CRITICAL : 14:46:20.457: g_object_new_is_valid_property: property 'name' for type 'GstRtpL16Pay' cannot be set twice (neolink:7): GStreamer-CRITICAL : 14:46:22.207: gst_buffer_n_memory: assertion 'GST_IS_BUFFER (buffer)' failed (neolink:7): GStreamer-CRITICAL **: 14:46:22.207: gst_mini_object_lock: assertion 'GST_MINI_OBJECT_IS_LOCKABLE (object)' failed Segmentation fault (core dumped)

zimmra commented 1 year ago

I am getting the same error when trying to access the stream of my Lumus (fw. ver. v2.0.0.705_21052800)

2023-05-01T15:13:05.954779505Z (neolink:6): GLib-GObject-CRITICAL **: 15:13:05.954: g_object_new_is_valid_property: property 'name' for type 'GstRtpL16Pay' cannot be set twice
QuantumEntangledAndy commented 1 year ago

This is fixed in my fork. Please see there for updates this fork is mostly unmaintained

https://github.com/QuantumEntangledAndy/neolink

rockas69 commented 1 year ago

Still have this error. Setting up for Reolink E1 Pro cameras.

(neolink:8): GLib-GObject-CRITICAL **: 08:45:19.188: g_object_new_is_valid_property: property 'name' for type 'GstRtpL16Pay' cannot be set twice

Got it resolved by replacing mainStream to subStream

@QuantumEntangledAndy is there anyway to have mainStream working?

QuantumEntangledAndy commented 1 year ago

What version are you currently on. Should work fine if your using the one from my fork. As far as I'm aware there's no one actively maintaining this fork any more. If you are using mine please open the issue there.

BloodBlight commented 1 year ago

I am also seeing this. Though I cannot use subStream, my camera doesn't seem to like that (have it in "both" at the moment for testing, but seems to be just as both or worse).

I am using docker and appear to have the latest image, though it is 3 months old: thirtythreeforty/neolink latest 7f8a856bc6f3 3 months ago 155MB

The stream works for a few minutes, then crashes. I thought it was just the camera over heating or something, so I have it turn off for a bit every night, but that hasn't helped. So not sure what the deal is.

[2023-08-20T15:33:23Z INFO  neolink] Neolink 0.4.0 (unknown commit) release
[2023-08-20T15:33:33Z WARN  neolink::rtsp] The format config option of the camera has been removed in favour of auto detection.
[2023-08-20T15:33:33Z INFO  neolink::rtsp] WiFi1: Connecting to camera at Address: 192.###.###.###:9000
[2023-08-20T15:33:33Z INFO  neolink::rtsp] WiFi1: Logging in
[2023-08-20T15:33:33Z INFO  neolink::rtsp] WiFi1: Connecting to camera at Address: 192.###.###.###:9000
[2023-08-20T15:33:33Z INFO  neolink::rtsp] WiFi1: Logging in
[2023-08-20T15:33:33Z INFO  neolink::rtsp] WiFi1: Connected and logged in
[2023-08-20T15:33:33Z INFO  neolink::rtsp] WiFi1: Connected and logged in
[2023-08-20T15:33:33Z INFO  neolink::rtsp] WiFi1: Starting video stream Sub Stream (Fluent)
[2023-08-20T15:33:33Z INFO  neolink::rtsp] WiFi1: Camera time is already set: 2023-08-20 8:33:33 -8
[2023-08-20T15:33:33Z INFO  neolink::rtsp] WiFi1: Camera reports firmware version v2.0.0.705_21052800
[2023-08-20T15:33:33Z INFO  neolink::rtsp] WiFi1: Starting video stream Main Stream (Clear)

(neolink:7): GLib-GObject-CRITICAL **: 15:33:42.546: g_object_new_is_valid_property: property 'name' for type 'GstRtpL16Pay' cannot be set twice
Segmentation fault (core dumped)

My config:

bind = "0.0.0.0"

[[cameras]]
name = "WiFi1"
username = "#########"
password = "#########"
address = "192.###.###.###:9000"
format = "H264"
stream = "both"
QuantumEntangledAndy commented 1 year ago

@BloodBlight this fork is unmaintained. Please read the sticked issue about that (#370) and swap to my fork.

BloodBlight commented 1 year ago

Oh, thank you! I hope @thirtythreeforty is okay!

I appreciate the work and the link!