Difference between revisions of "Dreambox-NetworkRecorder"

From MythTV Official Wiki
Jump to: navigation, search
(Setting up VLC in daemon mode)
(Creating the .m3u files)
Line 113: Line 113:
 
  #EXTMYTHTV:xmltvid=2.sfdrs.ch
 
  #EXTMYTHTV:xmltvid=2.sfdrs.ch
 
  udp://MYTHBACKEND_IP:'''1236'''
 
  udp://MYTHBACKEND_IP:'''1236'''
 +
 +
Take care that the UDP Ports are corresponding to VLC configuration. The Channel Number 1,2 should also correspond to the VLC Stream Name.
 +
 +
VLC Config: D1_1 -> dreambox.m3u: 0,1
  
 
==== Add the IP/TV Network Recorder ====
 
==== Add the IP/TV Network Recorder ====

Revision as of 11:21, 4 January 2010

Description

With this document i would like to help how to connect one or more dreamboxes (Dreambox/Enigma2 DVB receiver) as a "network recorder/FreeBox" to MythTV. In this configuration the dreambox acts as a tunercard in the MythTV enviroment.

Requirements

  • A running MythTV installation (I tested it with 0.21 + 0.22)
  • One or more dreamboxes with Enigma2 OS/Firmware
  • Skills to install and configure scripts on linux

Base Facts

  • The dreambox has the ability to stream a TV-Channel over http protocol.
  • MythTV offers an IP/TV Network Recorder called FREEBOX.
  • IP/TV Network Recorder supports UDP and RTSP protocols, but not HTTP streaming!
  • MythTV supports external channel change script
  • VLC is able to read the http stream and send it over udp to the MythTV Network recorder.

In theory, with the above it should be possible to implement everything we need.

Installation/Configuration

Create a directory on your MythBackend to store most of your work. Example: /opt/dreambox

Configure the dreamboxes

Make sure that your dreambox has a static ip-address in your network. On the webinterface of the dreambox you will find the streaming urls for each channel you want to add.

Example URL: http://DREAMBOX_IP:8001/1:0:1:140:39:1:FFFF0222:0:0:0:

Feel free to test it with a VLC player.

Setting up VLC in daemon mode

Create a vlm config file for the vlc daemon. Example: /opt/dreambox/dreambox.vlm This example shows the configuration for 3 Dreambox receivers and two channels. Output goes to your Mythbackend. For each dreambox you should use a different UDP port.

I know, this will get a big config file. Don't worry, read on, later you will find a script that generates this file.

The naming of the broadcast vlc resources is important. D1_1 stands for: Dreambox 1, Channel 1. D2_2 stands for Dreambox 2, Channel 2

# Channel 'SF1' on Dreambox #1
new D1_1 broadcast enabled
setup D1_1 input http://DREAMBOX1_IP:8001/1:0:1:2:45:1:FFFF0292:0:0:0:
setup D1_1 output udp://MYTHBACKEND_IP:1234
# Channel 'SF1' on Dreambox #2
new D2_1 broadcast enabled
setup D2_1 input http://DREAMBOX2_IP:8001/1:0:1:2:45:1:FFFF0292:0:0:0:
setup D2_1 output udp://MYTHBACKEND_IP:1235
# Channel 'SF1' on Dreambox #3
new D3_1 broadcast enabled
setup D3_1 input http://DREAMBOX3_IP:8001/1:0:1:2:45:1:FFFF0292:0:0:0:
setup D3_1 output udp://MYTHBACKEND_IP:1236

# Channel 'SF2' on Dreambox #1
new D1_2 broadcast enabled
setup D1_2 input http://DREAMBOX1_IP:8001/1:0:1:3:45:1:FFFF0292:0:0:0:
setup D1_2 output udp://MYTHBACKEND_IP:1234
# Channel 'SF2' on Dreambox #2
new D2_2 broadcast enabled
setup D2_2 input http://DREAMBOX2_IP:8001/1:0:1:3:45:1:FFFF0292:0:0:0:
setup D2_2 output udp://MYTHBACKEND_IP:1235
# Channel 'SF2' on Dreambox #3
new D3_2 broadcast enabled
setup D3_2 input http://DREAMBOX3_IP:8001/1:0:1:3:45:1:FFFF0292:0:0:0:
setup D3_2 output udp://MYTHBACKEND_IP:1236

You can now start/test your vlc daemon on your backend with the following command:

su - ACCOUNT_NAME -c 'vlc -I telnet --vlm-conf /opt/dreambox/dreambox.vlm --daemon'

ACCOUNT_NAME: Your account, because root is a bad choice.

Telnet to your VLC daemon and check your channels:

telnet MYTHBACKEND_IP 4212

The default password is 'admin'. Type 'show' to list your VLC streams. 'quit' to logout.

Configure MythTV

Creating the .m3u files

Each IP/TV Networkrecorder (FREEBOX), requires a .m3u playlist as a channel list. It should have the following format:

Dreambox 1:

#EXTM3U
#EXTINF:0,1 - SF1
#EXTMYTHTV:xmltvid=1.sfdrs.ch
udp://MYTHBACKEND_IP:1234
#EXTINF:0,2 - SF2
#EXTMYTHTV:xmltvid=2.sfdrs.ch
udp://MYTHBACKEND_IP:1234

Dreambox 2:

#EXTM3U
#EXTINF:0,1 - SF1
#EXTMYTHTV:xmltvid=1.sfdrs.ch
udp://MYTHBACKEND_IP:1235
#EXTINF:0,2 - SF2
#EXTMYTHTV:xmltvid=2.sfdrs.ch
udp://MYTHBACKEND_IP:1235

Dreambox 3:

#EXTM3U
#EXTINF:0,1 - SF1
#EXTMYTHTV:xmltvid=1.sfdrs.ch
udp://MYTHBACKEND_IP:1236
#EXTINF:0,2 - SF2
#EXTMYTHTV:xmltvid=2.sfdrs.ch
udp://MYTHBACKEND_IP:1236

Take care that the UDP Ports are corresponding to VLC configuration. The Channel Number 1,2 should also correspond to the VLC Stream Name.

VLC Config: D1_1 -> dreambox.m3u: 0,1

Add the IP/TV Network Recorder

The channel change script

Script to stop vlc streaming if needed

System startup additions