Playing a video over LAN

This forum is about all development around libVLC.
jstuardo
New Cone
New Cone
Posts: 8
Joined: 07 Apr 2009 16:07

Playing a video over LAN

Postby jstuardo » 07 Apr 2009 16:47

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Playing a video over LAN

Postby Rémi Denis-Courmont » 07 Apr 2009 21:13

Duh? Multicast bandwidth is independent of how many receivers there are.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jstuardo
New Cone
New Cone
Posts: 8
Joined: 07 Apr 2009 16:07

Re: Playing a video over LAN

Postby jstuardo » 07 Apr 2009 22:06

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

tundewonder
Blank Cone
Blank Cone
Posts: 14
Joined: 26 Jan 2008 00:30

Re: Playing a video over LAN

Postby tundewonder » 25 Apr 2009 18:17

Yes, you have to write ur own server functionalities


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 21 guests