Sponsored links


Go Back   Sat Industry Forums > Dreambox > Applications Support
Register FAQ Members List Calendar Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-12-2007
hemertje's Avatar
Moderator
 
Join Date: Oct 2003
Posts: 3,073
Thanks: 0
Thanked 30 Times in 18 Posts
hemertje is on a distinguished road
Dreambox Re-Stream project, By M4RTiN!

By M4RTiN

http://m4rtin.dnsalias.net/re-stream/index.php

welcome

Welcome to this page, its devoted to a little PHP script i developed for the Dreambox. The dreambox is a digital satellite receiver wich can stream its output to lan-clients. This raw stream is too big for sending over internet. It has to be transcoded by a program such as VLC

Over the internet streaming acquires a lot of hassle to adjust the dreambox and vlc to eachother, thats where my script comes in! I have built a frontend to VLC with the ease to easily choose from the services wich are available from your dreambox. Want to know how it works? click the link above or read below and learn more!


News

Here you can read my log in case i have updates

TODO
Quote:
* Streaming of recordings
* Test windows server
* complete 7025 support
* Probably fix many bugs
Changelog
Quote:
22:32 10-8-2007
- Made this website
- First release

How does this thing works?:

Well i have this very professional picture overhere that could explain a lot

http://m4rtin.dnsalias.net/re-stream...eam-system.jpg

As you can see you will need a server (preferably Linux) wich runs a webserver capable of parsing PHP, and of course runs VLC.


Features

* View your favorite TV channels (and soon recordings) from all over the world
* Administer multiple dreambox from the one server in the same subnet
* Adjust streaming quality in a second without a hassle
* Ability for fullscreen viewing
* Handy debug window for checking if VLC does run and check how many viewers


Installation:

Click on the link above to download the latest version! Here is a basic installation description. As im not a real guru i might change a thing or two when i get some feedback.


* Download the Re-stream package
* Unpack it to a web accesible directory, such as /var/www/re-stream
* Edit your dreambox settings in settings.php
* Also be sure to put the right IP numbers for the Lan & Wan interfaces in settings.php
* Make an extra portmapping to your vlc server in your router for the stream, default in settings.php is 8888
* To run vlc from PHP sudo is needed, make sure if you have it, but i think is a basic tool in linux)
* Edit the sudo rules from the command "visudo" as the user root
* I used this line to get the user "www-data" all priviliges without asking for a password:

www-data ALL=(ALL) NOPASSWD: ALL

* Now visit the script by using firefox with the enabled firefox-vlc plugin, if you dont have a plugin, please (re)install VLC and mark the option for the firefox plugin


Windows server notes:

In order the run the php interface on a windows server you are going to need Pstools..., installed in C:\pstools.

Please give me some feedback if the windows version is working.
Attached Images
File Type: jpg restream-system.jpg (119.5 KB, 72 views)
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 08-12-2007
hemertje's Avatar
Moderator
 
Join Date: Oct 2003
Posts: 3,073
Thanks: 0
Thanked 30 Times in 18 Posts
hemertje is on a distinguished road
Re: Dreambox Re-Stream project, By M4RTiN!

here a screenshot

http://m4rtin.dnsalias.net/gallery2/...reamV1_0-2.jpg
Attached Images
File Type: jpg Re-StreamV1_0-2.jpg (34.3 KB, 22 views)
Reply With Quote
  #3 (permalink)  
Old 08-13-2007
Registered User
 
Join Date: Oct 2003
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
normal is on a distinguished road
Re: Dreambox Re-Stream project, By M4RTiN!

It seems great. How could one make it work on Windows?

Myself, I did not understand the installation, what should be installed in the DM and what to be installed in WinXP ?

In my case I can reach my DM7000S from anywhere through my IP address as I'm forwarding the http command on port 80 to my DM. I can see my DM WebIF through internet on FireFox very well. I can change channels, set timers.. etc. but not stream. It will be great if this little application works and streaming is possible too.
Reply With Quote
  #4 (permalink)  
Old 08-15-2007
gamael's Avatar
Registered User
 
Join Date: Mar 2005
Posts: 103
Thanks: 1
Thanked 0 Times in 0 Posts
gamael is on a distinguished road
Re: Dreambox Re-Stream project, By M4RTiN!

it's loock great ,but nothing for the 7020 ?
stay on and good luck
Reply With Quote
  #5 (permalink)  
Old 08-30-2007
hemertje's Avatar
Moderator
 
Join Date: Oct 2003
Posts: 3,073
Thanks: 0
Thanked 30 Times in 18 Posts
hemertje is on a distinguished road
Re: Dreambox Re-Stream project, By M4RTiN!

21:00 29-8-2007
- Add authentication support for the dreambox connection (Enigma 1)
- Downloadable stream.m3u file to play the stream outside the script
- Script will popup an error when could not connect to the dreambox (enigma 1 only)
- Added expiremental udp streaming support for Enigma 2
- Added support for Microsoft Internet Explorer

