sopcast updated Feb 2014

pull/4/head
gotbletu 10 years ago
parent 5643b53a06
commit e9d9058a99

@ -1,6 +1,9 @@
Notes for video: http://www.youtube.com/watch?v=Dm7cFjhzgHo Notes for video: http://www.youtube.com/watch?v=Dm7cFjhzgHo
add to ~/.bashrc or ~/.zshrc and reload your shell
#-------- Sopcast CLI {{{ #-------- Sopcast CLI {{{
#------------------------------------------------------ #------------------------------------------------------
# http://forum.wiziwig.eu/forums/14-Sopcast # http://forum.wiziwig.eu/forums/14-Sopcast
@ -19,7 +22,7 @@ SP_VIDPLAYER=cvlc
# SP_VIDPLAYER=mplayer # SP_VIDPLAYER=mplayer
# SP_VIDPLAYER=(mplayer -cache 1000) # SP_VIDPLAYER=(mplayer -cache 1000)
# wait X seconds to stablize channel (make it longer if u got slower connection) # wait X seconds to stabilize channel (make it longer if u got slower connection)
SP_SLEEP=15 SP_SLEEP=15
# sopcast port and player port # sopcast port and player port
@ -29,7 +32,7 @@ SP_PLAYER_PORT=55051
# manually kill sopcast (sometimes it doesnt exit properly and still uses bandwidth in the background) # manually kill sopcast (sometimes it doesnt exit properly and still uses bandwidth in the background)
sppc-kill() { killall sp-sc ;} sppc-kill() { killall sp-sc ;}
# kills existing connection, starts a new connection, sleep X sec to stablize the stream, waits to player to exit and kill itself # kills existing connection, starts a new connection, sleep X sec to stabilize the stream, waits to player to exit and kill itself
sppc() { sppc() {
killall sp-sc &>/dev/null killall sp-sc &>/dev/null
(sp-sc "$1" $SP_LOCAL_PORT $SP_PLAYER_PORT &>/dev/null &) (sp-sc "$1" $SP_LOCAL_PORT $SP_PLAYER_PORT &>/dev/null &)

Loading…
Cancel
Save