-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A little something to help me with RTMP offline playback in XBMC.
- Loading branch information
1 parent
610ec26
commit 1a29d24
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
#To use this with Kodi, copy this to /usr/bin/rtmpdump-cli. Then add the following to your playercorefactory.xml in the player section. | ||
# <player name="RTMPDump" type="ExternalPlayer" video="true"> | ||
# <filename>/usr/bin/rtmpdump-cli</filename> | ||
# <args>"{1}" &</args> | ||
# <forceontop>true</forceontop> | ||
# </player> | ||
rtmp=$(echo $1 | sed s'/ /\n/g' | head -n 1 ) | ||
playpath=$(echo $1 | sed s'/ /\n/g' | grep playpath= | sed s'/playpath=/'/g) | ||
swfurl=$(echo $1 | sed s'/ /\n/g' | grep swfUrl= | sed 's/swfUrl=//g') | ||
pageurl=$(echo $1 | sed s'/ /\n/g' | grep pageUrl= |sed 's/pageUrl=//g') | ||
live=$(echo $1 | sed s'/ /\n/g' | grep live=1 | sed s'/live=1/--live/g') | ||
|
||
# If you have trouble, uncomment the following line, and send me the output. I might be able to get it working. | ||
#xterm -hold -e echo "rtmpdump -r "$rtmp" --playpath "$playpath" -s "$swfurl" -p "$pageurl" -o "$HOME"/Videos/"$playpath".flv $live /n 1=$1" | ||
|
||
|
||
xterm -hold -e rtmpdump -r "$rtmp" --playpath "$playpath" -s "$swfurl" -p "$pageurl" -o "$HOME"/Videos/"$playpath".flv $live |