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
890 stars 148 forks source link

Unable to play the stream from a Lumus camera #213

Closed Sjkoops closed 3 years ago

Sjkoops commented 3 years ago

For what I can see I have managed to setup the neolink software correctly. It seems to start streaming.

pi@raspberrypi:~/Downloads $ neolink rtsp --config="config.toml"
[2021-10-04T13:02:08Z INFO  neolink] Neolink cf54129b5cc31a29c47f57443e13024d1038865b release
[2021-10-04T13:02:08Z WARN  neolink::rtsp] The format config option of the camera has been removed in favour of auto detection.
[2021-10-04T13:02:09Z INFO  neolink::rtsp] Lumus: Connecting to camera at 192.168.2.179:9000
[2021-10-04T13:02:09Z INFO  neolink::rtsp] Lumus: Connecting to camera at 192.168.2.179:9000
[2021-10-04T13:02:09Z INFO  neolink::rtsp] Lumus: Logging in
[2021-10-04T13:02:09Z INFO  neolink::rtsp] Lumus: Logging in
[2021-10-04T13:02:09Z INFO  neolink::rtsp] Lumus: Connected and logged in
[2021-10-04T13:02:09Z INFO  neolink::rtsp] Lumus: Starting video stream Sub Stream (Fluent)
[2021-10-04T13:02:09Z INFO  neolink::rtsp] Lumus: Connected and logged in
[2021-10-04T13:02:10Z INFO  neolink::rtsp] Lumus: Camera time is already set: 2021-10-04 15:02:10 +1
[2021-10-04T13:02:10Z INFO  neolink::rtsp] Lumus: Camera reports firmware version v2.0.0.687_20102800
[2021-10-04T13:02:10Z INFO  neolink::rtsp] Lumus: Starting video stream Main Stream (Clear)

but when I try to connect to the camera with VLC on the same machine like this:

http://127.0.0.1:8554/Lumus/mainStream

or

http://192.168.2.198:8554/Lumus/mainStream

(which is the ip of the machine)

I get a http 503 error. (see below)

I am using the following config:

bind = "0.0.0.0"

 [[cameras]]
 name = "Lumus"
 username = "admin"
 password = "********"
 address = "192.168.2.179:9000"
 format = "H264"

What am I doing wrong?

_http debug: incoming response:
HTTP/1.1 503 Service Unavailable
Server: GStreamer RTSP Server
Connection: close
Cache-Control: no-store
Pragma: no-cache
Date: Mon, 04 Oct 2021 11:29:58 GMT

access error: HTTP 503 error
http debug: querying proxy for http://127.0.0.1:8554/Lumus/mainStream
http debug: no proxy
http debug: http: server='127.0.0.1' port=8554 file='/Lumus/mainStream'
main debug: net: connecting to 127.0.0.1 port 8554
main debug: connection succeeded (socket = 21)
http debug: sending request:
GET /Lumus/mainStream HTTP/1.0
Host: 127.0.0.1:8554
User-Agent: VLC/3.0.11 LibVLC/3.0.11
Icy-MetaData: 1

