Sign up here and you can log into the forum!

Streaming DVB-S2 TV from Broadway HD-S2 to G2 - Working

General WDLXTV-G2 forum

Streaming DVB-S2 TV from Broadway HD-S2 to G2 - Working   

Postby mauzem » Fri Mar 01, 2013 5:02 am

Hi all,

for everybody who's interested: Finally I can watch DVB-S2 streams using my WDTV G2.

* flashed my WDTV with 1.01.77_WDLXTV.COM_WDLXTV_G2-0.4.7.3
* bought a used RT78 based Wifi-Stick
* copied wireless-mod-rt.app to an USB memory stick
* hacked a tool called httpstreamfs (based on fuse) to link TV channels to files visible for the media player

place calls in the startup scripts as follows:
Code: Select all
httpstreamfs http://<IP_OF_BROADWAY>/TVC/Preview?channel=277 /tmp/media/usb/EuroNews


That's it, works perfect.

(I didn't prepare httpstreamfs to be reused without efforts. But in case somebody is interested in this very specific tool, let me know and I will publish the stuff.)
mauzem
n00b
 
Posts: 1
Joined: Fri Mar 01, 2013 4:40 am

Re: Streaming DVB-S2 TV from Broadway HD-S2 to G2 - Working   

Postby deschil » Wed Apr 03, 2013 8:32 am

Wow, interesting topic, thank you.

Couple of questions here:
1. You first installed 1.01.77_WDLXTV.COM_WDLXTV_G2-0.4.7.3 on your G2 player and this does not include usb wifi, right?
2. So you installed wireless-mod-rt.app. What version did you use and did you use a net.config file?
3. Can you give me more details on the httpstreamfs hack, so I can also do the trick?
4. which startup script are you talking about?

Thanks
deschil
n00b
 
Posts: 8
Joined: Wed Apr 03, 2013 8:29 am

Re: Streaming DVB-S2 TV from Broadway HD-S2 to G2 - Working   

Postby mauzem1 » Wed Apr 10, 2013 10:56 pm

1. You first installed 1.01.77_WDLXTV.COM_WDLXTV_G2-0.4.7.3 on your G2 player and this does not include usb wifi, right?

Correct.
2. So you installed wireless-mod-rt.app. What version did you use and did you use a net.config file?

I'm not sure which version, can't remember where I got it. The file date of wireless-mod-rt.app shows Jun 13, 2009. Of course I used a net.config file. I also use it as place to trigger the SAT-channel initialization:
Code: Select all
##
## Network configuration file
##
WIRELESS=TRUE

## *************************************
## to load a network driver manually if you know its driver
## enter the modprobe statement below
## to find which driver network-device-detector selected for you
## grep net.config /tmp/messages.txt
## options are: 8192cu,8712u, arusb_lnx, rt2570, rt3370sta,
## rt3572sta, rt73, rtl8150, rtl8187, zd1201, zd1211rw
modprobe rt73

#######################################################
#######################################################
############# WIRELESS SETTINGS #######################
#######################################################
#######################################################

## SSID:
SSID=MySSID

## your auth mode:
AUTHMODE=WPAPSK

## your encryption (WPA[2]/PSK only) type:
ENCRYPTION_TYPE=AES

## WEP / WPA-PSK key
ENCRYPTION_KEY=yourpasskey

#######################################################
#######################################################
################# GENERAL SETTINGS ####################
##
## Dynamic IP Configuration:
DHCP=yes
HOST=myhostname

##
## Static IP Configuration:  (only if not DHCP)
#DHCP=no
#IP=192.168.0.10
#GW=192.168.0.1
#NM=255.255.255.0
#DNS1=192.168.0.1
#DNS2=205.171.3.65
#DHCP=no
#IP=10.0.0.14
#GW=10.0.0.138
#NM=255.255.255.0
#DNS1=10.0.0.138

## attempt to set jumbo frames
MTU=9000

########################################################
############### DEBUG COMMANDS #########################
########################################################

USBDIR=/tmp/mnt/9C06-4AED
LOGFILE=/tmp/mylog.txt

echo starting fuse_startup_delayed for httpstreamfs in $USBDIR >> $LOGFILE 2>&1
$USBDIR/fuse_startup_delayed &


Note at the end of net.config i launch another short script that sleeps for a time and then establishes the fuse file entries for the SAT channels:
Code: Select all
#
# Script for setting fuse file system for http streaming
#

sleep 120

USBDIR=/tmp/media/usb/USB2/9C06-4AED
LOGFILE=$USBDIR/mylog.txt

# load kernel module
echo modprobe fuse:   >> $LOGFILE 2>&1
modprobe fuse   >> $LOGFILE 2>&1

# here is my hack located:
cd $USBDIR/fuse-2.8.1/example

# here the virtual files are created

DIR=_GoTV
CHANNEL=415
mkdir /tmp/media/usb/$DIR
./httpstreamfs http://<BROADWAY_IP>/TVC/Preview?channel=$CHANNEL /tmp/media/usb/$DIR  >> $LOGFILE 2>&1

DIR=_BBC_World
CHANNEL=156
mkdir /tmp/media/usb/$DIR
./httpstreamfs http://<BROADWAY_IP>/TVC/Preview?channel=$CHANNEL /tmp/media/usb/$DIR  >> $LOGFILE 2>&1

##### skipped after 2 channels. can be infinitely many #####


In the MediaPlayer GUI you will see a subdir called $DIR containing one file called "stream.mpg", which simply can be started and watched.

3. Can you give me more details on the httpstreamfs hack, so I can also do the trick?

Well, I didn't invest a lot of time to create a nice deliverable to distribute this one. But I am going to simply zip the whole thing and provide it here as reply (will need one more day to do this).

What this thing basically does:
* On file_open, an HTTP connection is opened to the specified URL.
* Then the MediaPlayer reads data, but it is interesting how it accesses the "file": Before starting the actual replay, the player starts at the beginning, reading about 10MB (maybe for format detection), then jumps to the middle of the file, reads again about 10MB (for whatever reason), and only then the actual streaming starts again at offset 0. My httpstreamfs hack uses a buffer to speed up the thing. Also there is of course no "middle of the file" as it is streaming.
* The URL causes Broadway to send the original MPeg2 stream, which uses actually more bandwidth than the AVC264/FLV that this device would support. But WDTV is not capable of playing this codec ... - But still for at least non-HD channels it works over my 56MBit wireless router. - A faster router should make HD possible i estimate.

4. which startup script are you talking about?

It's nothing else than net.config, see 2.

ok, will provide the hack (executable & httpstreamfs.c) soon.

cheers
mauzem1
n00b
 
Posts: 5
Joined: Wed Apr 10, 2013 10:20 pm

Re: Streaming DVB-S2 TV from Broadway HD-S2 to G2 - Working   

Postby deschil » Thu Apr 11, 2013 6:02 am

OK, thanks a lot. Great explanation!

Looking forward to receive hack (executable & httpstreamfs.c) soon.
deschil
n00b
 
Posts: 8
Joined: Wed Apr 03, 2013 8:29 am

Re: Streaming DVB-S2 TV from Broadway HD-S2 to G2 - Working   

Postby mauzem1 » Thu Apr 11, 2013 7:32 am

Hi,

here's the link

https://www.mydrive.ch/download/240214881/httpstreamfs_all.zip
user: guest@httpstreamfs
pw: httpstreamfs

this is what what I have on my usb stick on the top level (uncompressed of course).

the executable is \fuse-2.8.1\example\httpstreamfs, the source in the same location (httpstreamfs.c)

enjoy & tell if it worked,

p

ps: i was messing around like hell until I had Wifi working. No chance to get a Zydas 1211 working, finally with a RT73 based (D-Link DWL-G122 C1 3.30) it worked without problems.
mauzem1
n00b
 
Posts: 5
Joined: Wed Apr 10, 2013 10:20 pm

Re: Streaming DVB-S2 TV from Broadway HD-S2 to G2 - Working   

Postby deschil » Fri Apr 12, 2013 4:01 am

Hi,

I also have problems with my wifi with 1.01.77_WDLXTV.COM_WDLXTV_G2-0.4.7.3 software, can't get it working with my belkin wifi USB stick.
That's why I wanted to stick to wdtv_g2_ext_v200 which also has a nice webinterface.
But how do I install fuse on the box?
deschil
n00b
 
Posts: 8
Joined: Wed Apr 03, 2013 8:29 am

Re: Streaming DVB-S2 TV from Broadway HD-S2 to G2 - Working   

Postby mauzem1 » Fri Apr 12, 2013 5:20 am

My experience is that fuse is already part of 1.01.77_WDLXTV.COM_WDLXTV_G2-0.4.7.3. You find the .so file in /usr/lib/libfuse.so.2.8.1. (see at https://svn.wdlxtv.com/listing.php?repname=wdlxtv-G2&path=%2Ftrunk%2Fusr%2Flib%2F&#ae1d596d5cee6eba30fb383b284fd4057)

Maybe you need to do
Code: Select all
modprobe fuse
in net.config, but this isn't necessary in my case.

I guess the biggest leap will be to have a Wifi stick working stable. What vendorID:deviceID does your's have?

I also tried to use the ext version of the firmware, but - as mentioned in many posts - this is not a stable and reliable way of using wdlxtv. So I went back to the flashed one. Together with enLiven-G2.app.bin and UPnP-djmount.app.bin I somehow made it happen to have a webinterface and even UPnP, but this is - in case of the flashed version - a never ending hurdle race, as in the flashed version you have only a very few writeable locations (like /tmp) in the file system. - For my use case - as I only wanted to have sat-tv on my box - it wasn't needed any more after working httpstreamfs, so I threw that away.
mauzem1
n00b
 
Posts: 5
Joined: Wed Apr 10, 2013 10:20 pm

Re: Streaming DVB-S2 TV from Broadway HD-S2 to G2 - Working   

Postby deschil » Fri Apr 12, 2013 6:39 am

Thanks,

/usr/lib does not contain fuse and modprobe tells me the module is not present, so one more reason to go 1.01.77_WDLXTV.COM_WDLXTV_G2-0.4.7.3

I have a belkin F5D8055 V1000
deschil
n00b
 
Posts: 8
Joined: Wed Apr 03, 2013 8:29 am

Re: Streaming DVB-S2 TV from Broadway HD-S2 to G2 - Working   

Postby deschil » Fri Apr 12, 2013 9:59 pm

Hi,

Is it possible to zip your whole usb stick with 1.01.77_WDLXTV.COM_WDLXTV_G2-0.4.7.3 software including enLiven-G2.app.bin, UPnP-djmount.app.bin, wireless-mod-rt.app and httpstreamfs?

Thanks
Last edited by deschil on Sat Apr 13, 2013 10:30 am, edited 1 time in total.
deschil
n00b
 
Posts: 8
Joined: Wed Apr 03, 2013 8:29 am

Re: Streaming DVB-S2 TV from Broadway HD-S2 to G2 - Working   

Postby deschil » Sat Apr 13, 2013 9:48 am

Hi,

I have most of the stuff working now, including wifi, httpstreamfs and streamripper.

Now I want to have upnp (djmount) and webinterface, apache2 seems to be included in enLiven-G2 but I can't get it working. How did you get it working?

BTW is UPnp-djmount needed? Should be included in enLiven-G2 too.

Thanks
deschil
n00b
 
Posts: 8
Joined: Wed Apr 03, 2013 8:29 am

Next

Return to Discussion

Who is online

Users browsing this forum: No registered users and 1 guest