Streaming Video From Linux To The Xbox 360 With Ushare

I had successfully setup ushare to stream multimedia content from my linux fileserver/p2p machine to my xbox 360 in order to reproduce the media on my tv without using xbox 360 hard drive space and without all the hassle that means burning disks or copying data to a pendrive, it works, the only problem right now is that xbox 360 doesn't support any kind of subtitles, altough I can understand 99% of the english I hear, that's not the case for the rest of the family. Anyways, this is what you have to do to get things working smooth.

First, of course, install ushare, I won't give details because it changes from system to system, I recommend you to use your distribution package system to get this one installed.

After the install you need to add a multicast route so the upnp discovery protocol can work, add this to your /etc/rc.local if you want this to run on each boot, just change eth0 to your real network interface.

~~~~ {lang="bash"} route add -net netmask eth0ifconfig eth0 allmulti wzxhzdk:0

Now edit ushare config, mine is at /etc/ushare.conf

~~~~ {lang="bash"} # /etc/ushare.conf# Configuration file for uShare# uShare UPnP Friendly Name (default is 'uShare').USHARE_NAME=uShare# Interface to listen to (default is eth0).# Ex : USHARE_IFACE=eth1USHARE_IFACE=eth0# Port to listen to (default is random from IANA Dynamic Ports range)# Ex : USHARE_PORT=49200USHARE_PORT=# Port to listen for Telnet connections# Ex : USHARE_TELNET_PORT=1337USHARE_TELNET_PORT=# Directories to be shared (space or CSV list).# Ex: USHARE_DIR=/dir1,/dir2USHARE_DIR=/home/shared/multimedia# Use to override what happens when iconv fails to parse a file name.# The default uShare behaviour is to not add the entry in the media list# This option overrides that behaviour and adds the non-iconv'ed string into# the media list, with the assumption that the renderer will be able to# handle it. Devices like Noxon 2 have no problem with strings being passed# as is. (Umlauts for all!)## Options are TRUE/YES/1 for override and anything else for default behaviourUSHARE_OVERRIDE_ICONV_ERR=# Enable Web interface (yes/no)ENABLE_WEB=yes# Enable Telnet control interface (yes/no)ENABLE_TELNET=# Use XboX 360 compatibility mode (yes/no)USHARE_ENABLE_XBOX=yes# Use DLNA profile (yes/no)# This is needed for PlayStation3 to work (among other devices)ENABLE_DLNA=no ~~~~

Notice the USHARE_ENABLE_XBOX=yes?, turns out that in the default config file the option is named just ENABLE_XBOX which doesn't work, the correct option name is USHARE_ENABLE_XBOX. Now after your config is OK you should start ushare, then go to your xbox, select multimedia -> videos and press X button to load videos from another source, if everything is OK there you should see your uShare source.

Thanks to this blog, I found the config flag fix. All kudos and greets to that guy.


Comments !