QuantumEntangledAndy / neolink

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

Stream Fails to Play on VLC (Argus 3) #56

Closed W3AXL closed 1 year ago

W3AXL commented 1 year ago

Describe the bug Seems that the latest build isn't working properly with my Argus 3. VLC attempts to connect to the RTSP stream and fails after a while which results in plenty of warnings and errors in the neolink/gstreamer logs.

To Reproduce

  1. Configuration file:
name = "frontdoor"
username = "admin"
password = "..."
uid = "..."
    [cameras.pause]
    on_motion = true
    on_client = true
    mode = "still"
    timeout = 4.0
  1. Launch Neolink:

$ GST_DEBUG=3 neolink rtsp --config=config_lsd.toml

  1. Try to play the rtsp stream in vlc using the url:

rtsp://<neolink url>:8554/frontdoor

  1. Observe that VLC tries to buffer for ~15 seconds, fails to play the stream, and the following logs are seen:
[2023-04-08T15:26:35Z INFO  neolink] Neolink 5734321633774a7a2e21dac510d95233a93be8c7 release
[2023-04-08T15:26:35Z INFO  neolink::rtsp] Starting RTSP Server at 0.0.0.0:8554
[2023-04-08T15:26:35Z INFO  neolink::rtsp::states] frontdoor: Connecting to camera at UID: 95270003UR3L14GD
[2023-04-08T15:26:35Z INFO  neolink_core::bc_protocol] Local discovery success 95270003UR3L14GD at 192.168.70.11:24541
[2023-04-08T15:26:35Z INFO  neolink::rtsp::states] frontdoor: Logging in
[2023-04-08T15:26:36Z INFO  neolink::rtsp::states] frontdoor: Successfully logged in
[2023-04-08T15:26:36Z INFO  neolink::rtsp::states] frontdoor: Camera time is already set: 2023-04-08 10:26:35 -6
[2023-04-08T15:26:36Z INFO  neolink::rtsp::states] frontdoor: Camera reports firmware version v3.0.0.819_22012700
[2023-04-08T15:26:36Z INFO  neolink::rtsp::states] frontdoor: Starting stream
[2023-04-08T15:26:36Z INFO  neolink::rtsp::states::streaming] frontdoor: Starting video stream Sub Stream (Fluent)
[2023-04-08T15:26:36Z INFO  neolink::rtsp::states::streaming] frontdoor: Starting video stream Main Stream (Clear)
[2023-04-08T15:26:36Z INFO  neolink::rtsp::states] frontdoor: Successfully started streaming
[2023-04-08T15:26:37Z WARN  neolink::rtsp] Not ready to pause
[2023-04-08T15:26:42Z INFO  neolink::rtsp] Pause on motion
[2023-04-08T15:26:42Z INFO  neolink::rtsp::states] frontdoor: Pausing stream
[2023-04-08T15:26:42Z INFO  neolink::rtsp::states::streaming] Streaming take_outputs
[2023-04-08T15:26:42Z INFO  neolink::rtsp::states::paused] frontdoor: Starting paused stream Sub Stream (Fluent)
[2023-04-08T15:26:42Z INFO  neolink::rtsp::states::paused] frontdoor: Starting paused stream Main Stream (Clear)
[2023-04-08T15:26:42Z INFO  neolink::rtsp::states] frontdoor: Successfully paused streaming
0:00:09.644118810  7558 0x7f9a8802d400 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audiotestsrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:09.643000942  7558 0x7f9a8800e180 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:09.645598552  7558 0x7f9a8802d860 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<vidsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:29.638715447  7558 0x7f9aa0005ea0 WARN               rtspmedia rtsp-media.c:3576:wait_preroll: failed to preroll pipeline
0:00:29.638835186  7558 0x7f9aa0005ea0 WARN               rtspmedia rtsp-media.c:3946:gst_rtsp_media_prepare: failed to preroll pipeline
0:00:29.643276018  7558 0x7f9aa0005ea0 ERROR             rtspclient rtsp-client.c:1087:find_media: client 0x7f9aa000b160: can't prepare media
0:00:29.644080126  7558 0x7f9aa0005ea0 ERROR             rtspclient rtsp-client.c:3346:handle_describe_request: client 0x7f9aa000b160: no media
0:00:29.648450189  7558 0x7f9a8800e180 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:29.648552843  7558 0x7f9a8802d400 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audiotestsrc1:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:29.650900139  7558 0x7f9a8802d520 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<vidsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:49.647200889  7558 0x7f9aa0005ea0 WARN               rtspmedia rtsp-media.c:3576:wait_preroll: failed to preroll pipeline
0:00:49.647349849  7558 0x7f9aa0005ea0 WARN               rtspmedia rtsp-media.c:3946:gst_rtsp_media_prepare: failed to preroll pipeline
0:00:49.654982495  7558 0x7f9aa0005ea0 ERROR             rtspclient rtsp-client.c:1087:find_media: client 0x7f9aa000b2a0: can't prepare media
0:00:49.655728980  7558 0x7f9aa0005ea0 ERROR             rtspclient rtsp-client.c:3064:handle_setup_request: client 0x7f9aa000b2a0: media '/frontdoor' not found

