Home > Ubuntu > Stream videos to xbox 360 with patched ushare

Stream videos to xbox 360 with patched ushare

May 25th, 2007 admin

Can’t get ushare working?
If you can’t get ushare to work, try fuppes.
You can get a ubuntu package of fuppes here.
You can get a os x compiled build here.
You can find instructions for compiling fuppes on linux here. Try svn version 549 if the latest svn version doesn’t work. You can find svn version 549 on their download page.

You can also get my working fuppes.cfg and vfolder.cfg files here.

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.

Share and Enjoy:
  • Digg
  • Reddit
  • del.icio.us
  • Google Bookmarks
  • Facebook
  • MySpace
Categories: Ubuntu Tags:
  1. admin
    December 5th, 2007 at 16:42 | #1

    I must of made a typo, those packages are actually for 7.10.

  2. admin
    December 5th, 2007 at 16:53 | #2

    John Eddy:

    Is anything else running on the same port that ushare is running on? Like a bittorrent program? If you’re running a firewall you might need to open whatever port ushare is running on.

  3. December 5th, 2007 at 17:31 | #3

    No firewall.
    Nothing else on the port acc’d to netstat.
    As far as I can tell, no other upnp is running at the moment.
    Any upnp client for the ubuntu box that you’d reco’ just to see if it can see itself?
    WMP does see the upnp box, however it can’t find any files, which might be the same issue, might not. The conf file is pointing to the right directory.

    Is there a way in the .conf file to force the -x command line?

  4. admin
    December 6th, 2007 at 16:43 | #4

    is ushare running on the correct interface? You can tell it which network interface to run it on with the -i option. You can run ifconfig to see a list of network interfaces.

  5. Liek
    December 12th, 2007 at 11:52 | #5

    It seems that there’s 1.1a version available. It says in the GeeXboX page that:
    “Support for XboX 360 dashboard Fall Update (.avi and .divx now are supported)”
    This doesn’t work though. It didn’t update itself automatically, and reinstalling it from a package changed nothing. It still wont send any info of the .avi or .divx files to my Xbox 360

  6. admin
  7. Liek
    December 13th, 2007 at 09:04 | #7

    I tried Fuppes, but I gave up after 6 different error messages during make. I followed 6 different HowTo’s that were all supposed to work. Ushare works great for me, becouse I just need support for my video files. 1.1a version just isn’t in repos yet.. I think.. Well atleast it doesn’t upgrade

  8. admin
    December 13th, 2007 at 16:27 | #8

    Using the latest svn version of fuppes doesn’t work, but using svn version 549 on the downloads page on their site works fine for me, or at least on my mac.

  9. Liek
    December 14th, 2007 at 07:35 | #9

    Ushare 1.1a is not in the repos and I now see .avi and .divx files

  10. January 16th, 2008 at 14:30 | #10

    Why does linux have to be so difficult, even the nautilus script don’t work for me, tried everything to get it to show up in my right click on file, suddely, when i lost hope it showed up, after doing nothing? i tought great. Then i tried to use it, no response at all, no error message, NOTHING. tried running it from the terminal but that won’t work cause no file was selected. sucks ass, gonna try avidemux now, pfff. Think microsoft sucks ass, but the installing of applications on windows is much and much better then on linux, most apps on linux require you to do 10 steps, while in microsoft it’s just dubble click a .exe, wish it was that easy on linux, gonna stop complaining now, thanks for the post, hope avidemux will work and everything after that won’t require me to do 10 more steps

  11. admin
    January 17th, 2008 at 23:06 | #11

    If you run it from the terminal put the filename after the script.

    Example:
    .gnome2/nautilus-scripts/convert-360.sh /path/to/movie.avi

Comment pages
1 ... 5 6 7 612
Comments are closed.