I have been using TVHeadend (instead of MuMuDVB) for two months now. I had to make some patches to oscam-emu/osemu and to tvheadend to get it to work. But, now no patches are needed since now the functionality is implemented in the latest TVHeadend.
Basic steps to setup:
Install TVHeadend (latest version from nightly builds...)
For Debian:
echo deb https://dl.bintray.com/tvheadend/ubuntu master main | sudo tee -a /etc/apt/sources.list
apt-get update
apt-get install tvheadend
(You can use this guide for help with setting up TVHeadend: http://linuxsat-support.com/showthread.php?t=78286)
Create network(s)
Configuration -> DVB Inputs -> Networks -> add
Type: DVB-S network
Network name: HBO (or whatever appropriate...)
Network discovery: unchecked
Skip initial scan: checked
Use service IDs as channel numbers: (up to you, can leave default)
Ignore provider's channel numbers: (up to you, can leave default)
SAT>IP source number: 0 (leave default)
Pre-defined muxes: leave default (unset) we will create manually
Orbital position: 4W : Amos 2/3
Leave other defaults and press "create"
Display More
Add network created to adapter
Configuration -> DVB Inputs -> TV adapters -> (your adapter) -> Parameters
(varies depending on your physical setup, ie motor/diseqc swithces. etc...)
Under Basic Settings add your new network
Define mux for your network
Configuration -> DVB Inputs -> Muxes -> add
Network: HBO (or whatever you entered above)
Delivery system: DVB-S
Frequency: 10935000
Symbol rate: 13750000
Polarization: H
Modulation: QPSK
FEC: 5/6
Leave other defaults and press "create"
Scan new muxes
Configuration -> DVB Inputs -> Networks
Select HBO (or whatever you entered above) and then press "Force Scan"
Hopefully if you go now to Services, you should see the channels from the mux...
Create a PowerVU streaming profile with mpeg-ts pass through and enable PAT and SDT rewrite
Configuration -> Stream -> Streaming Profiles -> Add
Type: MPEG-TS Pass-thru/built-in
Enabled: (check)
Profile Name: PowerVU (or any name, but must replaced in further config, scripts, etc...)
Rewrite PMT: unchecked
Rewrite PAT: checked
Rewrite SDT: checked
Rewrite EIT: unchecked
Leave other defaults and press "create"
Create a pvu user with password pvu with PowerVU as streaming profile (or any name/password, but must replaced in further config, scripts, etc...)
Configuration -> Users -> Access Entries -> add
Enabled: checked
Username: pvu
Streaming: checked
Advanced Streaming: checked
Streaming profiles: check "PowerVU"
Leave other defaults and press "create"
Configuration -> Users -> Passwords -> add
Enabled: checked
Username: pvu
Password: pvu
Press "create"
Display More
Install either oscam-emu or osemu
Build your own, or look here for latest versions: http://linuxsat-support.com/forumdisplay.php?f=1230
Since oscam-emu/osemu ignores the user:password in the url request, you must setup the user:password for TVHeadend in oscam-emu/osemu.
For OSEmu, add "-t <stream source user>:<stream source password>" to the command line:
./OSEmu -a user:pass -p1234 -s tvheadendhostip -r 9981:17999 -c /path/to/PowerVU_keyfile -b -t pvu:pvu
And for oscam-emu, you have to add the user:password to the oscam.conf file in the streamrelay section:
[streamrelay]
stream_source_port = 9981
stream_source_auth_user = pvu
stream_source_auth_password = pvu
To use with TVHeadend, you just need to create a URL something like:
http://pvu:pvu@192.168.1.10:17999/stream/service/5207215882cb76f456a5d65ecfba2124?profile=PowerVU&descramble=0&emm=1:0:0:4
Where the last number is the sid (srvid/service id) of the channel in hex.
Here are some scripts (original base from B C at TVHeadend forum) modified to create vlc playlists and userbouquets for use with enigma2.
VLC playlist:
#!/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
Display More
Enigma2 userbouquet:
#!/bin/bash
# you must have installed jq (apt-get install jq)
############### BEGIN CONFIG ###################
tvh_data_path="/home/hts/.hts"
OSEmu="192.168.1.10%3A17999"
profile="PowerVU"
userpass="pvu%3Apvu"
############### END CONFIG ###################
echo \#NAME PowerVU Channels
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 \#SERVICE 1:0:1:$sid:0:0:0:0:0:0:http%3A//$userpass@$OSEmu/stream/service/$(basename "$services")\?profile=$profile\&descramble=0\&emm=1%3A0%3a0%3A$sid:$desc
echo \#DESCRIPTION $desc
fi
done
Display More
BTW:
I left the user:password in the URL in the scripts because in the future I would like to change oscam-emu/osemu so it parses the http request and passes on the user:password hash to enigma2/TVHeadend instead of making it an oscam-emu/osemu config option.
Attached are the binaries I am currently using, the scripts and an example oscam.conf...
1# ls -al tvheadend_files/
total 16769
drwxrwxrwx 1 root root 472 Nov 20 15:48 .
drwxrwxrwx 1 root root 196608 Nov 20 15:44 ..
-rwxrwxrwx 1 root root 877 Nov 20 15:48 oscam.conf
-rwxrwxrwx 1 root root 1221536 Nov 20 15:46 oscam-svn11158-pivovar-x86_64-webif-oscam-emu-patched
-rwxrwxrwx 1 root root 56 Oct 30 02:06 osemu.sh
-rwxrwxrwx 1 root root 15407496 Nov 20 15:46 tvheadend
-rwxrwxrwx 1 root root 1086 Nov 18 02:15 tvheadend_pvu_userbouquet.sh
-rwxrwxrwx 1 root root 1019 Nov 18 02:01 tvheadend_pvu_vlc_m3u.sh
-rwxrwxrwx 1 root root 13011 Nov 17 17:25 userbouquet.pvu.tv
Display More