Answer the question
In order to leave comments, you need to log in
How to decode h264 stream in c#?
Good day.
I am writing an application in C#/WPF. The application will be used on Windows 7/10.
There is a task to decode the h.264 stream coming over the network. RTSP is used as transport. What library can be used for this?
Decoded frames are needed for analytics and display on the form.
It doesn't matter to me whether the library implements only h264 decoding or else takes over the work with RTSP. Both options will work.
What I found on this topic:
1) The VideoCapture class from EmguCV - works, there are many additional features, but performance is not satisfactory. When decoding 1080p video, it loads the i3-6100 3 / 7GHz processor by 15-20%, while the original camera software gives a load of 5-10%
2)Decoding with Directshow - deprecated. It is not in Windows 10. The last DirectX that was included was 9.0 SDK Update
3) Microsoft Media Foundation - replaced Directshow, but the developers blog has not been updated since 2011 and it is not entirely clear whether it is alive or not. I also could not find libraries for c # using Microsoft Media Foundation.
4) Use wrappers over FFmpeg. Like FFmpeg.AutoGen
Don't Windows have "regular" tools for decoding video streams?
Answer the question
In order to leave comments, you need to log in
there are regular funds - but there is no sensible information on them.
option 4 will solve your problem. there is an example of decoding on github - CPU usage is low there and performance is acceptable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question