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:
Create network(s)
Add network created to adapter
Define mux for your network
Scan new muxes
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
Create a pvu user with password pvu with PowerVU as streaming profile (or any name/password, but must replaced in further config, scripts, etc...)
Install either oscam-emu or osemu
Build your own, or download latest versions.
Since oscam-emu/osemu ignores the userassword in the url request, you must setup the userassword for TVHeadend in oscam-emu/osemu.
For OSEmu, add "-t <stream source user>:<stream source password>" to the command line:
And for oscam-emu, you have to add the userassword to the oscam.conf file in the streamrelay section:
To use with TVHeadend, you just need to create a URL something like:
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:
Enigma2 userbouquet:
BTW:
I left the userassword 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 userassword hash to enigma2/TVHeadend instead of making it an oscam-emu/osemu config option.
Basic steps to setup:
Install TVHeadend (latest version from nightly builds...)
For Debian:
Code:
echo deb https://dl.bintray.com/tvheadend/ubuntu master main | sudo tee -a /etc/apt/sources.list
apt-get update
apt-get install tvheadend
Create network(s)
Code:
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"
Add network created to adapter
Code:
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
Code:
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
Code:
Configuration -> DVB Inputs -> Networks
Select HBO (or whatever you entered above) and then press "Force Scan"
Create a PowerVU streaming profile with mpeg-ts pass through and enable PAT and SDT rewrite
Code:
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...)
Code:
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"
Install either oscam-emu or osemu
Build your own, or download latest versions.
Since oscam-emu/osemu ignores the userassword in the url request, you must setup the userassword for TVHeadend in oscam-emu/osemu.
For OSEmu, add "-t <stream source user>:<stream source password>" to the command line:
Code:
./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 userassword to the oscam.conf file in the streamrelay section:
Code:
[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:
Code:
http://pvu:[email protected]: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:
Code:
#!/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
Enigma2 userbouquet:
Code:
#!/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
BTW:
I left the userassword 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 userassword hash to enigma2/TVHeadend instead of making it an oscam-emu/osemu config option.