Falls irgendwer auch gern Internet-Radio hört und den VDR dafür nutzen möchte, hier meine Konfiguration.
Benötigt wird: VDR, vlc 3, iptv und radio Plugin.
Zeile eines Senders aus channels.conf, siehe Doku iptv:
frisky-radio;IPTV:11:S=0|P=0|F=EXT|U=vlc2iptv|A=11:I:0:0:128=@4:0:0:2:0:0:0
Die zugehörige stream Konfiguration
/etc/vdr/plugins/iptv/vlcinput/frisky-radio.conf
URL="http://stream2.friskyradio.com:8000/frisky_mp3_hi"
Modifikation des vlc2iptv script
/usr/share/vdr/plugins/iptv/vlc2iptv
Code
LC_NUMERIC=C vlc "${URL}" \
--sout "#transcode{vcodec=mp2v$RESIZE_OPTIONS,acodec=mpga,vb=${VIDEO_BITRATE},ab=${AUDIO_BITRATE}}:standard{access=udp,mux=ts{pid-video=${VPID},pid-audio=${APID},pid-spu=${SPID}},dst=127.0.0.1:${PORT}}" \
--intf dummy -vvv 2>&1 | tee /tmp/vlc.log \
&
Script zum Auslesen der Streaminfos:
/usr/share/vdr-plugin-radio/radioinfo-0-128
Bash
#!/bin/bash
# iptv vlc
# $1 = outfile
LOGFILE=/tmp/vlc.log
### Variabel
Name="IPTV VLC"
###
# get last Artist/Title
artist=`cat ${LOGFILE} | grep 'Icy-Name' | awk "-F[:]" '{print $3}' | tail -n 1`
#title=`cat ${LOGFILE} | grep 'New Title' | awk "-F[=]" '{print $2}' | tail -n 1`
title=`cat ${LOGFILE} | grep 'Icy-Title' | awk "-F[=]" '{print $2}' | tail -n 1`
genre=`cat ${LOGFILE} | grep 'Icy-Genre' | awk "-F[:]" '{print $3}' | tail -n 1`
quality=`cat ${LOGFILE} | grep 'icy-br' | awk "-F[:]" '{print $4}' | tail -n 1`
website=`cat ${LOGFILE} | grep 'icy-url' | awk "-F[:]" '{print $3}' | tail -n 1`
streamurl=`cat ${LOGFILE} | grep 'http access debug'|grep 'proxy for' | awk "-F[ ]" '{print $8}' | tail -n 1`
# temp. no Info
artist=${artist:='k.A.'};
title=${title:='k.A.'}
genre=${genre:='k.A.'}
quality=${quality:='k.A.'}
website=${website:='k.A.'}
streamurl=${streamurl:='k.A.'}
# write...
#if [ $1 ]; then
echo "$Name" > $1
echo "$quality kBr $artist" >> $1
echo "$title" >> $1
echo "$title|$quality kBr|$name" >> $1
#else
# echo "$Name: Interpret/Titel = $artist / $title"
#fi
Display More
Fazit:
Wenn wer eine andere funktionstüchtige Variante mit VDR hat, immer her damit.