I have a rtsp server that streams a video file encoded in h264 (RTP with Payload Type 96).
I am trying to use the VLCDotNet library https://vlcdotnet.codeplex.com,
I want to save the h264 frames into a video file.
My Code
This code plays the video on my PC, I want to save it to a file on my PC.
Code: Select all
private void StoreFile()
{
Vlc.DotNet.Core.VlcContext.LibVlcDllsPath = @"C:\Users\Ofek\Desktop\VideoLAN\VLC";
Vlc.DotNet.Core.VlcContext.Initialize();
media1 = new Vlc.DotNet.Core.Medias.LocationMedia("rtsp://192.168.30.11/1.mkv");
// Here I guess there should be some sort of Add Option method - to save the frames to a video file
VlcControl control = new VlcControl();
control.Media = media1;
control.Play();
}
thanks a lot!