Add files via upload
fix relinker and link extrapolator, default debug mode
This commit is contained in:
parent
05ac24d674
commit
87f9641cdb
54
RAI5.sh
54
RAI5.sh
|
@ -1,20 +1,42 @@
|
|||
#!/bin/bash
|
||||
# rai 5
|
||||
#
|
||||
# RAI5.sh V1.3 (debug mode) 20210905 Public relase
|
||||
#
|
||||
# note: the debug mode in this script is necessary because the rai relinker of this channel changes often. The video presets change constantly and are not consistent with the bitrate streams of the other channels. The extrapolation format changes often, you may have it in xml format (sometimes even poorly formatted) or in json. The debug mode is necessary to quickly understand where the problem lies in the event of a malfunction!
|
||||
|
||||
#----- old script
|
||||
#wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=395276&output=45" -U "iphone" -O p.txt
|
||||
#grep http p.txt >temp.txt
|
||||
#sed -e 's/<url type="content">//g' temp.txt >temp2.txt
|
||||
#cat temp2.txt
|
||||
#sed -e 's/<\/url>//g' temp2.txt >temp.txt
|
||||
#dos2unix temp.txt
|
||||
#surce=`cat temp.txt`
|
||||
#echo $surce
|
||||
|
||||
|
||||
wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=395276&output=45" -U "iphone" -O p.txt
|
||||
echo " "
|
||||
echo "DEBUG MODE...start! extract media url.. "
|
||||
grep http p.txt >temp.txt
|
||||
sed -e 's/<url type="content">//g' temp.txt >temp2.txt
|
||||
echo " "
|
||||
cat temp2.txt
|
||||
echo " "
|
||||
sed -e 's/<\/url>//g' temp2.txt >temp3.txt
|
||||
echo " "
|
||||
cat temp3.txt
|
||||
echo " "
|
||||
echo " "
|
||||
grep hls temp3.txt >temp.txt
|
||||
|
||||
echo " "
|
||||
dos2unix temp.txt
|
||||
surce=`cat temp.txt`
|
||||
echo " "
|
||||
echo "Find_Media_Url: "$surce
|
||||
echo " "
|
||||
echo "DEBUG MODE END.. start play stream.. "
|
||||
echo " "
|
||||
|
||||
#max bitrate video
|
||||
#mpv --hls-bitrate=max "$surce"
|
||||
#rm p.txt
|
||||
#rm temp.txt
|
||||
#rm temp2.txt
|
||||
#----- old script
|
||||
|
||||
# temp fix for work!
|
||||
mpv "http://b2everyrai-lh.akamaihd.net/i/rai5_1@182695/index_1200_av-b.m3u8"
|
||||
#Video --vid=2 'bitrate 2137033' (h264)
|
||||
mpv --vid=2 "$surce"
|
||||
|
||||
rm p.txt
|
||||
rm temp.txt
|
||||
rm temp2.txt
|
||||
rm temp3.txt
|
||||
|
|
Loading…
Reference in New Issue