7
33
Fork
You've already forked sentryshot
7

couldn't connect to rtsp stream #45

Open
opened 2024年11月28日 15:14:34 +01:00 by engine-er · 7 comments

I have problem with camera Zintronic D5
VLC could open the stream but Sentryshot not.

Please help, if it is not possible to run it, I have to give back this camera to the shop maximum tomorrow morning or I'll lose money ;-(

here is debug from sentryshot

[DEBUG] x1y2z3: Monitor: (main) rtsp source: using h264 video stream
[ERROR] x1y2z3: Monitor: (main) rtsp source: crashed: stream: Invalid FU-A header a5

conn: 10.1.1.2:60522(me)->10.1.1.10:554@2024年11月28日T15:10:19
stream: TCP, interleaved channel ids 0-1
ssrc: 0000a046
seq: 26
pkt: 917@2024年11月28日T15:10:19

I have problem with camera Zintronic D5 VLC could open the stream but Sentryshot not. Please help, if it is not possible to run it, I have to give back this camera to the shop maximum tomorrow morning or I'll lose money ;-( here is debug from sentryshot [DEBUG] x1y2z3: Monitor: (main) rtsp source: using h264 video stream [ERROR] x1y2z3: Monitor: (main) rtsp source: crashed: stream: Invalid FU-A header a5 conn: 10.1.1.2:60522(me)->10.1.1.10:554@2024年11月28日T15:10:19 stream: TCP, interleaved channel ids 0-1 ssrc: 0000a046 seq: 26 pkt: 917@2024年11月28日T15:10:19

Does the camera do h264? H265 is not compatable.

Does the camera do h264? H265 is not compatable.

yes - i set it to h.264

ffplay on other host works with this stream

yes - i set it to h.264 ffplay on other host works with this stream

i tried 3 different ffplay and works ok

here is output from one of them

configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --enable-libfaac --enable-nonfree --enable-libfdk-aac --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, rtsp, from 'rtsp://user:pass@10.1.1.10:554/0':
Metadata:
title : h264.mp4
Duration: N/A, start: 0.240000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p(tv), 2592x1944, 25 fps, 25 tbr, 90k tbn, 50 tbc

other ffplay uses this libs:

libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100

and also works ok

i tried 3 different ffplay and works ok here is output from one of them configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --enable-libfaac --enable-nonfree --enable-libfdk-aac --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, rtsp, from 'rtsp://user:pass@10.1.1.10:554/0': Metadata: title : h264.mp4 Duration: N/A, start: 0.240000, bitrate: N/A Stream #0:0: Video: h264 (Main), yuv420p(tv), 2592x1944, 25 fps, 25 tbr, 90k tbn, 50 tbc other ffplay uses this libs: libavutil 58. 29.100 / 58. 29.100 libavcodec 60. 31.102 / 60. 31.102 libavformat 60. 16.100 / 60. 16.100 libavdevice 60. 3.100 / 60. 3.100 libavfilter 9. 12.100 / 9. 12.100 libswscale 7. 5.100 / 7. 5.100 libswresample 4. 12.100 / 4. 12.100 libpostproc 57. 3.100 / 57. 3.100 and also works ok

I set small workaround for today.. i made rtsp serwer on MediaMTX (could set on docker also) and run ffpmeg:

ffmpeg -i rtsp://camera_rtsp_stream_url -acodec copy -vcodec copy -f mpegts pipe:1 | ffmpeg -i pipe:0 -acodec copy -vcodec copy -f rtsp rtsp://my_rtsp_server/mystream

and now Sentryshot could connect to my rtsp "proxy" ;-)

I set small workaround for today.. i made rtsp serwer on MediaMTX (could set on docker also) and run ffpmeg: ffmpeg -i rtsp://camera_rtsp_stream_url -acodec copy -vcodec copy -f mpegts pipe:1 | ffmpeg -i pipe:0 -acodec copy -vcodec copy -f rtsp rtsp://my_rtsp_server/mystream and now Sentryshot could connect to my rtsp "proxy" ;-)

Running my cameras thru go2rtc solved a lot of the errors I was having, and it's nice for restreaming

Running my cameras thru go2rtc solved a lot of the errors I was having, and it's nice for restreaming
Owner
Copy link

This may be the same issue as #42, but I'd need network dumps to confirm, we can wait until the other issue is fixed though.

This may be the same issue as #42, but I'd need network dumps to confirm, we can wait until the other issue is fixed though.
Owner
Copy link

Try v0.2.22, I'll need a network dump if that doesn't work and the error message doesn't change.

Try [v0.2.22](https://codeberg.org/SentryShot/sentryshot/releases/tag/v0.2.22), I'll need a network dump if that doesn't work and the error message doesn't change.
Sign in to join this conversation.
No Branch/Tag specified
master
sub_rec
recdb_v2
vino
sidebar
temp
range-streamer
logdb
v0.3.11
v0.3.10
v0.3.9
v0.3.8
v0.3.7
v0.3.6
v0.3.5
v0.3.4
v0.3.3
v0.3.2
v0.3.1
v0.3.0
v0.2.26
v0.2.25
v0.2.24
v0.2.23
v0.2.22
v0.2.21
v0.2.20
v0.2.19
v0.2.18
v0.2.17
v0.2.16
v0.2.15
v0.2.14
v0.2.13
v0.2.12
v0.2.11
v0.2.10
v0.2.9
v0.2.8
v0.2.7
v0.2.6
v0.2.5
v0.2.4
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.3
v0.1.2
v0.1.1
v0.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SentryShot/sentryshot#45
Reference in a new issue
SentryShot/sentryshot
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?