Skip to content

Instantly share code, notes, and snippets.

@anu1097
Created March 2, 2017 19:45
Show Gist options
  • Save anu1097/a8c443c847b66c12ea95e8ef3407e8b9 to your computer and use it in GitHub Desktop.
Save anu1097/a8c443c847b66c12ea95e8ef3407e8b9 to your computer and use it in GitHub Desktop.
# !/bin/bash/
cd ~/p2psp-console/bin/
echo "Killing all VLC instances (sources and listeners)"
killall vlc
sleep 1
echo "Create two sources"
cvlc ~/Videos/Big_Buck_Bunny_small.ogv --sout "#std{access=shout,mux=ogg,dst=source:hackme@localhost:8000/BBBs.ogv}" --loop &
sleep 1
cvlc ~/Videos/chi84_14_m4.ogv --sout "#std{access=shout,mux=ogg,dst=source:hackme@localhost:8000/LLL.ogv}" --loop &
sleep 1
echo "Check the infrastructure"
firefox http://localhost:8000 2> /dev/null &
sleep 10
echo "Create two listeners"
cvlc http://localhost:8000/BBBs.ogv 2> /dev/null &
cvlc http://localhost:8000/LLL.ogv 2> /dev/null &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment