Hi,
I am trying to play a video using VLC in C#.
The code is as below,
private void ButtonPlayVideo(object sender, RoutedEventArgs e)
{
Vlc.DotNet.Core.Medias.MediaBase media
= new Vlc.DotNet.Core.Medias.LocationMedia("rtsp://IP address:8554/live.ts");
media.AddOption(":sout=#transcode{vcodec=theo,vb=800, scale=1,acodec=flac,ab=128,channels=2,samplerate=44100}:std{access=file,mux=ogg, dst=D:\\Videos\\Demo.mp4}");
myVlcControl.Media = media;
myVlcControl.Play();
}
When I play this video with the same address , directly from VLC (using option Open Network Stream) it runs successfully. But when I try to play from c# code , its not running. Also ,my VLC log is showing all buffering is complete.
Whats going wrong.Please help?
Thanks in advance.