BogdanovKirill / RtspClientSharp

Pure C# RTSP client for .NET Standard without external dependencies and with true async nature. I welcome contributions.
MIT License
706 stars 284 forks source link

60 fps stream like 1 fps #49

Closed Sharkboy-j closed 4 years ago

Sharkboy-j commented 5 years ago

Describe the bug So, im using your lib to display my RTSP stream 60 fps. But i can see only 1 frame per second. Other players like vlc or mpc can display this 60 frames. Where is problem, how can i increase it?

BogdanovKirill commented 5 years ago

It's difficult to understand where problem is from your description. Do you have enough powerful CPU to decode H.264 ? VLC could use hardware decoding with GPU.

Sharkboy-j commented 5 years ago

I think i7 8 gen is enough for decode this. I found out that an error occurs at FrameReceived event at RealtimeVideoSource.cs: 56 IDecodedVideoFrame decodedFrame = decoder.TryDecode(rawVideoFrame);

First frame is successfully decoded but when trying to decode all other 59 frames it return null

later i got that FFmpegVideoPInvoke.DecodeFrame() return status code -3 on this frames

but what -3 means.. I have no any idea

BogdanovKirill commented 5 years ago

Could you give me direct access to your device? You could mail me to bogdanov.kv@bk.ru

kenrentz commented 4 years ago

I am also experiencing this issue on one of our cameras. It is an Axis Q1755 network camera. Our other cameras including some Axis models work fine. This particular camera is showing the exact same 1 fps behavior with the return code of -3. This camera appears to display correctly using the ffplay program. Please let me know if you need any additional information.

BogdanovKirill commented 4 years ago

hello, I need access to camera

BogdanovKirill commented 4 years ago

@kenrentz Thank you very much for acces to camera. It seems that poblem was resolved.

Guys, could you check 1.3.3 version please ?