Forums » Tutorial and setups »
Failing VLC playlist creation scripts
Added by Cool Dale over 8 years ago
It seems that in the latest TVheadend the configuration data in
hts/.hts/tvheadend/input/dvb/networks
Is now compress! This make the Old scripts for creating VLC playlist failed.
For example you can
@#!/bin/bash- you must have installed jq (apt-get install jq)
- BEGIN CONFIG ###################
tvh_data_path="/home/hts/.hts"
OSEmu="192.168.1.10:17999"
profile="PowerVU"
userpass="pvu:pvu" - END CONFIG ###################
echo \#EXTM3U
grep -rnwl $tvh_data_path'/tvheadend/input/dvb/networks' -e '\"caid\": 3584' | while read -r services
do
enabled=$(/usr/bin/jq -c '.enabled' $services)
sid_dec=$(/usr/bin/jq -c '.sid' $services)
sid=$(printf '%x' $sid_dec)
desc=$(/usr/bin/jq -c -r '.networkname' ${services:0:-81}/config)/$(/usr/bin/jq -c -r '.frequency/1000' ${services:0:-42}/config)$(/usr/bin/jq -c -r '.polarisation' ${services:0:-42}/config)/$(/usr/bin/jq -c -r '.svcname' $services)
if [ "$enabled" = "true" ]
then
echo \#EXTINF:-1, $desc
echo http://$userpass@$OSEmu/stream/service/$(basename "$services")\?profile=$profile\&descramble=0\&emm=1:0:0:$sid
fi
done
@
Can somebody tell me what compression method/library is been used so that we can update the scripts. Thanks.
Replies (3)
RE: Failing VLC playlist creation scripts - Added by Joe User over 8 years ago
try this script instead:
#!/bin/bash # you must have installed jq (apt-get install jq) ############### BEGIN CONFIG ################### tvh_data_path="/home/hts/.hts" OSEmu="192.168.1.11:17999" profile="PowerVU" userpass="pvu:pvu" ############### END CONFIG ################### wget -O /tmp/services.json http://admin:admin@localhost:9981/api/mpegts/service/grid?limit=100000 echo \#EXTM3U entries=$(/usr/bin/jq -c '.total' /tmp/services.json) for (( service=0; service<= $entries; service++ )) do if [ $(/usr/bin/jq -c '.entries['$service'].caid' /tmp/services.json) = '"0E00:000000"' ] then enabled=$(/usr/bin/jq -c '.entries['$service'].enabled' /tmp/services.json) if [ "$enabled" = "true" ] then svcname=$(/usr/bin/jq -c -r '.entries['$service'].svcname' /tmp/services.json) uuid=$(/usr/bin/jq -c -r '.entries['$service'].uuid' /tmp/services.json) network=$(/usr/bin/jq -c -r '.entries['$service'].network' /tmp/services.json) multiplex=$(/usr/bin/jq -c -r '.entries['$service'].multiplex' /tmp/services.json) sid_dec=$(/usr/bin/jq -c '.entries['$service'].sid' /tmp/services.json) sid=$(printf '%x' $sid_dec) desc="$network/$multiplex/$svcname" echo \#EXTINF:-1, $desc echo http://$userpass@$OSEmu/stream/service/$uuid\?profile=$profile\&descramble=0\&emm=1\&:0:0:$sid fi fi done
Hint given here:[[https://tvheadend.org/issues/3730]]
RE: Failing VLC playlist creation scripts - Added by Ron L over 8 years ago
I don´t understand. Is this different than..
RE: Failing VLC playlist creation scripts - Added by Joe User over 8 years ago
Yes, this playlist is for connecting to TVHeadend through Oscam-emu's stream relay for decrypting powervu channels.