Page 1 of 1

How can I record videostream to disc

Posted: 22 Mar 2012 11:49
by ankita
Hello,

I am using the VLC .net library in order to capture streams from camera and record them into files. I am using following code to open the capture device:

VlcMedia desc = Vlc.NewMedia(@"dshow://");
desc.AddOption(@":dshow-vdev=video device name");
desc.AddOption(@":dshow-video-input=0");

VlcPlayer.Load(desc);
& its working. Now I want to record the stream into file. For that I am using

desc.AddOption(@":sout=#transcode{vcodec=mp4v,vb=800,scale=1,channels=2,deinterlace}:standard{access=file,mux=ts,dst=C:\test.mpg}");

But this doesn't record any data.
Help will be very much appreciated.
Thank You.

Re: How can I record videostream to disc

Posted: 27 Mar 2012 07:54
by freesunshine
try
:duplicate{dst=std{access=file,mux=ts,dst=C:\test.mpg}}