22:39 22-8-2007
- Added more resolutions
- Added a debug command string
- Streamer automaticly starts to stream the first channel in the first bouqet
if vlc is not running
- Stop button kills the stream on the server
- initial of enigma 1 recording streams! (very experimental!)
Reply With Quote
  #6 (permalink)  
Old 09-07-2007
hemertje's Avatar
Moderator
 
Join Date: Oct 2003
Posts: 3,073
Thanks: 0
Thanked 30 Times in 18 Posts
hemertje is on a distinguished road
Re: Dreambox Re-Stream project, By M4RTiN!

Quote:
================================================== =============================
TODO
================================================== =============================

* Add support for selecting audio channel (probably only Enigma 1 for now)

================================================== =============================
Known Issues
================================================== =============================
type dreambox | problem
-------------------------------------------------------------------------------
all | You can't put an @ in your password
================================================== =============================
Changelog
================================================== =============================
21:40 5-9-2007 (for version 1.04)
- Finished implementation of RTP and RTSP, but in my environment looks to be lan only

0:54 4-9-2007 (for version 1.04)
- Working code of RTP streams (Unicasted, Lan only for now)

23:53 1-9-2007 (for version 1.04)
- Now only use of 1 html form on viewing page (less code, less bugs)

0:23 1-9-2007 (for version 1.04)
- Transport stream is now selectable in the menu
- Added MMS/MMSH as transport stream
- Added extra codec's to stream to Windows Media player by MMS
- Added an Windows Media Player applet for streaming mms streams inline
- Streaming of recordings works! (Enigma 1)
http://m4rtin.dnsalias.net/re-stream/scrn-main-1.04.jpg

The main viewing page: (version 1.04)
This picture shows the use of MMS/MMSH being used instead of HTTP for transport.
Default player is Windows Media Player with that protocol.
Reply With Quote
  #7 (permalink)  
Old 09-10-2007
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
marccss is on a distinguished road
Re: Dreambox Re-Stream project, By M4RTiN!

I can't get it working. It is starting streaming from dreambox and vlc but seems vlc is doing nothing (cpu is under 3%).
Is there anything I can check in the debug or something to know whats going wrong ?

Edit: Using Fedora7, dreambox 7020...

Last edited by marccss : 09-10-2007 at 06:33 AM.
Reply With Quote
  #8 (permalink)  
Old 10-03-2007
Registered User
 
Join Date: Sep 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
boki15 is on a distinguished road
Re: Dreambox Re-Stream project, By M4RTiN!

Hey 4RTiN!

You did a great job!!! I was trying to do it in very similar way like you did but I didnt have success

I wrote a howto in german on German ULC-Dreambox. Just in case you need it
Reply With Quote
  #9 (permalink)  
Old 10-04-2007
hemertje's Avatar
Moderator
 
Join Date: Oct 2003
Posts: 3,073
Thanks: 0
Thanked 30 Times in 18 Posts
hemertje is on a distinguished road
Re: Dreambox Re-Stream project, By M4RTiN!

can you post it here, so our members dont need to register there.....
Reply With Quote
  #10 (permalink)  
Old 10-05-2007
Registered User
 
Join Date: Sep 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
boki15 is on a distinguished road
Re: Dreambox Re-Stream project, By M4RTiN!

Sure , here it is:
If you want I could write it in Russian and BCS (Bosnian, Croatian, Serbian)

Es ist endlich möglich über

Internet zu streamen. Das prinzip ist einfach:

1. Dreambox sendet RAW Stream an den Server
2. Server dekodiert den RAW Stream in bestimter Auflösung, FPS, Codec, Audio,..
3. Server sendet an den Client.


Es ist ziemlich einfach auch für unerfahrene User.

Ok fangen wir an ich habe es nur mit dm500 und dm7000 ausprobiert und es funktionierte einwandfrei :up:
Es sollte auch mit dm7020 und 7025 laufen

Quote:
Anleitung für Windows XP
Lade, Re-Stream, WAMP,Process , VLC herunter


1. Instaliere WAMP Server

2. Instaliere VideoLANClient Media Player.Achte bei der instalation (siehe Foto unten),dass "Mozilla plugin" und "ActiveX plugin" angehakt sind. Mach VLC als standart Programm für *.m3u Dateien (damit zB WebXTV funktioniert)

3. Ekstrahiere Re-Stream Dateien in den "C:\wamp\www" Ordner.

4. Kopiere Process.exe auf "C:\"

5. Konfiguriere settings.php im Ordner "C:\wamp\www"
!
!!NEU!!! !!!NEU!!! !!!NEU!!!ReStream settings.php Creator BETA1!!!NEU!!!!!!NEU!!! !!!NEU!!!

ReStream_settings.php_CreatorBETA2.exe
MD5=EB3AD8E6FB3C9055A1A88BE5E72C3CA0
ReStream_settings.php_CreatorBETA2.rar
MD5=BCE1AA1FC1C004E74D35F8C1EA52C6AF