Expected behavior

VLC should be able to play the stream properly

Versions Neolink software: 5734321633774a7a2e21dac510d95233a93be8c7 Reolink camera model and firmware: Reolink Argus 3, FW v3.0.0.819_22012700

W3AXL commented 1 year ago

Removing all the [cameras.pause] config results in more errors being seen in the logs, but still unable to play the stream.

New config:

[[cameras]]
name = "frontdoor"
username = "admin"
password = "..."
uid = "..."

New logs:

~/neolink$ GST_DEBUG=3 neolink rtsp --config=config_lsd.toml
[2023-04-08T15:41:29Z INFO  neolink] Neolink 5734321633774a7a2e21dac510d95233a93be8c7 release
[2023-04-08T15:41:29Z INFO  neolink::rtsp] Starting RTSP Server at 0.0.0.0:8554
[2023-04-08T15:41:29Z INFO  neolink::rtsp::states] frontdoor: Connecting to camera at UID: 95270003UR3L14GD
[2023-04-08T15:41:31Z INFO  neolink_core::bc_protocol] Local discovery success 95270003UR3L14GD at 192.168.70.11:24541
[2023-04-08T15:41:31Z INFO  neolink::rtsp::states] frontdoor: Logging in
[2023-04-08T15:41:32Z INFO  neolink::rtsp::states] frontdoor: Successfully logged in
[2023-04-08T15:41:32Z INFO  neolink::rtsp::states] frontdoor: Camera time is already set: 2023-04-08 10:41:31 -6
[2023-04-08T15:41:33Z INFO  neolink::rtsp::states] frontdoor: Camera reports firmware version v3.0.0.819_22012700
[2023-04-08T15:41:33Z INFO  neolink::rtsp::states] frontdoor: Starting stream
[2023-04-08T15:41:33Z INFO  neolink::rtsp::states::streaming] frontdoor: Starting video stream Sub Stream (Fluent)
[2023-04-08T15:41:33Z INFO  neolink::rtsp::states::streaming] frontdoor: Starting video stream Main Stream (Clear)
[2023-04-08T15:41:33Z INFO  neolink::rtsp::states] frontdoor: Successfully started streaming
0:00:04.936702413  7732 0x7ff7fc005ea0 WARN                 default gst/parse/grammar.y:1174:priv_gst_parse_yyerror: Error during parsing: syntax error
0:00:04.936761091  7732 0x7ff7fc005ea0 ERROR           GST_PIPELINE gst/parse/grammar.y:1098:priv_gst_parse_yyparse: syntax error
0:00:04.936778914  7732 0x7ff7fc005ea0 ERROR           GST_PIPELINE gst/parse/grammar.y:1098:priv_gst_parse_yyparse: syntax error
0:00:04.939909287  7732 0x7ff7fc005ea0 WARN        rtspmediafactory rtsp-media-factory.c:1730:default_create_element: recoverable parsing error: syntax error
0:00:04.944398197  7732 0x7ff7ec00ec00 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:04.944481954  7732 0x7ff7ec00ef60 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audiotestsrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:04.946224937  7732 0x7ff7ec02c360 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<vidsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:05.050784338  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7577 will be dropped
0:00:05.050837046  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6878 will be dropped
0:00:05.050925011  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7089 will be dropped
0:00:05.050962877  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7462 will be dropped
0:00:05.051001259  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7249 will be dropped
0:00:05.271505665  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6786 will be dropped
0:00:05.271548966  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7513 will be dropped
0:00:05.271579833  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7158 will be dropped
0:00:05.271616447  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6737 will be dropped
0:00:05.271649641  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 8020 will be dropped
0:00:05.271678407  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6819 will be dropped
0:00:05.410962246  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 5835 will be dropped
0:00:05.411022702  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7736 will be dropped
0:00:05.411071448  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7168 will be dropped
0:00:05.411121970  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6490 will be dropped
0:00:05.411162873  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7293 will be dropped
0:00:05.411194779  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6730 will be dropped
0:00:05.621997572  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7204 will be dropped
0:00:05.622048366  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7529 will be dropped
0:00:05.622084059  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7144 will be dropped
0:00:05.622125499  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6640 will be dropped
0:00:05.622162868  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7336 will be dropped
0:00:05.622193919  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7254 will be dropped
0:00:05.842229340  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7015 will be dropped
0:00:05.842277895  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7534 will be dropped
0:00:05.842312353  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6719 will be dropped
0:00:05.842352181  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7337 will be dropped
0:00:05.842391179  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7460 will be dropped
0:00:05.842445489  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6534 will be dropped
0:00:06.030207439  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 8093 will be dropped
0:00:06.030255918  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7317 will be dropped
0:00:06.030290322  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6910 will be dropped
0:00:06.030329413  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6423 will be dropped
0:00:06.030366421  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7808 will be dropped
0:00:06.030397723  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7034 will be dropped
0:00:06.262464108  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6576 will be dropped
0:00:06.262511009  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7516 will be dropped
0:00:06.262545367  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6986 will be dropped
0:00:06.262585297  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6726 will be dropped
0:00:06.262622473  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 8001 will be dropped
0:00:06.262653242  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6807 will be dropped
0:00:06.497820977  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7422 will be dropped
0:00:06.497872771  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7204 will be dropped
0:00:06.497906586  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7216 will be dropped
0:00:06.497946095  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7038 will be dropped
0:00:06.497982149  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7681 will be dropped
0:00:06.498016836  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6863 will be dropped
0:00:06.639204930  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7076 will be dropped
0:00:06.639252210  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7237 will be dropped
0:00:06.639286047  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6950 will be dropped
0:00:06.744560059  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7100 will be dropped
0:00:06.744607250  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7796 will be dropped
0:00:06.744640048  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6480 will be dropped
0:00:06.744681793  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7430 will be dropped
0:00:06.744717499  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7227 will be dropped
0:00:06.744747865  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7225 will be dropped
0:00:06.870388997  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 8155 will be dropped
0:00:06.870435301  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6794 will be dropped
0:00:06.870468218  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7176 will be dropped
0:00:06.870507796  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7129 will be dropped
0:00:06.870543214  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7723 will be dropped
0:00:06.870573459  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6428 will be dropped
0:00:07.075989160  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7283 will be dropped
0:00:07.076035420  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7737 will be dropped
0:00:07.076068686  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6426 will be dropped
0:00:07.196556771  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7677 will be dropped
0:00:07.196603169  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7588 will be dropped
0:00:07.196637552  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7034 will be dropped
0:00:07.196678143  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7107 will be dropped
0:00:07.196714721  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7594 will be dropped
0:00:07.196745589  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6825 will be dropped
0:00:07.426476329  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7068 will be dropped
0:00:07.426524943  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7311 will be dropped
0:00:07.426558994  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7254 will be dropped
0:00:07.426599185  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7776 will be dropped
0:00:07.426635690  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7310 will be dropped
0:00:07.426666643  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7279 will be dropped
0:00:07.622036424  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7596 will be dropped
0:00:07.622082291  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7360 will be dropped
0:00:07.622115562  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6893 will be dropped
0:00:08.485853649  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse0> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 8997 will be dropped
0:00:24.942175485  7732 0x7ff7fc005ea0 WARN               rtspmedia rtsp-media.c:3576:wait_preroll: failed to preroll pipeline
0:00:24.942255321  7732 0x7ff7fc005ea0 WARN               rtspmedia rtsp-media.c:3946:gst_rtsp_media_prepare: failed to preroll pipeline
0:00:24.948037172  7732 0x7ff7fc005ea0 ERROR             rtspclient rtsp-client.c:1087:find_media: client 0x7ff7fc00b160: can't prepare media
0:00:24.948722029  7732 0x7ff7fc005ea0 ERROR             rtspclient rtsp-client.c:3346:handle_describe_request: client 0x7ff7fc00b160: no media
0:00:24.949493251  7732 0x7ff7fc005ea0 WARN                 default gst/parse/grammar.y:1174:priv_gst_parse_yyerror: Error during parsing: syntax error
0:00:24.949553038  7732 0x7ff7fc005ea0 ERROR           GST_PIPELINE gst/parse/grammar.y:1098:priv_gst_parse_yyparse: syntax error
0:00:24.949579704  7732 0x7ff7fc005ea0 ERROR           GST_PIPELINE gst/parse/grammar.y:1098:priv_gst_parse_yyparse: syntax error
0:00:24.950726154  7732 0x7ff7fc005ea0 WARN        rtspmediafactory rtsp-media-factory.c:1730:default_create_element: recoverable parsing error: syntax error
0:00:24.952550998  7732 0x7ff7ec00ec00 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:24.952641677  7732 0x7ff7ec00ef60 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audiotestsrc1:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:24.953270361  7732 0x7ff7ec02c360 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<vidsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:25.091732014  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7256 will be dropped
0:00:25.091786761  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6218 will be dropped
0:00:25.226363814  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 5753 will be dropped
0:00:25.226426758  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6812 will be dropped
0:00:25.226490018  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6856 will be dropped
0:00:25.226563379  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 5597 will be dropped
0:00:25.226621931  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6823 will be dropped
0:00:25.226669110  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6292 will be dropped
0:00:25.340262745  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6427 will be dropped
0:00:25.340334840  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6465 will be dropped
0:00:25.340399257  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6390 will be dropped
0:00:25.340455015  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6093 will be dropped
0:00:25.340505111  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7135 will be dropped
0:00:25.340548236  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6145 will be dropped
0:00:25.573846399  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 5986 will be dropped
0:00:25.573904594  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6786 will be dropped
0:00:25.573969684  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6526 will be dropped
0:00:25.574033793  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 5966 will be dropped
0:00:25.574090592  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7146 will be dropped
0:00:25.574140252  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6128 will be dropped
0:00:25.704526354  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6098 will be dropped
0:00:25.704602323  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6544 will be dropped
0:00:25.704646301  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6445 will be dropped
0:00:25.874072875  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6060 will be dropped
0:00:25.874132243  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7148 will be dropped
0:00:25.874181923  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6640 will be dropped
0:00:25.874242107  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6006 will be dropped
0:00:25.874291077  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6785 will be dropped
0:00:25.874337616  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6422 will be dropped
0:00:26.089341106  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6328 will be dropped
0:00:26.089396426  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6503 will be dropped
0:00:26.089444508  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6286 will be dropped
0:00:26.089501933  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6353 will be dropped
0:00:26.089549367  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7071 will be dropped
0:00:26.089592746  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6538 will be dropped
0:00:26.255580814  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6179 will be dropped
0:00:26.255638918  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6787 will be dropped
0:00:26.255689578  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6330 will be dropped
0:00:26.394926688  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 5941 will be dropped
0:00:26.394997808  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 7425 will be dropped
0:00:26.395047609  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6813 will be dropped
0:00:27.301035632  7732 0x7ff7ec02c300 WARN               h265parse gsth265parse.c:1311:gst_h265_parse_handle_frame:<h265parse1> broken/invalid nal Type: 1 Slice_TRAIL_R, Size: 6643 will be dropped
0:00:44.951303806  7732 0x7ff7fc005ea0 WARN               rtspmedia rtsp-media.c:3576:wait_preroll: failed to preroll pipeline
0:00:44.951395852  7732 0x7ff7fc005ea0 WARN               rtspmedia rtsp-media.c:3946:gst_rtsp_media_prepare: failed to preroll pipeline
0:00:44.956993659  7732 0x7ff7fc005ea0 ERROR             rtspclient rtsp-client.c:1087:find_media: client 0x7ff7fc00b2a0: can't prepare media
0:00:44.957672593  7732 0x7ff7fc005ea0 ERROR             rtspclient rtsp-client.c:3064:handle_setup_request: client 0x7ff7fc00b2a0: media '/frontdoor' not found
[2023-04-08T15:42:30Z WARN  neolink_core::bc_protocol::connection::bcconn] Reaching limit of channel
[2023-04-08T15:42:30Z WARN  neolink_core::bc_protocol::connection::bcconn] Remaining: 0 of 100 message space for 5 (ID: 3)
0:01:21.331442306  7732 0x7ff7f8005d80 WARN                  appsrc gstappsrc.c:1911:gst_app_src_push_internal:<audsrc> do-timestamp=TRUE but buffers are provided before reaching the PLAYING state and having a clock. Timestamps will not be accurate!
0:01:21.331570942  7732 0x7ff7f8005d80 WARN                  appsrc gstappsrc.c:1911:gst_app_src_push_internal:<vidsrc> do-timestamp=TRUE but buffers are provided before reaching the PLAYING state and having a clock. Timestamps will not be accurate!
W3AXL commented 1 year ago

