Page 1 of 1

Tutorial: Live TV stream/transcoding using Enigma2/Dreambox

PostPosted: Wed Jan 08, 2014 2:56 pm
by ebeneezer
Hi community,

i am using an enigma2 settop-Box to stream Live TV towards Subsonic, transcode it and send it further towards a client:

Bildschirmfoto 2014-01-08 um 15.23.03.png


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


Bildschirmfoto 2014-01-08 um 15.29.53.png


If you like what I did pls leave a comment.

Regards Ebeneezer 8)