Add files via upload

fix relinker and link extrapolator, default debug mode
This commit is contained in:
fenix-soft 2021-10-05 14:39:22 +02:00 committed by GitHub
parent 05ac24d674
commit 87f9641cdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 39 additions and 17 deletions

56
RAI5.sh
View File

@ -1,20 +1,42 @@
#!/bin/bash #!/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
#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" 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"
#Video --vid=2 'bitrate 2137033' (h264)
mpv --vid=2 "$surce"
rm p.txt
rm temp.txt
rm temp2.txt
rm temp3.txt