How can I record videostream to disc

This forum is about all development around libVLC.
ankita
New Cone
New Cone
Posts: 1
Joined: 22 Mar 2012 11:34

How can I record videostream to disc

Postby ankita » 22 Mar 2012 11:49

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.

freesunshine
Blank Cone
Blank Cone
Posts: 32
Joined: 18 Mar 2012 13:37

Re: How can I record videostream to disc

Postby freesunshine » 27 Mar 2012 07:54

try
:duplicate{dst=std{access=file,mux=ts,dst=C:\test.mpg}}


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests