Update 12/13/09
You can install ushare with apt-get or aptitude.
sudo aptitude install ushare
and to setup you can edit /etc/ushare.conf
sudo nano /etc/ushare.conf
The config file explains everything.
To run you can start the service.
sudo service ushare start
If you want to stop it, replace start with stop.
Just tried to see if xbox would see it and it didn’t, but that’s because the service doesn’t read everything in the config file, only the shares you specify. So if you run ushare -x, your xbox will see it, or you can try editing the /etc/init.d/ushare file.
sudo nano /etc/init.d/ushare
add the below under “CONFIGFILE=/etc/ushare.conf”.
USHARE_OPTIONS=-x
Update ushare 1.1
You can download ushare 1.1 from here. Packages for ubuntu 7.10 can also be found there.
Another update
This how to has been posted on digg, so I made a mirror, just in case my site goes down.
Mirror
Update
uShare has been updated, see here for info. You don’t need the patched version to do this anymore, just the latest version.
Finally a way to stream videos to the 360 without windows.
Note: you need the latest update for the xbox 360.
32bit package has been updated on 05/31/07, forgot to patch it before compiling it.
I’m having problems streaming video with my wireless B game adapter, so I’m getting a D-Link DWL-G730AP High Speed Wireless Pocket Router/AP – Retail, hopefully that will work better.
Thanks to KeithB from geexbox’s forum for releasing a patch. Also thanks to microsoft for making it possible to stream MPEG 4 files.
If the packages don’t work or you aren’t using ubuntu or debian, then you can download the patched source below.
Download ushare 1.0
32bit deb
64bit deb
The source code can be found here.
Download ushare patched: (Not needed anymore)
32bit deb
64bit deb
patched source
Mirrors:
32bit deb mirror 1 (By voidyourwarranty.us)
64bit deb mirror 1 (By voidyourwarranty.us)
pached source mirror 1 (By voidyourwarranty.us)
If you want your mirror on here, then send an email to info@vanvalkinburgh.org.
You also need libupnp:
Download 32 bit libupnp
Download 64 bit libupnp
You can also obtain libupnp here.
After you install it run the following command:
ushare -p 49153 -D -x -c /media/sda1/MyVideos/converted/
Change the folder path to the correct folder.
I made a share.sh file in my home folder with that in it.
share.sh:
#!/bin/sh ushare -p 49153 -D -x -c /media/sda1/MyVideos/converted/
To make it startup when you login go to System | Preferences | Sessions and add a new startup entry.
If you add a new folder or file, then you can go to http://localhost:49153/web/ushare.html and click refresh shares, you can also add shares.
ffmpeg: (If you have gnome, I provided a nautilus script, so all you have to do is right click the file, and you can convert it. You don’t need avidemux for this method.)
The compression is pretty good. One of my mpg files went from 365 MB to 98 MB. The videos look good too.
The below version of ffmpeg has aac support.
ffmpeg 32bit package with aac support
ffmpeg 64bit package with aac support
The below script is for gnome users, click the link, it has instructions.
nautilus script
If you go into synaptic you can lock the version of the package, so the annoying update thing will go away. Select ffmpeg and then click Package at the top and lock version.
The command for converting videos with ffmpeg is below:
ffmpeg -y -i input.avi -vcodec h264 -b 1000000 -acodec aac -ar 48000 -ab 160 -f mov output.mov
Convert videos to MPEG 4
I used avidemux to do this, so these instructions are for it.
I installed avidemux with automatix. I also installed “Multimedia Codecs” with automatix.
Change the following settings:
Video: Mpeg4
Audio: FAAC
Format: MP4
Save the file with a .mov extension, wouldn’t work with .mp4.
On my xbox it said I needed a media update, so I said yes, and then it said I already have it, but I downloaded it anyways. And the file played after that, the tv was black for some seconds, and then it started to play.
If the file isn’t playing full screen, then click A and click the right arrow key until it says display mode, and then keep clicking A until it says full screen.
Tips
Xbox 360 video playback faq
Things to try if the video doesn’t work.
In avidemux after you select the video codec, click filters, and click mplayer resize. If you don’t have a HDTV, then put in 480×480. If you have a HDTV, then you probably don’t need to change this, unless the video is to big. Look at the xbox 360 faq link above.

After you select the audio codec, click filters, and click resample to hz, put it 48000.
Change mixer to stereo.
If you can’t get avidemux to work, you can try ffmpeg.
Related posts:






Hmm, I seem to only be able to get my xbox to connect to ushare about 50% of the time. And then about %50 of the time it connects it will find an actual file list. Does anyone have it stable? I’d like to know if this is a problem with my network/firewall settings or just unstable code?!
Probably unstable code.
Pingback: Pensando en voz alta » Blog Archive » Como enviar videos al Xbox360 desde Linux
Does anyone know if you still need to download the patch? I just installed the ushare w/out the path and all of the other .deb packages. Everything worked flawlessly. But when I view the folder im sharing from my 360 i cannot play any of the files. I get no errors, its just that whenever i click play, nothing happens. I am using .mp4 for video and .mp3 for audio. Let me know if i did anything wrong. I was thinking maybe to just try a reinstall. But to do that do i run : ushare make uninstall ;;;; ushare make clean ;;;; o what should i do? And is installation really that simple? just click and run the debs? Let me know guys! Im anxious to start streaming my media.
Thanks!
You don’t need the patch anymore. Also try changing the extension of the video file to .mov instead of .mp4.
I did that, but even my mp3s wont play
I am using handbrake, and it makes my movie files .mp4. Then i change the name to .mov. The movies still will not play
Are you using version 1.0 of ushare? Also try only sharing videos or music.
Yes i am using version 1.0. is there a certain encoder i should be using when converting DVDs to mpg4? I use handbrake, but it saves as mp4, and even when i change the name to .mov my xbox will still not play. Is there a certain type of audio encoder like AAC or something i should be using. Thanks!
The audio for the video should be AAC.
http://www.xbox.com/en-US/support/systemuse/xbox360/digitalmedia/videoplaybackfaq.htm?WText.camp=Hardware&WText.campSrc=RSS
The above link is an FAQ for videos supported by the xbox 360.
Is there any way to get ushare to recognize more formats than just mov? I have downloaded a bunch of movies and some just wont work. even after i convert them with avedmux. I convert a whole bunch the same way and a couple wont work. Is this just because they must not be able to convert or something?
I installed uShare, followed the guide, and going to http://localhost:49153/web/ushare.html shows that the folder I configured is shared. Yet, my 360 does not see it at all. Any ideas?
netstat -r produces:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
link-local * 255.255.0.0 U 0 0 0 eth1
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth1
Geez, one minute after posting, I get the idea to turn off Pidgin, just in case it was using the port. Yep, uShare works now. Thanks!
Does anyone have any idea how to make ushare share .avi files while still communicating with the Xbox 360? After today’s xbox update, I tried not using the -x command line argument, but the xbox didn’t see the share at all. With the -x argument, it doesn’t seem to see .avi files…
Thanks for the guide. I just want to say that I spent the last hour trying to figure out why my xbox could see the share but no videos, so I thought of renaming the videos from .avi to .mov and now everything runs perfectly. I assumed that with the new divx/xvid enabled update the xbox would see them but it didn’t.
Thank you!
Thanks for the info about the update. Also it appears as though there’s a new version of ushare. My linux computer isn’t running ubuntu anymore, so I get provide the a package of the new version, but if it does compile on os x successfully, then I will be able to provide a compiled binary for os x.
They provide ubuntu packages, for ubuntu 7.10 on http://ushare.geexbox.org/#Download.
Any thoughts on why my 360 refuses to even see the ubuntu box when ushare is running? It sees my wmp sharing just fine…
I’m just not even sure where to start digging on this.
It’s propably pretty easy to have the DivX/Xvid files work with .avi extension. I believe Ushare just doesn’t send the info of the files that weren’t supported, so a patch to Ushare will propably fix this.
Taken from http://ubuntuforums.org/showthread.php?t=631213&highlight=xbox+streaming&page=2
“I made a quick hack to the ushare source code to make this work. No guarantees, but it worked fine for me. If you want to make this change, you will need to compile ushare from source code. Edit the mime.c file on line 38 – it should look like this:
Code:
{ “avi”, UPNP_VIDEO, “http-get:*:video/x-msvideo:”},
Change it to this:
Code:
{ “avi”, UPNP_VIDEO, “http-get:*:video/x-ms-wmv:”},
This basically just tricks ushare into thinking the avi files are wmv files so they will be shared with the xbox. The Xbox still can read them as AVI files and plays them fine. I’ve tested with a few xvid movies, and they work great.
EDIT This is with version 1.1 that I am testing. Good luck”
Ushare 1.1 doesn’t work for me. I’ve tried installing it from both source and from Ubuntu repos, and all I get is:
bash: /bin/ushare: No such file or directory
Ushare might be in /usr/bin, instead of bin. Or /usr/local/bin. If you go to the source folder and type cat config.log, you should see something like “install prefix /usr/local”, so for me its /usr/local/bin/ushare. Rebooting might solve that problem, so you won’t have to put the full path.