Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RtspCameraExample issue when client is Hikvision NVR #84

Open
carpediem-av opened this issue Mar 29, 2023 · 8 comments
Open

RtspCameraExample issue when client is Hikvision NVR #84

carpediem-av opened this issue Mar 29, 2023 · 8 comments

Comments

@carpediem-av
Copy link

The RtspCameraExample works fine with VLC, but the Hikvision NVR with the server link added does not play the stream. The console shows that packets are sent, and then the connection is terminated, and so on in a loop. I wanted to use this program to display a static image on the DVR as if it were a real camera.

@ngraziano
Copy link
Owner

I do not have access to this kind of material. no way for me to test.

@bentorkington
Copy link
Contributor

This is possibly related to #127. @carpediem-av, can you please use Wireshark to capture the conversation between Hikvision and RtspCameraExample, and attach it here. Please filter only the RTSP packets, similar to my example in #127.

@carpediem-av
Copy link
Author

Yes, sure. 192.168.10.107 is PC.
hik.zip

@ngraziano
Copy link
Owner

I have add the sending of RTCP RR message in the example, it may help. Can you test ?

If it is not working, can you make a capture with a working client (VLC for exemple).

@carpediem-av
Copy link
Author

We were talking about RtspCameraExample. Looks like you made the changes in the wrong place (RtspClientExample)

@ngraziano
Copy link
Owner

Sorry, I was totally wrong. I don't know why I was thinking you were using the program as client. As server, the RR can't be the problem.

In the capture, it seems that the NVR is connecting two time to the server. Maybe the NVR is not recognizing the stream (it is a special not compressed h264 stream) and it retry.
Can you try configure the NVR to request stream in UDP to see if it change something ?

(for simulating camera you can also use the RSTP server happytime, it work well to stream a jpg or a video)

@carpediem-av
Copy link
Author

No, it doesn't work via UDP either. VLC works great. I tried to encode the image through the libx264 library (integrated into the code), also to no avail (which means it’s not the encoder).

@RogerHardiman
Copy link
Collaborator

I have an old Hik NVR in the office. It connects to SharpRTSP.
Mine is a 7716 with firmware from 2022 (V4.61.025 build 220905)
image

What model and firmware have you got?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants