STREAMING VIDEO WITH VLC IN C#

This forum is about all development around libVLC.
cp engg
New Cone
New Cone
Posts: 1
Joined: 14 Feb 2009 15:37

STREAMING VIDEO WITH VLC IN C#

Postby cp engg » 14 Feb 2009 16:26

STREAMING VIDEO WITH VLC IN C#

Hi,
I want to stream a video on lan using C# with vlc
I have tried the following code in C#, to stream video on localhost.
Can anybody send me the correct LibVlc class????????
Ive tried
http://csharpmagics.blogspot.com/2008/1 ... -cnet.html
but It doesn't work. :(
I need correct LIbVlc Class that will work. Also help me in these lines of code

string[] options ={ ":sout=#duplicate{dst=std{access=http,dst=127.0.0.1:8080}}" };
vlc.AddTarget(@"F:\video1.wmv", options);

The code I've used in Windows Form is:-

private void button1_Click(object sender, EventArgs e)
{

LibVlc vlc = new LibVlc();
vlc.Initialize();
vlc.VideoOutput = pictureBox1;
vlc.PlaylistClear();
string[] options ={

":sout=#duplicate{dst=std{access=http,dst=127.0.0.1:8080}}" };
vlc.AddTarget(@"F:\video1.wmv", options);
vlc.Play();

}
}

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

Re: STREAMING VIDEO WITH VLC IN C#

Postby tamiro44 » 16 Feb 2009 22:47

try in UDP:
":sout=#duplicate{dst=std {access=udp,mux=ts,dst=127.0.0.1:12345}}"

aya
New Cone
New Cone
Posts: 1
Joined: 01 Oct 2011 03:14

Re: STREAMING VIDEO WITH VLC IN C#

Postby aya » 01 Oct 2011 03:39

I've got another problem in the same code, a

if (m_iVlcHandle < m_strlasterror = "Failed to create VLC instance" strinitoptions="{">0 )

error is:
Error 3 Invalid expression term ')' C:\Users\mody\Documents\Visual Studio 2008\Projects\webcam\webcam\Program.cs 329 124 webcam

url:
http://libvlc.blogspot.com/


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 18 guests