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. ^MiSaTo^
    September 24th, 2007 at 23:23 | #1
    Reply | Quote

    Oh, maybe that’s the problem. It’s MP4 as the container it’s that.
    I’ll rename to .mov and try again. Thanks

  2. enrique
    September 29th, 2007 at 12:01 | #2
    Reply | Quote

    Hmm,
    I have compiled ushare 1.0 and I am running it using the new -x switch. I go to my xbox : Multimedia / Music / Computer / Yes, Continue … Searching … “No computer found with multimedia sharing software”

    ushare is running, listening on 49153 and the output on the console doesnt mention anything wrong. I can connect using a web browser to http://192.168.1.2:49153/web/ushare.html
    Is tehre anything else I should check?

    thanks

  3. admin
    September 29th, 2007 at 14:08 | #3
    Reply | Quote

    Are you running a firewall? If you are, then you need to open that port. So your xbox can see it.

  4. Nick
    October 2nd, 2007 at 19:41 | #4
    Reply | Quote

    Hey all,

    I’m trying to install ushare with apt-get, I’ve added the repository to the sources.list file. When I issue a “sudo apt-get install ushare” in terminal, I receive this error message:

    The following packages have unmet dependencies:
    ushare: Depends: libc6 (>= 2.6) but 2.5-0ubuntu14 is to be installed
    Depends: libupnp2 but it is not installable
    E: Broken packages

    Anyone?

    Thanks!

  5. admin
    October 2nd, 2007 at 20:34 | #5
    Reply | Quote

    Are you using ubuntu or debian? If ubuntu, I don’t think their repository will work with ubuntu. If you’re using debian, you can try asking on geexbox’s forum.

    http://www.geexbox.org/forum/index.php

  6. ^MiSaTo^
    October 6th, 2007 at 12:22 | #6
    Reply | Quote

    you need to install the libupnp2 that is linked here, not the repository one.
    by the way, my ushare is working (just a little lag) thanks “admin”.
    It was the .mov issue you told me before

  7. Duncan
    October 10th, 2007 at 09:10 | #7
    Reply | Quote

    Hi!
    I have ushare 1.0 running on my centos 5 machine, and my 360 connects to it successfully. However, when I choose a file and select ‘Play’, nothing happens. No error message, nothing. I know the file works, because I got it to stream from my MBP running Connect360. Whenever I start ushare, I get the following warning:
    Warning: can’t parse file “NONE/etc/ushare.conf”.
    As such, I have to set all of ushare’s options when I run ushare. I cannot figure out how to fix this error. I checked the file in /usr/local/etc/init.d/ushare, and it links to /etc/ushare.conf, where I definitely have a proper ushare.conf file.
    This could all be related to problems I had getting ushare to run in the first place… I installed libupnp in /usr/local/lib, then installed ushare. It installed fine, but whenever I went to run it, it could not find the libupnp files, so I linked all of them to /usr/lib, and it worked.

    I am new to linux, and I don’t really know what I’m doing, so if anyone could help me, I would be extremely grateful!

  8. admin
    October 10th, 2007 at 15:21 | #8
    Reply | Quote

    You compiled it yourself correct?

    You need to re compile it:

    make clean
    ./configure --prefix=/

  9. Duncan
    October 10th, 2007 at 20:53 | #9
    Reply | Quote

    Before doing anything like that, do I need to delete my current install?

  10. admin
    October 10th, 2007 at 21:42 | #10
    Reply | Quote

    Yeah you probably should, run make uninstall as root.

  11. bgodea
    October 10th, 2007 at 22:08 | #11
    Reply | Quote

    I’ve got my set up working, but want to run ushare as a daemon under arch linux. It loads and I can access it to load the web interface, but I can’t get it to autoload the xbox complient profile automatically. Is there something I can add to the ushare.conf file to get it to load that parameter?

  12. Duncan
    October 11th, 2007 at 08:40 | #12
    Reply | Quote

    Thanks a lot for the help. The xbox now plays the files it could previously see.
    I am curious though as to what make clean does, as well as what –prefix=/ does.

  13. admin
    October 11th, 2007 at 11:55 | #13
    Reply | Quote

    make clean removes everything make compiled, and –prefix=/ tells ./configure where the etc, and other folders can be found. Before it was looking for the etc directory in NONE/etc, which doesn’t exist.

  14. Duncan
    October 11th, 2007 at 12:33 | #14
    Reply | Quote

    Ah. Do those commands work for the majority of packages?

    I’ve run into another problem, although I believe it is an issue with libupnp rather than ushare. I am attempting to play a movie that has a file size of 3.65 gigs. When I select play, nothing happens, but if I attempt to play files sized around 200mb, it works fine. Again, I streamed the movie from my laptop to see if the problem was with the file.
    I am now looking for info on libupnp’s handling of large files.

  15. Duncan
    October 11th, 2007 at 12:41 | #15
    Reply | Quote

    It seems I have libupnp 1.6.0 installed, and I did not configure it with –disable-largefile, so I am somewhat mystified as to why my movie will not play.

  16. admin
    October 11th, 2007 at 13:29 | #16
    Reply | Quote

    make clean and –prefix work with most packages.

    https://sourceforge.net/tracker/?func=detail&atid=841028&aid=1762783&group_id=166957

    You might need to apply that patch.

  17. Duncan
    October 11th, 2007 at 14:10 | #17
    Reply | Quote

    https://sourceforge.net/tracker/index.php?func=detail&aid=1762758&group_id=166957&atid=841026
    The comments here make it seem as if this patch is already part of libupnp 1.6.0.

    http://geexbox.org/forum/viewtopic.php?t=8199&highlight=ushare
    This is the forum post where I found a first mention of the patch. The problem the patch solves seems to be seeking past 2gb; the patch creator could play large files up to a point.

  18. Duncan
    October 11th, 2007 at 16:40 | #18
    Reply | Quote

    Alright, so after experimenting further, I have discovered that I have no idea what my problem is. I now have several 200mb files that were encoded the exact same way as the one that works, but they do not play. If I stream them from my laptop, they work fine. Wait – I just noticed that the file that works ends in .mov. I feel rather foolish now… I’ll see if that solves the problem.

  19. Duncan
    October 11th, 2007 at 16:48 | #19
    Reply | Quote

    OK, so all the files I encoded myself work fine when I change their extension to .mov. However, my movie does not, so I suppose I am stuck transcoding it. Anyway, thanks again for all the help. Even reading through the comment section here is incredibly useful.

  20. Dylan
    October 17th, 2007 at 21:28 | #20
    Reply | Quote

    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?!

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

Photos

2010-03-09

What I'm Doing...

  • google needs to add pet detection to picasa, like some of the new fujifilm camera's have. 6 hrs ago
  • http://bit.ly/97zzPy haha. 10 hrs ago
  • Now I know why tweetie is the best twitter client. super fast and simple. 15 hrs 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 186 access attempts in the last 7 days.