One more update from testing this morning:

Adding in stream = "subStream" seems to have fixed playback, still with errors but at least I get working video now.

~/neolink$ GST_DEBUG=3 neolink rtsp --config=config_lsd.toml
[2023-04-08T15:46:18Z INFO  neolink] Neolink 5734321633774a7a2e21dac510d95233a93be8c7 release
[2023-04-08T15:46:18Z INFO  neolink::rtsp] Starting RTSP Server at 0.0.0.0:8554
[2023-04-08T15:46:18Z INFO  neolink::rtsp::states] frontdoor: Connecting to camera at UID: 95270003UR3L14GD
[2023-04-08T15:46:19Z INFO  neolink_core::bc_protocol] Local discovery success 95270003UR3L14GD at 192.168.70.11:28640
[2023-04-08T15:46:19Z INFO  neolink::rtsp::states] frontdoor: Logging in
[2023-04-08T15:46:19Z INFO  neolink::rtsp::states] frontdoor: Successfully logged in
[2023-04-08T15:46:20Z INFO  neolink::rtsp::states] frontdoor: Camera time is already set: 2023-04-08 10:46:18 -6
[2023-04-08T15:46:20Z INFO  neolink::rtsp::states] frontdoor: Camera reports firmware version v3.0.0.819_22012700
[2023-04-08T15:46:20Z INFO  neolink::rtsp::states] frontdoor: Starting stream
[2023-04-08T15:46:20Z INFO  neolink::rtsp::states::streaming] frontdoor: Starting video stream Sub Stream (Fluent)
[2023-04-08T15:46:20Z INFO  neolink::rtsp::states] frontdoor: Successfully started streaming
0:00:03.385684579  7792 0x7effcc005ea0 WARN                 default gst/parse/grammar.y:1174:priv_gst_parse_yyerror: Error during parsing: syntax error
0:00:03.385745475  7792 0x7effcc005ea0 ERROR           GST_PIPELINE gst/parse/grammar.y:1098:priv_gst_parse_yyparse: syntax error
0:00:03.385761970  7792 0x7effcc005ea0 ERROR           GST_PIPELINE gst/parse/grammar.y:1098:priv_gst_parse_yyparse: syntax error
0:00:03.388702678  7792 0x7effcc005ea0 WARN        rtspmediafactory rtsp-media-factory.c:1730:default_create_element: recoverable parsing error: syntax error
0:00:03.393275438  7792 0x7effc4009400 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:03.393422670  7792 0x7effc402b000 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audiotestsrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:03.394957557  7792 0x7effc402b360 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<vidsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:04.132634927  7792 0x7effc402b300 WARN               h264parse gsth264parse.c:1490:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 115 will be dropped
0:00:04.132700568  7792 0x7effc402b300 WARN               h264parse gsth264parse.c:1490:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 85 will be dropped
0:00:04.132735738  7792 0x7effc402b300 WARN               h264parse gsth264parse.c:1490:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 108 will be dropped
0:00:04.132768471  7792 0x7effc402b300 WARN               h264parse gsth264parse.c:1490:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 85 will be dropped
0:00:04.132800050  7792 0x7effc402b300 WARN               h264parse gsth264parse.c:1490:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 217 will be dropped
0:00:04.132839161  7792 0x7effc402b300 WARN               h264parse gsth264parse.c:1490:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 125 will be dropped
0:00:04.132871125  7792 0x7effc402b300 WARN               h264parse gsth264parse.c:1490:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 101 will be dropped
0:00:04.132902069  7792 0x7effc402b300 WARN               h264parse gsth264parse.c:1490:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 78 will be dropped
0:00:04.132932833  7792 0x7effc402b300 WARN               h264parse gsth264parse.c:1490:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 102 will be dropped
0:00:04.132994231  7792 0x7effc402b300 WARN               h264parse gsth264parse.c:1490:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 100 will be dropped
0:00:04.588950354  7792 0x7effcc005ea0 FIXME              rtspmedia rtsp-media.c:4549:gst_rtsp_media_suspend: suspend for dynamic pipelines needs fixing
0:00:04.592506360  7792 0x7effcc005ea0 FIXME              rtspmedia rtsp-media.c:4549:gst_rtsp_media_suspend: suspend for dynamic pipelines needs fixing
0:00:04.592538262  7792 0x7effcc005ea0 WARN               rtspmedia rtsp-media.c:4588:gst_rtsp_media_suspend: media 0x7effc00711e0 was not prepared
0:00:04.605107779  7792 0x7effcc005ea0 FIXME              rtspmedia rtsp-media.c:2867:gst_rtsp_media_seek_trickmode:<GstRTSPMedia@0x7effc00711e0> Handle going back to 0 for none live not seekable streams.

