Closed Sjkoops closed 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
@Sjkoops Have you tried changing the scheme to rtsp
when opening in VLC?
rtsp://192.168.2.198:8554/Lumus/mainStream
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!
The rtsp one seems to be working but from the log you misspelt mainStream
and you instead wrote mainstream
. Please try again with mainStream
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.
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.
@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:
ffprobe rtsp://127.0.0.1:8554/Lumus/subStream
from the raspberrypi while neolink is running is another window. This will tell us if network or vlc is an issue. p.s. ffprobe
is part of the ffmpeg
package sudo apt install ffmpeg
@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.
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. :)
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
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?
For what I can see I have managed to setup the neolink software correctly. It seems to start streaming.
but when I try to connect to the camera with VLC on the same machine like this:
or
(which is the ip of the machine)
I get a http 503 error. (see below)
I am using the following config:
What am I doing wrong?