Page 1 of 1

Playing a video over LAN

Posted: 07 Apr 2009 16:47
by jstuardo
Hello,

I have a question concerning network bandwidth usage when VideoLan server is used.

In http://csharpmagics.blogspot.com/ I found the following server code:

Code: Select all

LibVlc vlc = new LibVlc(); vlc.Initialize(); vlc.VideoOutput = pictureBox1; vlc.PlaylistClear(); string[] Options=new string[] { ":sout=#duplicate{dst=display,dst=std {access=udp,mux=ts,dst=224.100.0.1:1234}}" }; vlc.AddTarget("c:\\1.flv", Options); vlc.Play();
And the following client side code:

Code: Select all

LibVlc vlc = new LibVlc(); vlc.Initialize(); vlc.VideoOutput = pictureBox1; vlc.PlaylistClear(); string[] options = { ":sout=#duplicate{dst=display,dst=std{access=file,mux=asf,dst=\"F:\\My-Output-Video-Filename.asf\"}}" }; vlc.AddTarget("udp://@224.100.0.1:1234", options); vlc.Play();
The question is, when multiple clients has to display the video, the network bandwidth may work at full capacity. Is there a way to configure VLC so that the video (or the playlist) is copied locally first and after that, the videos start playing? is that already implemented or do I have to develop my own copy routine?

Thanks in advance
Jaime

Re: Playing a video over LAN

Posted: 07 Apr 2009 21:13
by RĂ©mi Denis-Courmont
Duh? Multicast bandwidth is independent of how many receivers there are.

Re: Playing a video over LAN

Posted: 07 Apr 2009 22:06
by jstuardo
Duh? Multicast bandwidth is independent of how many receivers there are.
Yes, but I don't want to broadcast the same video to all receivers.

I want to have a server that broadcast 1 video to differents clients.

This is the complete scenario, using only 4 clients for simplicity, let's name them A, B, C and D.

I want to configure that Video X to be received by A and B. Video Y to be received by C and D. In that case, 2 videos are being transmited over network, so that bandwidths are being added.

If that is not handle automatically by VideoLan, I will think about programming a server whose only job is to transmit videos when clients request them. Clients store them locally and then, by using VideoLan API's to develop an application to show the videos. That's the solution I was thinking about. Looks simple at the first glance but I would simplify even more if VideoLan already provide such functionality.

Thanks
Jaime

Re: Playing a video over LAN

Posted: 25 Apr 2009 18:17
by tundewonder
Yes, you have to write ur own server functionalities