http debug: HTTP answer code 503
http error: error: HTTP/1.0 503 Service Unavailable
main debug: no access modules matched
main debug: dead input
qt debug: IM: Deleting the input
main debug: changing item without a request (current 2/3)
main debug: nothing to play
main debug: processing request item: subStream, node: Playlist, skip: 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 4 items, index 3
main debug: starting playback of new item
main debug: resyncing on subStream
main debug: subStream is at 3
main debug: creating new input thread
main debug: Creating an input for 'subStream'
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: `http://127.0.0.1:8554/Lumus/subStream' gives access `http' demux `any' path `127.0.0.1:8554/Lumus/subStream'
main debug: creating demux: access='http' demux='any' location='127.0.0.1:8554/Lumus/subStream' file='(null)'
main debug: looking for access_demux module matching "http": 17 candidates
main debug: no access_demux modules matched
main debug: creating access: http://127.0.0.1:8554/Lumus/subStream
main debug: looking for access module matching "http": 28 candidates
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/01_googleimage.luac
lua debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/02_frenchtv.luac
qt debug: IM: Setting an input
lua debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/03_lastfm.luac
lua debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
http debug: resolving 127.0.0.1 ...
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
http debug: outgoing request:
GET /Lumus/subStream HTTP/1.1
Host: 127.0.0.1:8554
Accept: */*
Accept-Language: en_US
User-Agent: VLC/3.0.11 LibVLC/3.0.11
Range: bytes=0-

main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/02_frenchtv.luac
http debug: incoming response:
HTTP/1.1 503 Service Unavailable
Server: GStreamer RTSP Server
Connection: close
Cache-Control: no-store
Pragma: no-cache
Date: Mon, 04 Oct 2021 13:03:31 GMT

access error: HTTP 503 error
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/03_lastfm.luac
http debug: querying proxy for http://127.0.0.1:8554/Lumus/subStream
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
http debug: no proxy
http debug: http: server='127.0.0.1' port=8554 file='/Lumus/subStream'
main debug: net: connecting to 127.0.0.1 port 8554
main debug: connection succeeded (socket = 21)
http debug: sending request:
GET /Lumus/subStream HTTP/1.0
Host: 127.0.0.1:8554
User-Agent: VLC/3.0.11 LibVLC/3.0.11
Icy-MetaData: 1

http debug: HTTP answer code 503
http error: error: HTTP/1.0 503 Service Unavailable
main debug: no access modules matched
main debug: dead input
main debug: changing item without a request (current 3/4)
main debug: nothing to play
qt debug: IM: Deleting the input
main debug: processing request item: mainStream, node: Playlist, skip: 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 5 items, index 4
main debug: starting playback of new item
main debug: resyncing on mainStream
main debug: mainStream is at 4
main debug: creating new input thread
main debug: Creating an input for 'mainStream'
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: `http://127.0.0.1:8554/Lumus/mainStream' gives access `http' demux `any' path `127.0.0.1:8554/Lumus/mainStream'
main debug: creating demux: access='http' demux='any' location='127.0.0.1:8554/Lumus/mainStream' file='(null)'
main debug: looking for access_demux module matching "http": 17 candidates
main debug: no access_demux modules matched
main debug: creating access: http://127.0.0.1:8554/Lumus/mainStream
main debug: looking for access module matching "http": 28 candidates
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/01_googleimage.luac
lua debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/02_frenchtv.luac
lua debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/03_lastfm.luac
lua debug: skipping script (unmatched scope) /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib/arm-linux-gnueabihf/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
qt debug: IM: Setting an input
http debug: resolving 127.0.0.1 ...
http debug: outgoing request:
GET /Lumus/mainStream HTTP/1.1
Host: 127.0.0.1:8554
Accept: */*
Accept-Language: en_US
User-Agent: VLC/3.0.11 LibVLC/3.0.11
Range: bytes=0-

http debug: incoming response:
HTTP/1.1 503 Service Unavailable
Server: GStreamer RTSP Server
Connection: close
Cache-Control: no-store
Pragma: no-cache
Date: Mon, 04 Oct 2021 13:06:07 GMT

access error: HTTP 503 error
http debug: querying proxy for http://127.0.0.1:8554/Lumus/mainStream
http debug: no proxy
http debug: http: server='127.0.0.1' port=8554 file='/Lumus/mainStream'
main debug: net: connecting to 127.0.0.1 port 8554
main debug: connection succeeded (socket = 21)
http debug: sending request:
GET /Lumus/mainStream HTTP/1.0
Host: 127.0.0.1:8554
User-Agent: VLC/3.0.11 LibVLC/3.0.11
Icy-MetaData: 1

http debug: HTTP answer code 503
http error: error: HTTP/1.0 503 Service Unavailable
main debug: no access modules matched
main debug: dead input
qt debug: IM: Deleting the input
main debug: changing item without a request (current 4/5)
main debug: nothing to play_
QuantumEntangledAndy commented 3 years ago

Could you run this to put it into debug mode and post the log while you try to connect

GST_DEBUG=3 neolink rtsp --config="config.toml"

also you can remove format = "H264" it dosen't do anything anymore

petergam commented 3 years ago

@Sjkoops Have you tried changing the scheme to rtsp when opening in VLC?

rtsp://192.168.2.198:8554/Lumus/mainStream
Sjkoops commented 3 years ago

Thanks for the response guys. I have removed the format option from the config.

pi@raspberrypi:~/Downloads $ GST_DEBUG=3 neolink rtsp --config="config.toml"
[2021-10-05T19:15:32Z INFO  neolink] Neolink cf54129b5cc31a29c47f57443e13024d1038865b release
[2021-10-05T19:15:35Z INFO  neolink::rtsp] Lumus: Connecting to camera at 192.168.2.179:9000
[2021-10-05T19:15:35Z INFO  neolink::rtsp] Lumus: Logging in
[2021-10-05T19:15:35Z INFO  neolink::rtsp] Lumus: Connecting to camera at 192.168.2.179:9000
[2021-10-05T19:15:35Z INFO  neolink::rtsp] Lumus: Logging in
[2021-10-05T19:15:36Z INFO  neolink::rtsp] Lumus: Connected and logged in
[2021-10-05T19:15:36Z INFO  neolink::rtsp] Lumus: Connected and logged in
[2021-10-05T19:15:36Z INFO  neolink::rtsp] Lumus: Starting video stream Sub Stream (Fluent)
[2021-10-05T19:15:36Z INFO  neolink::rtsp] Lumus: Camera time is already set: 2021-10-05 21:15:35 +1
[2021-10-05T19:15:37Z INFO  neolink::rtsp] Lumus: Camera reports firmware version v2.0.0.687_20102800
[2021-10-05T19:15:37Z INFO  neolink::rtsp] Lumus: Starting video stream Main Stream (Clear)

Tried to stream with VLC http://192.168.2.198:8554/Lumus/mainStream same error in VLC.

0:00:26.526350931 23006   0x93da90 ERROR             rtspclient rtsp-client.c:4497:handle_tunnel: client 0x947878: no tunnelid provided
0:00:26.564482454 23006   0x93da90 ERROR             rtspclient rtsp-client.c:4497:handle_tunnel: client 0x947910: no tunnelid provided

Then tried to stream with VLC rtsp://192.168.2.198:8554/Lumus/mainStream Now there is a lot of output but not a playing stream.

0:01:16.292193392 23006 0x74211ac0 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<audsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:01:16.295079676 23006 0x74211b50 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<vidsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:01:16.379118405 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 4130 will be dropped
0:01:16.407340306 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 3293 will be dropped
0:01:16.510513391 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 3023 will be dropped
0:01:16.584002137 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 2588 will be dropped
0:01:16.604485338 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 2650 will be dropped
0:01:16.742677729 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 2573 will be dropped
0:01:16.789963362 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 2405 will be dropped
0:01:16.891924788 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 2279 will be dropped
0:01:16.938081574 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 2205 will be dropped
0:01:16.981379524 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 2054 will be dropped
0:01:16.999776489 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 2056 will be dropped
0:01:17.146586012 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 1973 will be dropped
0:01:17.159863843 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 2088 will be dropped
0:01:17.257775243 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 2061 will be dropped
0:01:17.353591188 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 1998 will be dropped
0:01:17.355454978 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 1892 will be dropped
0:01:17.434755145 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 1939 will be dropped
0:01:17.547014109 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 1918 will be dropped
0:01:17.591832674 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 1912 will be dropped
0:01:17.663466692 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 1833 will be dropped
0:01:17.767448366 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 1865 will be dropped
0:01:17.906333825 23006 0x74211b20 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 1780 will be dropped
0:01:21.943167199 23006   0x93db80 FIXME              rtspmedia rtsp-media.c:3835:gst_rtsp_media_suspend: suspend for dynamic pipelines needs fixing
0:01:21.947165142 23006   0x93db80 ERROR             rtspclient rtsp-client.c:1003:find_media: client 0x947a40: no factory for path /lumus/mainstream
0:01:21.948454560 23006   0x93db80 ERROR             rtspclient rtsp-client.c:2628:handle_setup_request: client 0x947a40: media '/lumus/mainstream' not found
0:01:22.019168949 23006 0x757014e0 WARN                  appsrc gstappsrc.c:1802: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!
0:01:22.020436024 23006 0x757014e0 WARN                  appsrc gstappsrc.c:1802: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!
QuantumEntangledAndy commented 3 years ago

The rtsp one seems to be working but from the log you misspelt mainStream and you instead wrote mainstream. Please try again with mainStream

Sjkoops commented 3 years ago

With all the spelling correct ;) I do not recieve any errors from VLC but I have only a black screen. It does seem to stream.

pi@raspberrypi:~/Downloads $ GST_DEBUG=3 neolink rtsp --config="config.toml"
[2021-10-07T06:43:46Z INFO  neolink] Neolink cf54129b5cc31a29c47f57443e13024d1038865b release
[2021-10-07T06:43:51Z INFO  neolink::rtsp] Lumus: Connecting to camera at 192.168.2.5:9000
[2021-10-07T06:43:51Z INFO  neolink::rtsp] Lumus: Logging in
[2021-10-07T06:43:51Z INFO  neolink::rtsp] Lumus: Connecting to camera at 192.168.2.5:9000
[2021-10-07T06:43:51Z INFO  neolink::rtsp] Lumus: Logging in
[2021-10-07T06:43:52Z INFO  neolink::rtsp] Lumus: Connected and logged in
[2021-10-07T06:43:52Z INFO  neolink::rtsp] Lumus: Connected and logged in
[2021-10-07T06:43:52Z INFO  neolink::rtsp] Lumus: Starting video stream Sub Stream (Fluent)
[2021-10-07T06:43:52Z INFO  neolink::rtsp] Lumus: Camera time is already set: 2021-10-07 8:43:52 +1
[2021-10-07T06:43:52Z INFO  neolink::rtsp] Lumus: Camera reports firmware version v2.0.0.687_20102800
[2021-10-07T06:43:52Z INFO  neolink::rtsp] Lumus: Starting video stream Main Stream (Clear)
0:00:30.130309812  1212 0x75638060 WARN                  appsrc gstappsrc.c:1802: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!
0:00:30.135043036  1212 0x75638060 WARN                  appsrc gstappsrc.c:1802: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:00:30.161237359  1212 0x741121b0 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<audsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:30.164644714  1212 0x74112260 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<vidsrc:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:30.186654503  1212 0x74112230 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 3958 will be dropped
0:00:30.208427732  1212 0x74112230 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 3972 will be dropped
0:00:30.328946031  1212 0x74112230 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 3967 will be dropped
0:00:30.411589834  1212 0x74112230 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 3965 will be dropped
0:00:30.412053006  1212 0x74112230 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 3968 will be dropped
0:00:30.518200018  1212 0x74112230 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 3979 will be dropped
0:00:30.577267593  1212 0x74112230 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 3957 will be dropped
0:00:31.611937032  1212 0x74112230 WARN               h264parse gsth264parse.c:1237:gst_h264_parse_handle_frame:<h264parse0> broken/invalid nal Type: 1 Slice, Size: 3964 will be dropped
0:00:32.387450998  1212  0x20f3690 FIXME              rtspmedia rtsp-media.c:3835:gst_rtsp_media_suspend: suspend for dynamic pipelines needs fixing
0:00:32.398095852  1212  0x20f3690 FIXME              rtspmedia rtsp-media.c:3835:gst_rtsp_media_suspend: suspend for dynamic pipelines needs fixing
0:00:32.398285068  1212  0x20f3690 WARN               rtspmedia rtsp-media.c:3861:gst_rtsp_media_suspend: media 0x75639180 was not prepared
0:00:32.444411255  1212  0x20f3690 FIXME             rtspclient rtsp-client.c:1646:handle_play_request:<GstRTSPClient@0x2134878> Add support for seek style (null)
0:00:32.445362856  1212  0x20f3690 FIXME              rtspmedia rtsp-media.c:2434:gst_rtsp_media_seek_full:<GstRTSPMedia@0x75639180> Handle going back to 0 for none live not seekable streams.

Attached the log from vl vlc.txt c.

kingb2019 commented 3 years ago

Just want to add, I am experiencing the same issue and getting the same results when troubleshooting. I am using the windows environment as the middleware server. I have Milestone, Blue IRIS and Shinobi as test servers. Each resulting in the same.

QuantumEntangledAndy commented 3 years ago

@Sjkoops unfortunatly these logs didn't reveal anything other than media not prepared which is a generic sort or message.

We can certainly see some h264 frames being picked up but after that nothing particularly wrong is happening.

Some things you can try are:

Sjkoops commented 3 years ago

@QuantumEntangledAndy the ffprobe option worked, so I have been testing further and discovered that also ffplay rtsp://127.0.0.1:8554/Lumus/mainStream is working fine.

Next I have tested with the VLC client from a windows system which also cannot play the stream. Using ffplay on windows is working fine. So it seems that VLC is the problem.

Turning the camera sound off has no effect. VLC still does not play and ffplay plays about everything.

QuantumEntangledAndy commented 3 years ago

Ah so only VLC. I may know what it is then.

VLC uses a smaller UDP buffer which isnt large enough for some camera. Either switch it to use TCP mode or increase the size of the UDP buffer.

I don't use VLC so I don't know where those buffer options are though. I think there in advanced settings. Maybe Google knows. :)

Sjkoops commented 3 years ago

I was using VLC just for testing. I did a test increasing the buffer using this guide https://www.groovypost.com/howto/change-vlc-streaming-buffer/ but had no luck. My goal was to use the camera in Home Assistant and that works fine now. I used this integration https://github.com/AlexxIT/WebRTC

QuantumEntangledAndy commented 3 years ago

I'm glad it was sorted out and that the software has been useful :)

@kingb2019 Are you still having trouble do you want to open a new issue?