Page 1 of 1

How to record a video stream using libVLC and c#

Posted: 12 Aug 2009 04:56
by Arlee
After browsing many,many posts here and elsewhere, and looking through sample code posts, I've yet to find an example of recording a video stream programatically using c# (that I can use successfully, anyway). I've seen the documentation regarding the use of "sout" parameter to direct a stream to a file as well as a display, but did also see elsewhere in the forum that this functionality is not supported in the latest VLC release.

I have used the various interop wrappers and can display the video stream with no problem and have also used the activeX control to display the stream, but the samples that have recording features do not work for me. I'm a newbie to VLC and to c#.

I'm using Visual c# Express 2008 and Vista Home Premium. Please help!

Arlee

Re: How to record a video stream using libVLC and c#

Posted: 13 Aug 2009 02:47
by henrymark
I think libVLC doesn't have API to start record. You just can use option to record stream, like --sout duplicate{access=file, mus=ts,dst="c:abc.ts"}

Re: How to record a video stream using libVLC and c#

Posted: 13 Aug 2009 04:35
by Arlee
Thanks for your response. I had already tried the technique you suggested, but could not get it to work with some sample libvlc wrapper code on a Vista based machine. It did work from the command line on the same machine, however. Trying a different wrapper on an XP based machine was successful. Not sure if it was a faulty code sample I was using originally or a change in operating system.

Arlee

Re: How to record a video stream using libVLC and c#

Posted: 13 Aug 2009 05:24
by henrymark
You mean you can run on XP but can't on Vista? If you mean this, you must change the compile setting to x86.

Re: How to record a video stream using libVLC and c#

Posted: 13 Aug 2009 13:21
by tamiro44
In version 1.0.0 you can record on the fly

Re: How to record a video stream using libVLC and c#

Posted: 27 Sep 2009 14:08
by gawady
Hoe can I record on the fly ? using the wrapper with v1.0.0 ??

thank u