However, adding back in the cameras.pause configuration breaks things again. Causes the same issue as the original report - VLC buffers for ~20 seconds or so before erroring out with some errors in the logs:

Config:

[[cameras]]
name = "frontdoor"
username = "admin"
password = "..."
uid = "..."
stream = "subStream"
    [cameras.pause]
    on_motion = true
    on_client = true
    mode = "still"
    timeout = 4.0

Logs:

~/neolink$ GST_DEBUG=3 neolink rtsp --config=config_lsd.toml
[2023-04-08T15:47:34Z INFO  neolink] Neolink 5734321633774a7a2e21dac510d95233a93be8c7 release
[2023-04-08T15:47:34Z INFO  neolink::rtsp] Starting RTSP Server at 0.0.0.0:8554
[2023-04-08T15:47:34Z INFO  neolink::rtsp::states] frontdoor: Connecting to camera at UID: 95270003UR3L14GD
[2023-04-08T15:47:36Z INFO  neolink_core::bc_protocol] Local discovery success 95270003UR3L14GD at 192.168.70.11:28640
[2023-04-08T15:47:36Z INFO  neolink::rtsp::states] frontdoor: Logging in
[2023-04-08T15:47:37Z INFO  neolink::rtsp::states] frontdoor: Successfully logged in
[2023-04-08T15:47:37Z INFO  neolink::rtsp::states] frontdoor: Camera time is already set: 2023-04-08 10:47:36 -6
[2023-04-08T15:47:37Z INFO  neolink::rtsp::states] frontdoor: Camera reports firmware version v3.0.0.819_22012700
[2023-04-08T15:47:37Z INFO  neolink::rtsp::states] frontdoor: Starting stream
[2023-04-08T15:47:37Z INFO  neolink::rtsp::states::streaming] frontdoor: Starting video stream Sub Stream (Fluent)
[2023-04-08T15:47:37Z INFO  neolink::rtsp::states] frontdoor: Successfully started streaming
[2023-04-08T15:47:38Z WARN  neolink::rtsp] Not ready to pause
[2023-04-08T15:47:42Z INFO  neolink::rtsp] Pause on motion
[2023-04-08T15:47:42Z INFO  neolink::rtsp::states] frontdoor: Pausing stream
[2023-04-08T15:47:42Z INFO  neolink::rtsp::states::streaming] Streaming take_outputs
[2023-04-08T15:47:42Z INFO  neolink::rtsp::states::paused] frontdoor: Starting paused stream Sub Stream (Fluent)
[2023-04-08T15:47:42Z INFO  neolink::rtsp::states] frontdoor: Successfully paused streaming
0:00:08.232902447  7820 0x7efeb400ed80 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:08.233046258  7820 0x7efeb402cc00 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audiotestsrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:08.234895642  7820 0x7efeb402d460 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<vidsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:28.229759668  7820 0x7efecc005ea0 WARN               rtspmedia rtsp-media.c:3576:wait_preroll: failed to preroll pipeline
0:00:28.229821640  7820 0x7efecc005ea0 WARN               rtspmedia rtsp-media.c:3946:gst_rtsp_media_prepare: failed to preroll pipeline
0:00:28.233983964  7820 0x7efecc005ea0 ERROR             rtspclient rtsp-client.c:1087:find_media: client 0x7efecc00b160: can't prepare media
0:00:28.234608516  7820 0x7efecc005ea0 ERROR             rtspclient rtsp-client.c:3346:handle_describe_request: client 0x7efecc00b160: no media
0:00:28.238477633  7820 0x7efeb400ed80 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:28.238559008  7820 0x7efeb402cc00 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<audiotestsrc1:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:28.239106805  7820 0x7efeb402d460 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:<vidsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:48.237223659  7820 0x7efecc005ea0 WARN               rtspmedia rtsp-media.c:3576:wait_preroll: failed to preroll pipeline
0:00:48.237296079  7820 0x7efecc005ea0 WARN               rtspmedia rtsp-media.c:3946:gst_rtsp_media_prepare: failed to preroll pipeline
0:00:48.241267734  7820 0x7efecc005ea0 ERROR             rtspclient rtsp-client.c:1087:find_media: client 0x7efecc00b2a0: can't prepare media
0:00:48.241814250  7820 0x7efecc005ea0 ERROR             rtspclient rtsp-client.c:3064:handle_setup_request: client 0x7efecc00b2a0: media '/frontdoor/substream' not found
QuantumEntangledAndy commented 1 year ago

