I want to watch some divx movies on my XBOX360 (with­out HDD). They are stored on a DM800 Dream­box (with HDD).

First you need UShare v1.1a, the UPnP Dae­mon. I found a sta­tic com­piled mipsel ver­sion here, which will run on the DM800 Dream­box. I also cre­ated a local mir­ror of this binary file.

There are some issues com­pil­ing a non-static ver­sion, for more infor­ma­tion click here.

Any­way, first copy the binary file to the Dream­box and set the exe­cutable flag (chmod a+x ./ushare). Now the impor­tant step, setup a mul­ti­cast route for UPnP messages:

1
root@dm800:/tmp# route add –net 239.0.0.0 net­mask 255.0.0.0 eth0

Now you may start the UPnp Dae­mon:

1
2
3
4
5
6
7
8
9
10
11
root@dm800:/tmp# ./ushare –c /media/hdd/divx/ –v –x
Warn­ing: can’t parse file “/etc/ushare.conf”.
uShare (ver­sion 1.1a), a light­weight UPnP A/V and DLNA Media Server.
Ben­jamin Zores © 2005–2007, for GeeXboX Team. See http://ushare.geexbox.org/ for updates.
Lis­ten­ing on tel­net port 1337 Ini­tial­iz­ing UPnP sub­sys­tem …
Start­ing in XboX 360 com­pli­ant pro­file …
UPnP Medi­aServer lis­ten­ing on 192.168.111.18:49152 Send­ing UPnP adver­tise­ment for device …
Lis­ten­ing for con­trol point con­nec­tions …
Build­ing Meta­data List …
Look­ing for files in con­tent direc­tory :
/media/hdd/divx/ /media/hdd/divx/just-a-movie.avi Entry->URL (100001): 100001.avi Found 2 files and subdirectories.

A start log of the UPnP Dae­mon with­out mul­ti­cast routing:

1
2
3
4
5
6
7
8
9
10
11
12
root@dm800:/tmp# ./ushare –c /media/hdd/divx/ –v –x –d
Warn­ing: can’t parse file “/etc/ushare.conf”.
uShare (ver­sion 1.1a), a light­weight UPnP A/V and DLNA Media Server.
Ben­jamin Zores © 2005–2007, for GeeXboX Team. See http://ushare.geexbox.org/ for updates.
Lis­ten­ing on tel­net port 1337 Ini­tial­iz­ing UPnP sub­sys­tem …
Start­ing in XboX 360 com­pli­ant pro­file …
Start­ing in DLNA com­pli­ant pro­file …
UPnP Medi­aServer lis­ten­ing on 192.168.111.18:49152 Send­ing UPnP adver­tise­ment for device …
Lis­ten­ing for con­trol point con­nec­tions …
Build­ing Meta­data List …
Look­ing for files in con­tent direc­tory :
/media/hdd/divx/lost/ /media/hdd/divx/just-a-movie.avi can’t open file: /media/hdd/divx/ just-a-movie.avi Found 1 files and sub­di­rec­to­ries. Terminated

Hint: I had some strange errors when the divx file­names con­tained spe­cial chars — so I removed them. I also don’t use any sub­di­rec­to­ries.
You may browse to http://dreambox:49152/web/ushare.html and check the webif.

Edit 24.8.08:
The newnigma team released libusb3 and ushare v1.1a on the unsta­ble feed, grab those file, its much cleaner and eas­ier! You just need to edit the script /etc/init.d/ushare and add the option “-x” to the ARGS vari­able (to enable XBOX360 support).