Need help setting up HTTP streaming server

About encoding, codec settings, muxers and filter usage
Valk
New Cone
New Cone
Posts: 5
Joined: 25 Nov 2008 06:41

Need help setting up HTTP streaming server

Postby Valk » 13 Dec 2008 02:40

I've been trying to setup a http pass-thru http server using the C# .net wrapper for libVlc and so far everything i'm trying to do works except the command line to make it stream out.

At the moment when I try and stream a video I get a new Direct3D window created (the same as vlc uses) showing the video and no http stream going.

I'm currently using:

Code: Select all

vlcOptions.Add(":no-one-instance"); vlcOptions.Add("--plugin-path=" + @"C:\Program Files (x86)\VideoLAN\VLC" + @"\plugins"); vlcOptions.Add(":sout #duplicate{dst=standard{access=http,mux=ts,dst=" + outputUrl + "}}");
Any help with getting this working would be greatly appreciated since it's the last hurdle I need to fix (even if its a way to get better debugging information on what is happening).
As you can tell i'm just trying to get it working at the moment so all the paths are statically assigned.

Finally a quick note in case it confuses anyone vlcOptions is a List<String> inside my ConfigBuilder class which returns a String[] with all the values that is used in the constructor of my VideoLanClient object.

Valk
New Cone
New Cone
Posts: 5
Joined: 25 Nov 2008 06:41

Re: Need help setting up HTTP streaming server

Postby Valk » 13 Dec 2008 04:39

A small note.

I found this command line works in console but when I try to use it in the C# .net wrapper i'm having no luck.

vlc.exe -vvv rtsp://<ip>/stream1.0 :sout=#duplicate{dst=std{access=http,mux=ts,dst=<ip>:<port>/test}}

I tried the following with the .net wrapper

Code: Select all

vlcOptions.Add(":no-one-instance"); vlcOptions.Add("--plugin-path=" + @"C:\Program Files (x86)\VideoLAN\VLC" + @"\plugins"); if (outputUrl.StartsWith("http://")) outputUrl = outputUrl.Substring("http://".Length); // A bit lazy but I don't care at the moment. vlcOptions.Add(":sout=#duplicate{dst=std{access=http,mux=ts,dst=" + outputUrl + "}}");
I guess with the command line working this problem now deserves to goto the libVlc section, hopefully people who read that might see this also and help.

Anyway any ideas?

Valk
New Cone
New Cone
Posts: 5
Joined: 25 Nov 2008 06:41

Re: Need help setting up HTTP streaming server

Postby Valk » 13 Dec 2008 05:14

nevermind got it working. Needed to use --sout-all then it was all good :)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 15 guests