Seems your getting a syntax error when gstreamer attempts to build the pause variant of the pipeline from the input string. I've been working on a build for awhile that should fix this as it no longer builds the media from strings. But will be a little longer until it is ready.

You other error where adding subStream fixed it likely means you had too many streams active and neolink/network were overwhelmed.

sir-andreas commented 1 year ago

heave the same issue with a comparable setup. (Argus 3 Pro, latest docker)

QuantumEntangledAndy commented 1 year ago

Current reports are that #57 with builds here https://github.com/QuantumEntangledAndy/neolink/actions/runs/4667707017 could help with this. It's the gstreamer rework I've been doing.

buccaneeruk commented 1 year ago

Using 2 Argus PT and although Neolink states streaming I get nothing in VLC or Zoneminder

log ``` [2023-04-12T15:09:01Z INFO neolink] Neolink 5734321633774a7a2e21dac510d95233a93be8c7 release [2023-04-12T15:09:01Z INFO neolink::rtsp] Starting RTSP Server at 0.0.0.0:8554 [2023-04-12T15:09:01Z INFO neolink::rtsp::states] Front: Connecting to camera at UID: 9xxxxxxxxxxxxxJ [2023-04-12T15:09:01Z INFO neolink::rtsp::states] Rear: Connecting to camera at UID: 9xxxxxxxxxxxxxxX [2023-04-12T15:09:03Z INFO neolink_core::bc_protocol] Relay success 9xxxxxxxxxxxxxJ at ip:51630 [2023-04-12T15:09:03Z INFO neolink::rtsp::states] Front: Logging in [2023-04-12T15:09:03Z INFO neolink_core::bc_protocol] Relay success 9xxxxxxxxxxxxxxX at ip:51724 [2023-04-12T15:09:03Z INFO neolink::rtsp::states] Rear: Logging in [2023-04-12T15:09:04Z INFO neolink::rtsp::states] Front: Successfully logged in [2023-04-12T15:09:04Z INFO neolink::rtsp::states] Rear: Successfully logged in [2023-04-12T15:09:04Z INFO neolink::rtsp::states] Front: Camera time is already set: 2023-04-12 16:09:07 +0 [2023-04-12T15:09:05Z INFO neolink::rtsp::states] Rear: Camera time is already set: 2023-04-12 16:09:04 +0 ==Battery== Charge: 76%, Temperature: 21°C, LowPower: false, Adapter: none, ChargeStatus: none, [2023-04-12T15:09:05Z INFO neolink::rtsp::states] Front: Camera reports firmware version v3.0.0.715_21112344 [2023-04-12T15:09:05Z INFO neolink::rtsp::states] Front: Starting stream [2023-04-12T15:09:05Z INFO neolink::rtsp::states::streaming] Front: Starting video stream Sub Stream (Fluent) [2023-04-12T15:09:05Z INFO neolink::rtsp::states::streaming] Front: Starting video stream Main Stream (Clear) [2023-04-12T15:09:05Z INFO neolink::rtsp::states] Front: Successfully started streaming [2023-04-12T15:09:05Z INFO neolink::rtsp::states] Rear: Camera reports firmware version v3.0.0.715_21112344 [2023-04-12T15:09:05Z INFO neolink::rtsp::states] Rear: Starting stream [2023-04-12T15:09:05Z INFO neolink::rtsp::states::streaming] Rear: Starting video stream Sub Stream (Fluent) [2023-04-12T15:09:05Z INFO neolink::rtsp::states::streaming] Rear: Starting video stream Main Stream (Clear) [2023-04-12T15:09:05Z INFO neolink::rtsp::states] Rear: Successfully started streaming ==Battery== Charge: 98%, Temperature: 25°C, LowPower: false, Adapter: adapter, ChargeStatus: chargeComplete, [2023-04-12T15:09:05Z WARN neolink::rtsp] Not ready to pause [2023-04-12T15:09:05Z WARN neolink::rtsp] Not ready to pause [2023-04-12T15:09:08Z INFO neolink::rtsp] Pause on motion [2023-04-12T15:09:08Z INFO neolink::rtsp::states] Front: Pausing stream [2023-04-12T15:09:08Z INFO neolink::rtsp::states::streaming] Streaming take_outputs [2023-04-12T15:09:08Z INFO neolink::rtsp::states::paused] Front: Starting paused stream Sub Stream (Fluent) [2023-04-12T15:09:08Z INFO neolink::rtsp::states::paused] Front: Starting paused stream Main Stream (Clear) [2023-04-12T15:09:08Z INFO neolink::rtsp::states] Front: Successfully paused streaming [2023-04-12T15:09:27Z INFO neolink::rtsp] Resume on motion [2023-04-12T15:09:27Z INFO neolink::rtsp::states] Front: Resuming stream [2023-04-12T15:09:27Z INFO neolink::rtsp::states::streaming] Front: Starting video stream Main Stream (Clear) [2023-04-12T15:09:27Z INFO neolink::rtsp::states::streaming] Front: Starting video stream Sub Stream (Fluent) [2023-04-12T15:09:27Z INFO neolink::rtsp::states] Front: Successfully resumed streaming [2023-04-12T15:09:29Z INFO neolink::rtsp] Pause on motion [2023-04-12T15:09:29Z INFO neolink::rtsp::states] Front: Pausing stream [2023-04-12T15:09:29Z INFO neolink::rtsp::states::streaming] Streaming take_outputs [2023-04-12T15:09:30Z INFO neolink::rtsp::states::paused] Front: Starting paused stream Sub Stream (Fluent) [2023-04-12T15:09:30Z INFO neolink::rtsp::states::paused] Front: Starting paused stream Main Stream (Clear) [2023-04-12T15:09:30Z INFO neolink::rtsp::states] Front: Successfully paused streaming [2023-04-12T15:09:38Z ERROR neolink_core::bc_protocol::connection::bcconn] Subscription error: Io(Custom { kind: Other, error: CameraTerminate }) [2023-04-12T15:10:03Z ERROR neolink_core::bc_protocol::connection::bcconn] Subscription error: Io(Custom { kind: Other, error: CameraTerminate }) [2023-04-12T15:10:03Z WARN neolink::rtsp] Front: Retryable error: Motion detection unexpectedly stopped Caused by: 0: Dropped connection 1: receiving on a closed channel ```
QuantumEntangledAndy commented 1 year ago

