Download P2PSP

Updated: Saturday, 31 January 2015 17:30

You can get a working version of the P2PSP protocol. At the present time, there is a working implementation of the DBS written in Python and available at GitHub.

  • Download:
    1. git clone https://github.com/P2PSP/p2psp.git

  • Help!:
    1. cd p2psp/src  
    2. ./splitter.py --help  
      ./peer.py --help  
      less ../doc/P2PSP.md

  • Watch the default channel (150.214.150.68:4552):
            1. cd p2psp/tools
            2. ./play.sh

    OR
     
    1. cd p2psp/src  
    2. xterm -e "./peer.py --splitter_addr 150.214.150.68" &  
    3. vlc http://localhost:9999 &

  • Watch a different channel (150.214.150.68:4554):
    1. cd p2psp/src  
    2. xterm -e "./peer.py --splitter_addr 150.214.150.68 --splitter_port 4554" &  
    3. vlc http://localhost:9999 &

  • Create a local team (all running in the local host) and watch the default channel (using DBS): 
    • Using DBS:cd p2psp/src  
      1. xterm -e "./splitter.py --source_addr 150.214.150.68 --source_port 4551 --channel BBB-134.ogv" &  
      2. xterm -e "./peer.py --use_localhost" & # Monitor  
      3. vlc http://localhost:9999 & Monitor’s player  
      4. xterm -e "./peer.py --use_localhost --player_port 10000" & # Peer  
      5. vlc http://localhost:10000 & Peer’s player
    • Using IMS:cd p2psp/src  
      1. xterm -e "./splitter.py --source_addr 150.214.150.68 --source_port 4551 --channel BBB-134.ogv --mcast" &  
      2. xterm -e "./peer.py" & # Monitor  
      3. vlc http://localhost:9999 & # Monitor’s player  
      4. xterm -e "./peer.py --player_port 10000" & # Peer  
      5. vlc http://localhost:10000 & Peer’s player

  • Test everything in local (including the source):
    1. cd p2psp/src  
    2. wget http://upload.wikimedia.org/wikipedia/commons/7/79/Big_Buck_Bunny_small.ogv  
    3. vlc Big_Buck_Bunny_small.ogv --sout "#duplicate{dst=standard{mux=ogg,dst=,access=http}}" &  
    4. xterm -e "./splitter.py --source_port 8080" &  
    5. xterm -e "./peer.py --use_localhost" &  
    6. vlc http://localhost:9999 &  
    7. xterm -e "./peer.py --use_localhost --player_port 10000" &  
    8. vlc http://localhost:10000 &

  • Run the splitter and the monitor in one host and a peer in another host: 
    • In the splitter side (192.168.15.4):
      1. xterm -e "./splitter.py --source_addr 150.214.150.68 --source_port 4551 --channel BBB-134.ogv" &  
      2. xterm -e "./peer.py --splitter_addr 192.168.15.4" &  
      3. vlc http://localhost:9999 &
    • In the peer side (192.168.15.5, for example):
      • xterm -e "./peer.py --splitter_addr 192.168.15.4" &  
      • vlc http://localhost:9999 &

You can get the other branches code in https://code.launchpad.net/p2pspAlternatively, you can join to development team and start being part of P2PSP Team, request at https://launchpad.net/~p2psp/+ join.