Changes between Version 32 and Version 33 of Documentation/VLC
- Timestamp:
- May 4, 2010, 2:15:45 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/VLC
v32 v33 13 13 14 14 === Setting up / installing === 15 The ariba framework is currently only available on linux and therefor the plugin is linux-only at the moment.16 17 A quick and simple way for testing but also us eing the plugin are the precompiled libraries. In this section we describe how to set up an ubuntu 10.04 for this purpose. This should be adoptable to other linux distributions in an easy manner. Instructions how to compile the plugin will be provided in the Developers Guide below.15 The ariba framework is currently only available for Linux and therefor the plugin is linux-only at the moment. 16 17 A quick and simple way for testing but also using the plugin are the precompiled libraries. In this section we describe how to set up an Ubuntu 10.04 for this purpose. This should be adoptable to other Linux distributions easily. Instructions how to compile the plugin will be provided in the Developers Guide below. 18 18 19 19 For running the vlc-mcpo plugin a number of packages have to be installed: … … 32 32 64bit linux: [ coming soon ] 33 33 34 Unpack the archive to $HOME. (If you choose another location, you have to adjust the path in the running script.) 35 36 Now you can link the running-script to $HOME/bin or /usr/bin via: [[BR]] 37 cd $HOME/bin [[BR]] 34 Unpack the archive to {{{$HOME}}}. (If you choose another location, you have to adjust the path in the running script.) 35 36 Now you can link the running-script to {{{$HOME/bin}}} or {{{/usr/bin}}} via: [[BR]] 37 {{{ 38 cd $HOME/bin 38 39 ln -s $HOME/vlc-mcpo/run.sh vlc-mcpo 40 }}} 39 41 40 42 Or just run from where it is. 41 43 42 (Note: If you just created the $HOME/binfolder, you have to start a new bash.)44 (Note: If you just created the {{{$HOME/bin}}} folder, you have to start a new bash.) 43 45 (Note: The following instructions assume you created one of links described above.) 44 46 45 46 47 === A first test: === 48 47 49 Now it's time for a first simple test. 48 50 49 Run two instanced of the modified vlc-players:[[BR]] 50 ° LANG=en_US.UTF-8 vlc-mcpo & LANG=en_US.UTF-8 vlc-mcpo & [[BR]] 51 (Note: "LANG=en_US.UTF-8" sets the language of these two vlc-instances on English for easier following the instructions below.) 52 51 Run two instances of the modified vlc-players:[[BR]] 52 {{{ 53 LANG=en_US.UTF-8 vlc-mcpo & LANG=en_US.UTF-8 vlc-mcpo & 54 }}} 55 (Note: {{{LANG=en_US.UTF-8}}} sets the language of these two vlc-instances on English for easier following the instructions below.) 53 56 54 57 Two vlc-windows should open, let's call them [S] and [R]. 55 58 56 ° On [R] please click: Media > Open Network Stream... [[BR]]57 ° Then choose: Protocol: »MCPO« (Note: If you can only see protocols like: HTTP, HTTPS, UDP, etc but no MCPO then the plugin wasn't load into your vlc. Please refer to the trouble shooting section in this case.)[[BR]]58 ° The address field should now look like this: 1234:localhost:5000[[BR]]59 ° Press »play«. 60 61 ° Continuing on [S], click: Meda > Streaming... [[BR]]62 ° Add a video file. (For a first test we recommend the test-video [coming soon], or at least a video you're successfully able to stream via UDP. Just eliminate sources of error not connected to the vlc-mcpo plugin.)[[BR]]63 ° Press »Stream«.[[BR]]64 ° Press »Next«. [[BR]]65 ° Choose »MCPO« and press »Add«. [[BR]]66 ° Now you can see: Source: Port: 5000; Destination: Address: localhost, Port: 1234[[BR]]67 ° Disable transcoding and press »Stream«.[[BR]]68 ° After a few seconds you should see the video in [R]. 69 59 * Server side [S] 60 * On [R] please click: Media > Open Network Stream... [[BR]] 61 * Then choose: Protocol: »MCPO« (Note: If you can only see protocols like: HTTP, HTTPS, UDP, etc but no MCPO then the plugin wasn't load into your vlc. Please refer to the trouble shooting section in this case.) [[BR]] 62 * The address field should now look like this: {{{1234:localhost:5000}}} [[BR]] 63 * Press »play«. 64 * Receiver side [R] 65 * Continuing on [S], click: Meda > Streaming... [[BR]] 66 * Add a video file. (For a first test we recommend the test-video [coming soon], or at least a video you're successfully able to stream via UDP. Just eliminate sources of error not connected to the vlc-mcpo plugin.) [[BR]] 67 * Press »Stream«. [[BR]] 68 * Press »Next«. [[BR]] 69 * Choose »MCPO« and press »Add«. [[BR]] 70 * Now you can see: Source: Port: 5000; Destination: Address: localhost, Port: 1234 [[BR]] 71 * Disable transcoding and press »Stream«. [[BR]] 72 * After a few seconds you should see the video in [R]. 70 73 71 74 === Usage === 72 75 In this section we describe the parameters of the mcpo-vlc plugin and some usage scenarios which demonstrate the strength of the mcpo approach. 73 76 74 Mcpo-vlc uses a spontaneous virtual network (SpoVNet) for distributing the video content. Each SpoVNet have to consist of 0-1 senders and 0-N receivers. The connection procedure does not depend on the role (sender/receiver) one instance has. This can confuse a little in the beginning, as on most streaming protocols the role defines whether one instance is client or server. 75 77 Mcpo-vlc uses a Spontaneous Virtual Network (SpoVNet) for distributing the video content. Each SpoVNet have to consist of 0-1 senders and 0-N receivers. The connection procedure does not depend on the role (sender/receiver) one instance has. This can confuse a little in the beginning, as on most streaming protocols the role defines whether one instance is client or server. 76 78 77 79 ==== Parameters ==== 78 The mcpo-vlc plugin takes three connection parameters. source-port:destination-address:destination-port (e.g. 1234:localhost:5000) 79 80 The ''source-port'' provides an entry point for other instances to the SpoVNet our instance is in (or will be in). 81 To access this entry point ''destination address'' and ''destination port'' must be set on the ip-address (or domain name) and source-port of an instance in the targeted SpoVNet. 80 81 The mcpo-vlc plugin takes three connection parameters. {{{source-port:destination-address:destination-port}}} (e.g. {{{1234:localhost:5000}}}) 82 83 The {{{source-port}}} provides an entry point for other instances to the SpoVNet our instance is in (or will be in). 84 To access this entry point {{{destination address}}} and {{{destination port}}} must be set on the IP address (or domain name) and {{{source-port}}} of an instance in the targeted SpoVNet. 82 85 83 86 An instance which has not connected to such an entry point makes up a SpoVNet with only itself in it. 84 87 85 86 88 ==== Creating a SpoVNet ==== 89 87 90 At first we need an initial SpoVNet, consisting of a single mcpo-vlc instance. This instance can either be server or client but must be accessible from (at least) the second instance. (Means, it mustn't be blocked by a firewall or NAT.) On the first instance we have to set the source-port. Destination-address and -port can be set but as long as there is no other instance listening there, setting this parameters has no effect. 88 91