@buccaneeruk are you able to test the build here https://github.com/QuantumEntangledAndy/neolink/actions/runs/4667707017. It's not released yet while it undergoes testing. But reports are from testers that it has much improved connectivity

buccaneeruk commented 1 year ago

@QuantumEntangledAndy Ran the above and the cams fire up then fail (Sorry total nude here)

thread '' panicked at 'Could not build pipeline: Missing required gstreamer plugin Unknown for textoverlay element

Caused by: Failed to find element factory with name 'textoverlay' for creating element', src/rtsp/gst/factory.rs:157:51 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace fatal runtime error: failed to initiate panic, error 2013355488 Aborted

QuantumEntangledAndy commented 1 year ago

That means your missing the gstreamer-plugins-base. If your not on docker please ensure you install that first.

QuantumEntangledAndy commented 1 year ago

If you want more specific instructions on how to install the base plugin from gstreamer I'll need more details on your OS

QuantumEntangledAndy commented 1 year ago

As a shot in the dark incase your on Debian you'll need this

apt-get install -y --no-install-recommends \
        libgstrtspserver-1.0-0 \
        libgstreamer1.0-0 \
        gstreamer1.0-plugins-base \
        gstreamer1.0-plugins-good \
        gstreamer1.0-plugins-bad
buccaneeruk commented 1 year ago

