2
votes

I want to receive an RTSP stream from a Panasonic camera (Model WV-SPN531) and display the live video in my C# Form application.
If I use VLC and connect to "rtsp://IP_ADDRESS/MediaInput/h264/stream_1" the streaming works fine.
Codec: H264 - MPEG-4 AVC (part10) (h264)
Resolution: 1920x1080 (15 FPS)

I have tried this library, but it does not work: http://net7mma.codeplex.com/ .

I wrote to the developer of the library and I described the problem and he replied that: "There's not an available MPEG decoder in C# right now, not one which I know of immediately anyway."

Can you help me?

2
"not work" isn't a proper issue description, please elaborate. Possible reasons: failed to connect, failed to setup stream, improper data got, unrecognized format, etc. Even if it returns something like ERROR_UNSPECIFIED, it's better than simple "not work". Please also read instructions like catb.org/esr/faqs/smart-questions.htmlNetch
I wrote to the developer of the library and I described the problem and he replied that: "There's not an available mpeg decoder in c# right now, not one which I know of immediately anyway."user3607507
Well, if so, you can connect any native code based MPEG decoder using P/Invoke, but this effectively falls into C programming.Netch
go here and get the c# library libzplay.sourceforge.net/WELCOME.htmlKen
@StixO The "libZPlay" not support the RTSP.user3607507

2 Answers

1
votes

I have used this SDK to play RTSP video in C#

https://sourceforge.net/projects/onvifdm/files/%21sample_winform/

It uses a hosted executable to play the video but works very well

I also tested https://github.com/ZeBobo5/Vlc.DotNet before hand but the performance was a bit choppy compared with the above.

-1
votes

I am using the Datastead Rtsp source SDK to capture Panasonic, Axis and some other IP cameras.