Compare commits

...

6 Commits

Author SHA1 Message Date
fenix-soft 74e2e54dd9
Add files via upload
fix script
2021-10-05 14:59:28 +02:00
fenix-soft 87f9641cdb
Add files via upload
fix relinker and link extrapolator, default debug mode
2021-10-05 14:39:22 +02:00
fenix-soft 05ac24d674
Add files via upload 2021-10-05 14:25:15 +02:00
fenix-soft eb875e8e7a
Add files via upload 2021-10-05 14:13:23 +02:00
fenix-soft 28599b0911
Add files via upload
fix relinker and video set
2021-10-05 14:10:09 +02:00
fenix-soft 87aa6e1af8
Add files via upload
fix rai1 relinker and fix video setting
2021-10-05 14:06:12 +02:00
6 changed files with 108 additions and 29 deletions

30
RAI1.sh
View File

@ -1,6 +1,8 @@
#!/bin/bash
# rai 1
wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2621467&output=45" -U "iphone" -O p.txt
# V1.1 20210905 Public relase
wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803&output=45" -U "iphone" -O p.txt
grep content p.txt >temp.txt
sed -e 's/<url type="content">//g' temp.txt >temp2.txt
cat temp2.txt
@ -8,7 +10,29 @@ sed -e 's/<\/url>//g' temp2.txt >temp.txt
dos2unix temp.txt
surce=`cat temp.txt`
echo $surce
mpv --hls-bitrate=max "$surce"
#max bitrate video
#mpv --hls-bitrate=max "$surce"
#Video --vid=1
mpv --vid=1 "$surce"
# comment for debug
rm p.txt
rm temp.txt
rm temp2.txt
# note: mpv video audio set exmple:
# Video --vid=1 'bitrate 2793078' (h264)
# (+) Video --vid=2 'bitrate 2137033' (h264)
# Video --vid=3 'bitrate 1365331' (h264)
# (+) Audio --aid=1 --alang=ita (*) (aac)
# Audio --aid=2 --alang=V.O (aac)
# Audio --aid=3 --alang=des (aac)
# Audio --aid=4 'bitrate 2793078' (aac)
# Audio --aid=5 'bitrate 2137033' (aac)
# Audio --aid=6 'bitrate 1365331' (aac)
#

13
RAI2.sh
View File

@ -1,4 +1,6 @@
#!/bin/bash
# V1.1 20210905 Public relase
wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=308718&output=45" -U "iphone" -O p.txt
grep content p.txt >temp.txt
@ -8,7 +10,14 @@ sed -e 's/<\/url>//g' temp2.txt >temp.txt
dos2unix temp.txt
surce=`cat temp.txt`
echo $surce
mpv --hls-bitrate=max "$surce"
#max bitrate video
#mpv2 --hls-bitrate=max "$surce"
#Video --vid=2 'bitrate 2137033' (h264)
mpv --vid=2 "$surce"
rm p.txt
rm temp.txt
rm temp2.txt
rm temp2.txt

12
RAI3.sh
View File

@ -1,4 +1,5 @@
#!/bin/bash
# V1.1 20210905 Public relase
wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=308709&output=45" -U "iphone" -O p.txt
grep content p.txt >temp.txt
@ -8,7 +9,14 @@ sed -e 's/<\/url>//g' temp2.txt >temp.txt
dos2unix temp.txt
surce=`cat temp.txt`
echo $surce
mpv --hls-bitrate=max "$surce"
#max bitrate video
#mpv2 --hls-bitrate=max "$surce"
#Video --vid=2 'bitrate 2137033' (h264)
mpv --vid=2 "$surce"
rm p.txt
rm temp.txt
rm temp2.txt
rm temp2.txt

11
RAI4.sh
View File

@ -1,4 +1,5 @@
#!/bin/bash
# RAI4.sh V1.2 20210905 Public relase
wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=746966&output=45" -U "iphone" -O p.txt
grep content p.txt >temp.txt
@ -8,7 +9,13 @@ sed -e 's/<\/url>//g' temp2.txt >temp.txt
dos2unix temp.txt
surce=`cat temp.txt`
echo $surce
mpv --hls-bitrate=max "$surce"
#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 temp2.txt

56
RAI5.sh
View File

@ -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
#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

View File

@ -1,15 +1,24 @@
#!/bin/bash
# rai news 24
#
## V1.2 20210905 Public relase
wget -d "http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=1&output=45" -U "iphone" -O p.txt
grep http p.txt >temp.txt
grep content 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"
#max bitrate video
#mpv --hls-bitrate=max "$surce"
#Video --vid=1
mpv --vid=2 "$surce"
rm p.txt
rm temp.txt
rm temp2.txt
rm temp2.txt