sudo pkill vlc
sudo pkill python
sudo pkill acestream*

sudo /opt/acestream/acestream.start &



sleep 5
cd /home/pi/bitkodi/acestream-rpi/aceproxy/

python acehttp.py &
sleep 4

#wget http://127.0.0.1:8000/pid/b0ab000e277b6465107f353df09b4ac75af8d38d/stream.mp4 
#cvlc -vvv http://127.0.0.1:8000/pid/b0ab000e277b6465107f353df09b4ac75af8d38d/stream.mp4 --sout '#standard{access=http,mux=ts,dst=:8902/tv.asf}'
#cvlc -vvv http://kissfm-cires21-video.secure.footprint.net/hittv/master.m3u8 --sout '#standard{access=http,mux=ts,dst=:8902/tv.asf}'
#cvlc -vvv http://127.0.0.1:8000/pid/d2e1450cc3734653d1552fb217d39c53fdef30bc/stream.mp4 --sout '#standard{access=http,mux=raw,dst=:8902/tv.asf}'
cvlc -vvv http://127.0.0.1:8000/pid/$1/stream.mp4 --sout '#standard{access=http,mux=mpeg,dst=:8902/tv.asf}'