ReStream settings.php Creator:
Quote:
zum Download siehe unten im Attachment.
Ich habe Diese Programm heute geschrieben ,es ist ein GUI zur erstellung von "settings.php". Beim start sucht das GUI nach eurer externer IP und die setzt er auch in das richtige Feld ein.

Es gibt zwei Optionen zu Speichern.

1te: "Save directly to .../www Folder". Er wird die "settings.php" in den Ordner der unter "Path to your .../www Folder" angegeben ist speichern.
Standartmäßig ist "C:\wamp\www"
2te: "Save2File". Programm wird die "settings.php" nach "C:\" kopieren

PS: Ich hoffe unsere Moderatoren sind nicht wie im Video
Achtet bitte auf eure Netzwerkeinstellungen. Bei mir läuft VLC Server unter dem Port 9090. Ihr solltet euere "vlc_wan_hostnameip" und "vlc_wan_streamingport" konfigurieren

6. Konfiguriere deinen Router um die Ports weiterzuleiten (Port Forwarding)


7.Jetzt müßt iht nur noch httpd.conf (konfigurations datei von eurem server) konfigurieren. Nach Standart Installation wird die http.conf so konfiguriert, dass nur 127.0.0.1 Zugrif hat. Ihr könnt eure IPs bzw Domains hinzufügen.

zB:
Quote:
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.1.20
Allow from irgendeinedomain.com
Allow from 10.33.0.1
Wenn du deine Homepage mit Passwort schützen willst dann zB:
Quote:
<Directory "C:/wamp/www">
Options Indexes FollowSymLinks
AllowOverride AuthConfig
AuthType Basic
AuthName "My LiveStreaming"
AuthUserFile C:\wamp\Apache2\bin\.htpasswd //das ist die Datei wo Users&Passwords gespeichert sind. Diese Datei sollte von aussen geschützt sein, deswegen befindet sie sich außerhalb des ".../www" Ordners.
Require valid-user // damit lässt er alle Benutzer die im ".htpasswd" drinnen sind
Order Deny,Allow
Allow from all

</Directory>
Du musst aber vorher die Datei ".htpasswd" mit zB beliebigen Texteditor erstellen.
zB
Quote:
manfred:hot
boris:dreambox
john:123456
Die passwörter so zu speichern ist einfach, aber nicht sicher. Ihr solltet eure Passwörter Encrypten. Google einfach um zu erfahren wie du die Passwörter schützt



Mehr über Authentifizierung beim Apache hier.

8. Jetzt mit Firefox auf eure Domäne oder "localhost" Gehen und Filme schauen.



Wenn Ihr eure eigene Profile mit anderen Werten (zB FPS oder Bitrate) einsetzen wollt, dann könnt ihr nur die index.php im Editor öffnen und werte verändern bzw hinzufügen.

So sieht die Datei zB aus:
Andere Bitraten
Quote:
$config['vlc_video'] = array("350","700","1200","1500","2000","3000","400 0");
$config['vlc_scale'] = "0.50";
$config['vlc_channel'] = "1";
$config['vlc_dimensions'] = array(
"1" => "240x192",
"2" => "382x288",
"3" => "704x576",
"4" => "720x576",
"5" => "576x480",
"6" => "780x585",
"7" => "1024x576"
Das wars :up:

bei mir funktioniert es wunderbar, sogar mit 2000kbps, über das Netzwerk zu streamen, es ist wirklich praktisch bei langweiligen Vorlesungen Filme zu schauen


Hier ist die Homepage von Re-Stream und hier vom WAMP






Quote:
LINUX ANLEITUNG:
Eigentlich ist es gleich wie in der Anleitung, nur halt ohne WAMP. Vorher muss noch euer Server und VLC installiert sein.

1. Ihr müßt Re-Stream in euren WebOrdner kopieren (.../www)

2. Um VLC über PHP zum laufen zu bringen, braucht ihr SUDO (normalerweise in meisten LinuxDistributionen mitdabei)

3. Editiere sudo rules vom Befehl "visudo" als user root
Zb mit "www-data ALL=(ALL) NOPASSWD: ALL" könnt Ihr alle Privilegien ohne Passwordeingabe bekommen.


Das wars

Viel Spaß
:bye:
Attached Files
File Type: rar ReStream_settings.php_CreatorBETA2.rar (610.4 KB, 79 views)

Last edited by boki15 : 10-06-2007 at 04:24 AM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting stream from dreambox Microemission Dreambox Development 1 07-29-2006 05:16 PM
Stream from dreambox to psp via vlc on your pc mayto Applications Support 0 06-24-2006 09:02 AM
VLC stream from my pc to my dreambox juancaferrero2000 Dreambox Chat 2 02-20-2006 08:53 AM
Stream dreambox to psp ever possible? kaisersose Dreambox Development 0 02-13-2006 10:59 AM
VLC "Stream The Dreambox Stream And Forward To Server" footylad Dreambox Chat 0 01-17-2006 05:34 AM


All times are GMT +10. The time now is 06:31 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Page generated in 0.47641 seconds with 11 queries