0

I'm using libVLCSharp in my Windows Forms application.

For this I checked out these NuGet packages:

Here is my initialization code snippet:

private static string[] libVLCParams = { "--rtsp-tcp", "--verbose=2" };
private LibVLC libVLC;

private void Initialize() {
    Core.Initialize();
    libVLC = new LibVLC(libVLCParams);
}

I added a VideoView to my Form1, initialized a new MediaPlayer object for it, then to start the stream to play:

...
VideoView.MediaPlayer.Play(new Media(libVLC, sampleURI, FromType.FromLocation));
...

Here is my log regarding this stream playing: https://pastebin.com/UVD7Juk3

However the stream after the first valid picture corrupts and shows a full green screen:

enter image description here

When I try to play the same stream in VLC program (same PC, same video), it plays smooth and fine.

Here are my VLC settings:

enter image description here

enter image description here

I also have restarted the PC, and my stream sources, but no luck.

What cause this type of image distortion and how can I resolve it?

Daniel
  • 2,318
  • 2
  • 22
  • 53

0 Answers0