How to record a video stream using libVLC and c#

This forum is about all development around libVLC.
Arlee
New Cone
New Cone
Posts: 3
Joined: 11 Aug 2009 04:36

How to record a video stream using libVLC and c#

Postby Arlee » 12 Aug 2009 04:56

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

henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

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

Postby henrymark » 13 Aug 2009 02:47

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"}

Arlee
New Cone
New Cone
Posts: 3
Joined: 11 Aug 2009 04:36

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

Postby Arlee » 13 Aug 2009 04:35

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

henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

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

Postby henrymark » 13 Aug 2009 05:24

You mean you can run on XP but can't on Vista? If you mean this, you must change the compile setting to x86.

tamiro44
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 15 Feb 2009 15:21

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

Postby tamiro44 » 13 Aug 2009 13:21

In version 1.0.0 you can record on the fly

gawady
Blank Cone
Blank Cone
Posts: 17
Joined: 27 Sep 2009 14:05

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

Postby gawady » 27 Sep 2009 14:08

Hoe can I record on the fly ? using the wrapper with v1.0.0 ??

thank u


Return to “Development around libVLC”

Who is online

Users browsing this forum: Bing [Bot] and 13 guests