Vanvalkinburgh.org

  • Home
  • Gallery
  • Privacy
  • jQuery
    • Image Example 1
  • Videos
Home > Ubuntu > Stream videos to xbox 360 with patched ushare

Stream videos to xbox 360 with patched ushare

May 25th, 2007 admin

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.

Share and Enjoy:
  • Digg
  • Reddit
  • del.icio.us
  • Google Bookmarks
  • Facebook
  • MySpace
  • Add to favorites
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks

Related posts:

  1. uShare update!
  2. OS X stream videos and music to the xbox 360 with fuppes
  3. Linux stream videos to xbox 360
  4. Geexbox info stream videos to tv
  5. Ushare doesn’t work neither does tversity
Categories: Ubuntu Tags: Ubuntu
Comments (131)
  1. admin
    October 17th, 2007 at 22:36 | #1
    Reply | Quote

    Probably unstable code.

  2. Steve
    October 31st, 2007 at 14:10 | #2
    Reply | Quote

    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!

  3. admin
    October 31st, 2007 at 15:20 | #3
    Reply | Quote

    You don’t need the patch anymore. Also try changing the extension of the video file to .mov instead of .mp4.

  4. Steve
    October 31st, 2007 at 17:09 | #4
    Reply | Quote

    I did that, but even my mp3s wont play

  5. Steve
    October 31st, 2007 at 17:21 | #5
    Reply | Quote

    I am using handbrake, and it makes my movie files .mp4. Then i change the name to .mov. The movies still will not play

  6. admin
    October 31st, 2007 at 17:50 | #6
    Reply | Quote

    Are you using version 1.0 of ushare? Also try only sharing videos or music.

  7. Steve
    October 31st, 2007 at 21:58 | #7
    Reply | Quote

    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!

  8. admin
    November 1st, 2007 at 15:04 | #8
    Reply | Quote

    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.

  9. Steve
    November 24th, 2007 at 18:00 | #9
    Reply | Quote

    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?

  10. Ajit
    December 3rd, 2007 at 21:12 | #10
    Reply | Quote

    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

  11. Ajit
    December 3rd, 2007 at 21:17 | #11
    Reply | Quote

    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!

  12. Jeremy
    December 4th, 2007 at 09:33 | #12
    Reply | Quote

    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…

  13. Shawn
    December 4th, 2007 at 16:54 | #13
    Reply | Quote

    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!

  14. admin
    December 4th, 2007 at 21:13 | #14
    Reply | Quote

    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.

  15. John Eddy
    December 5th, 2007 at 00:09 | #15
    Reply | Quote

    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.

  16. Liek
    December 5th, 2007 at 05:12 | #16
    Reply | Quote

    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”

  17. Liek
    December 5th, 2007 at 05:20 | #17
    Reply | Quote

    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

  18. admin
    December 5th, 2007 at 08:50 | #18
    Reply | Quote

    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.

  19. Steve
    December 5th, 2007 at 09:52 | #19
    Reply | Quote

    I didnt compile ushare from source code like Liek said, so i don’t know how to edit the mime.c config file. Also i was wondering how i could go about getting the new ushare update on ubuntu 7.10. Thanks~

  20. Steve
    December 5th, 2007 at 13:06 | #20
    Reply | Quote

    Or if someonce could just explain to me how to compile ushare 1.1 that would also help. Thanks. Im just trying to stream .avi files so i can stop converting everything to .mov. It is time consuming and defeats the purpose. Thanks

Comment pages
« Previous 1 ... 4 5 6 7 Next » 612
Comments are closed.
Linux stream videos to xbox 360 HWP54G improve signal
RSS feed

Photos

2010-03-10

What I'm Doing...

  • http://twitpic.com/17umnd second time picasa crashed today, maybe I need to find a different image management program. 8 hrs ago
  • google needs to add pet detection to picasa, like some of the new fujifilm camera's have. 1 day ago
  • http://bit.ly/97zzPy haha. 1 day ago
  • More updates...

Posting tweet...

Powered by Twitter Tools

Recent Posts

  • Mac OS X Snow Leopard Image Capture
  • Tales Of Monkey Island
  • Carbon Copy Cloner
  • Hostgator CEO bought A Small Orange
  • Got a 15 pound water/fire proof external hard drive

Recent Comments

  • admin on Hmm so MSI Nettop 100 is 64bit capable?
  • Programare Sociala on Hmm so MSI Nettop 100 is 64bit capable?
  • admin on Hmm so MSI Nettop 100 is 64bit capable?
  • Programare Sociala on Hmm so MSI Nettop 100 is 64bit capable?
  • admin on 1Password developers don’t think Firefox is crap

Categories

  • acer aspire one
  • Cloudbook
  • Debian
  • Fedora
  • General
  • gOS
  • KDE
  • linux
  • Multimedia
  • Mythbuntu
  • mythtv
  • Sabayon linux
  • Ubuntu
  • Uncategorized
  • Wireless
  • Yoper
  • Zonbu

Archives

  • 2010
    • January
    • February
    • March
  • 2009
    • January
    • February
    • March
    • April
    • May
    • June
    • July
    • August
    • September
    • October
    • November
    • December
  • 2008
    • January
    • February
    • March
    • April
    • May
    • June
    • July
    • August
    • September
    • October
    • November
    • December
  • 2007
    • January
    • February
    • March
    • April
    • May
    • June
    • July
    • August
    • September
    • October
    • November
    • December
  • 2006
    • July
    • August
    • September
    • October
    • November
    • December

Categories

  • acer aspire one
  • linux
  • Uncategorized

$9.69 Domain name registration at namecheap.com

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Top WordPress
Copyright © 2006-2010 Vanvalkinburgh.org
Theme by NeoEase. Valid XHTML 1.1 and CSS 3.

Bad Behavior has blocked 195 access attempts in the last 7 days.