ran the install however no joy install runs fine but still states missing plugin, OS is dietpi V8.16.2. PS thank you for your help

QuantumEntangledAndy commented 1 year ago

Could you run

gst-inspect-1.0

It should list all plugins

buccaneeruk commented 1 year ago

So one step closer by reinstalling gstreamer , now remains connected however stream says not ready Screenshot 2023-04-13 130544

QuantumEntangledAndy commented 1 year ago

Stream will say that until it receives at least one video packet from the camera. We need to look else where for issues. Why for example is neolink not getting any video packets.

If you can please run neolink again after setting trace logging

export RUST_LOG=trace
neolink rtsp --config=pathToConfig
buccaneeruk commented 1 year ago

sorry for late reply, sorry as mentioned noob, can you tell me how to do this

QuantumEntangledAndy commented 1 year ago

I kind of did you run these commands:

export RUST_LOG=trace
neolink rtsp --config=pathToConfig

Then post the log

Also perhaps you can open a new issue for this. I don't think it's related to the initial issue here and I don't want to spam all the people who are watching this issue too much.

QuantumEntangledAndy commented 1 year ago

@W3AXL can you test if your issues are addressed in the latest build?

QuantumEntangledAndy commented 1 year ago

I think this has been fixed in latest can anyone confirm?

QuantumEntangledAndy commented 1 year ago

Closing as this should now be working in VLC please let me know if this is not the case