Storing RTSP to a file location
c#, rtsp, vlc, winforms
Solution
Here is the code:
Vlc.DotNet.Core.Medias.MediaBase media1
= new Vlc.DotNet.Core.Medias.PathMedia("rtsp://192.168.137.73:554/live.sdp");
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:\\123.mp4}");
VlcControl control = new VlcControl();
control.Media = media;
control.Play();
Problem
I am able to stream an rtsp on windows 7 64 bit machine through C# Winform application. This is the library i used - VLCDotNet and here is the code sample to play the RTSP stream: ``` LocationMedia media = new LocationMedia(@"rtsp://192.168.137.73:554/live.sdp"); vlcControl1.Media = media; vlcControl1.Play(); ``` I would like to store the streams to a file in my PC on a button click and stop the same with another button. How do i achieve this?