Created
March 2, 2017 19:45
-
-
Save anu1097/a8c443c847b66c12ea95e8ef3407e8b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/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