Tutorial: Live TV stream/transcoding using Enigma2/Dreambox
Posted: Wed Jan 08, 2014 2:56 pm
Hi community,
i am using an enigma2 settop-Box to stream Live TV towards Subsonic, transcode it and send it further towards a client:
Tutorial: http://forum.madsonic.org/viewtopic.php?f=5&t=916&hilit=live+tv
Channel lists are automatically synced from the box into Subsonic by cron using this script:
If you like what I did pls leave a comment.
Regards Ebeneezer
i am using an enigma2 settop-Box to stream Live TV towards Subsonic, transcode it and send it further towards a client:
Tutorial: http://forum.madsonic.org/viewtopic.php?f=5&t=916&hilit=live+tv
Channel lists are automatically synced from the box into Subsonic by cron using this script:
- Code: Select all
#!/bin/bash
# inurl: services.m3u input URL
# outpath: output directory
inurl=http://dm8000.private/web/services.m3u?bRef=1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3AFROM%20BOUQUET%20%22userbouquet.dbe00.tv%22%20ORDER%20BY%20bouquet
outpath="/Volumes/LaCie/iDocs TV Bouquets/iDocs TV"
cd "$outpath"
rm -f *.tv
curl "$inurl" -s | while read line
do
token=$(echo $line | cut -f1 -d,)
sender=$(echo $line | cut -f2 -d, | tr '/' ' ')
if [ "$token" == "#EXTINF:-1" ]; then
read line
printf "Madsonic Stream URL for $sender generated $(date)\n$line\n" > "$outpath/$sender.tv"
fi
done
If you like what I did pls leave a comment.
Regards Ebeneezer