XviD fully functional on Apple TV

Mirrored By DuggMirror (?) at 10:13:36 EDT Apr 2, 2007

Original URL: http://forums.somethingawful.com/showthread.php?s=&threadid=2391956
Comment on this story at http://digg.com/apple/XviD_fully_functional_on_Apple_TV

View Stats on This Story's Diggs From DuggTrends

Other Mirrors: Google cache   Coral Cache 8080 8090   Archive.org Wayback Machine

Search Amazon.com:

Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!


You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining us 86,000+ Goons, for the one-time price of $9.95! We charge money because it costs us $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
Pages (15):    1 2 3 4 5    » » Last
 
Awkward
Sep 04, 2006
I am a .. shirt?
Hey, Sabretooth and I just officially got xvid/everything else supported by Perian working on the Apple TV.

I promise you this image is legit and this is an episode of Lost encoded in Xvid (FAKE FAKE RAHGHG FAKE):



We're doing a writeup, but the short of it is...

1. Open it up (4 screws on the bottom, small Torx bit)
2. Put the 2.5" drive into a USB enclosure or whatever you want
3. Mount the HFS filesystem
4. Install Perian in /Library/Quicktime (as you normally would)
5. Install Dropbear (or enable SSH if you know how... we gave up and used Dropbear)
6. Add a startup script to disable the firewall or open up the ports you need for SSH
7. Put the drive back in and boot it, ssh login as frontrow, password frontrow (or add an ssh key for yourself)
8. Use a reference movie (use QT Pro to save a reference movie) to bootstrap your xvid file

voila

Should see a writeup later today.

Edit: digg article is here apparently : http://digg.com/apple/XviD_fully_functional_on_Apple_TV


UPDATE
kextstat and ps aux on page 3
So has anyone busted out their drive yet? I want to make sure someone else can keep responding to questions here. I'd give you ssh access to ours but it's behind a big fancy VPN.

We got SSH up by adding a startup script to disable the firewall and start dropbear:
code:
bash-2.05b# cat /System/Library/StartupItems/fw/StartupParameters.plist { Description = "Firewall"; Provides = ("Firewall"); Requires = ("Network"); OrderPreference = "None"; }
code:
bash-2.05b# cat /System/Library/StartupItems/fw/fw #!/bin/sh /sbin/ipfw -f flush /sbin/ipfw add 65535 allow ip from any to any /sbin/dropbearkey -t rsa -f /etc/dropbear_rsa_host_key /sbin/dropbear -r /etc/dropbear_rsa_host_key -p 22222
Note that the firewall is wide open now so be careful

Also the dropbearkey part is only necessary once to generate the key, so you can delete that after the system has rebooted once.

To get dropbear go here: http://matt.ucc.asn.au/dropbear/dropbear.html
Compile it on an x86 machine (I used my Macbook Pro) and just transfer those binaries over to the HD yourself using a USB enclosure or whatever you have that can interface with a 2.5" PATA drive.

It is likely you can get the system's built-in SSH working correctly. We were in a hurry, and after running into a kink we were like "gently caress it" and threw dropbear up because it was a pretty instant win.

To ssh in you use: ssh -p 22222 frontrow@1.2.3.4
To scp stuff to it use: scp -P 22222 /path/to/localfile frontrow@1.2.3.4:/path/to/senditto

I know this is still a pretty ugly list of steps, and if you're confused just wait until everything gets a bit more streamlined. I just want to get more hacker folks involved so work can continue as fast as possible.

UPDATE 2
Sorry, we should have made this more clear, but 720p XviD *runs smoothly on the device!*

Awkward fucked around with this message at Mar 26, 2007 around 13:18

Sabretooth
Sep 18, 2004

You look delicious. Care to join me for dinner?
So far, the way we managed to load the movie on inside of the Apple TV interface was that we had to sync a compatible movie first (I had the Pirates of the Caribbean 3 trailer handy), then replace the movie file (find it somewhere in the Apple TV's /mnt/Media/Media Files tree) with your reference movie. Since the reference movie contains an absolute path, make directories on the hard drive so you can locate your original on the Apple TV wherever it was on your Mac.

Next up is mounting my Mac's drive via CIFS, trying the Quicktime MakeRefMovie tool (available at http://developer.apple.com/quicktim...imeintro/tools/) to build the reference movie (dropping, hopefully, the QT Pro requirement), and trying to automate this a little better. I don't think you'll be able to actually sync XVid files to the Apple TV -- only the reference movies -- but this means that the little 40GB drive will have plenty of room for the reference files that point to the real things on your multi-TB movie storage unit (you have one, right?) via CIFS/SMB mount.

Awkward
Sep 04, 2006
I am a .. shirt?
The idea now is that we're going to write a little daemon to watch a SMB mount and automatically generate the reference movies and inject them into the Library, so all you have to do is wire up the mounts to your fileserver and you're good to go.

This may finally get me to stop using XBMC, since the Xbox can't handle HD content.

$300 for an OS X machine with HDMI/Component out/802.11n ain't bad! And while it's not the fastest thing, it'll decode HD video, which is more than enough to seal the deal for me.

plasticbugs
Dec 13, 2006

Special Batman and Robin
This is going to give the SA servers a little workout today. Nice work, guys! This seals the deal. I'm definitely picking one of these up now - before Apple tries to plug this hole.

Also, there goes Apple's business model.

edit: For what it's worth, I'll give G4 (Attack of the Show) a heads up so you might get some TV coverage from this today.

edit: I'll also make sure they mention Something Is Awful.

plasticbugs fucked around with this message at Mar 23, 2007 around 15:17

Disciple
Oct 07, 2002
This space for rent
Any ideas of how to access the file system on the Apple TV without having to crack it open?

Would be nice if you could drop an alias in the Movies directory on the Mac and just have it point to the folders you want so you can browse your file system for stuff like you can do to Frontrow instead of using iTunes.

Interrupting Moss
Oct 18, 2005

Heisman trophies are for faggots, anyway.
I may buy one of these little buggers yet. That's awesome.

Awkward
Sep 04, 2006
I am a .. shirt?

Disciple posted:

Any ideas of how to access the file system on the Apple TV without having to crack it open?

Would be nice if you could drop an alias in the Movies directory on the Mac and just have it point to the folders you want so you can browse your file system for stuff like you can do to Frontrow instead of using iTunes.

Maybe you could get target disk mode working somehow. Haven't gotten to try that yet, but yeah, part of this adventure is going to be figuring out how to do it without having to go to the USB enclosure. Really all you need to do is acquire SSH access, which might not be too hard

anotherone
Feb 08, 2001
Username taken, please choose another one

plasticbugs posted:

Also, there goes Apple's business model.

Pfft, not likely. This isn't like an xbox. They aren't selling it at a loss and making it play xvid only makes it a more attractive device. They only reason they didn't make it play xvid and divx from the start is because of the scads of patent issues they'd be violating.

See if you can access the USB plug next, there's no way it's just for testing or whatever they said it was for.

anotherone fucked around with this message at Mar 23, 2007 around 15:35

Disciple
Oct 07, 2002
This space for rent
Sorry another question.

What happens if you drop an alias to a Network Share into the Movies folder on the AppleTV's OSX Drive? Will it then allow you to connect and browse the file system for stuff to watch from your Server like you can do in Frontrow?

Or or

If that's not possible could you install Remote Desktop Client on it so you can access the drive remotely after the first cracking it open has been done? Then drop an alias into the Movies folder to a local drive on the AppleTV and see if you can browse the file system. That would allow you to move content on your own and view it on your own without having to use iTunes.

I think, man I need one of these to dick around with....

Disciple fucked around with this message at Mar 23, 2007 around 15:52

saratoga
Mar 05, 2001
I got banned by SpokkerJones and all I got for it was personal and accedemic success
Does it decode 720p xvid? Anandtech reported that the system uses a 1GHz Dothan, which is only marginally faster then the CPU used in the Xbox. They speculated that 720p H.264 is handled via GPU acceleration. If so, I'm curious how well an unaccelerated 720p decoder actually works.

Could you try a high bitrate (>3 Mbit) 720p Xvid w/ QPEL enabled and report how well it decodes? Assuming it works well, I may be all over this thing ...

Awkward
Sep 04, 2006
I am a .. shirt?

Disciple posted:

If that's not possible could you install Remote Desktop Client on it so you can access the drive remotely after the first cracking it open has been done? Then drop an alias into the Movies folder to a local drive on the AppleTV and see if you can browse the file system. That would allow you to move content on your own and view it on your own without having to use iTunes.

I think, man I need one of these to dick around with....

remote desktop is for windows and ssh implies we have full remote access to the system (shell and filesystem).

io_burn
Jul 09, 2001
I RUIN CHRISTMAS
Holy crap. If you can build a nice front end for this that is completely idiot proof, people WILL pay money for it... even if it's just lovely applescript with a mediocre UI chock full of "witty" error messages. *cough* VisualHub* *cough*

Awkward
Sep 04, 2006
I am a .. shirt?

saratoga posted:

Does it decode 720p xvid? Anandtech reported that the system uses a 1GHz Dothan, which is only marginally faster then the CPU used in the Xbox. They speculated that 720p H.264 is handled via GPU acceleration. If so, I'm curious how well an unaccelerated 720p decoder actually works.

Could you try a high bitrate (>3 Mbit) 720p Xvid w/ QPEL enabled and report how well it decodes? Assuming it works well, I may be all over this thing ...

yeah, this is DEFINITELY the next thing I want to do, but alas Dan (sabretooth) and I have gone home to sleep for a few hours. I have a birthday party to attend tonight (1 bottle of cheap champagne for each visitor!) so I might not have a lot of time to work on this, but I'm sure either someone will catch up with us or we'll be back really soon to get this rolling further.

some dude posted this on gizmodo and said "don't take that victory lap yet." wrong -- it definitely works, though as you have pointed out we are unsure if full HD res is going to work yet. good point.

Awkward fucked around with this message at Mar 23, 2007 around 16:03

8ender
Sep 24, 2003

clown is watching you sleep
Well now this is great. I'm suprised Apple didn't put a little more protection on there, but I guess I'm just so used to the Xbox.

If the Apple TV turns out to be pretty easy to modify we're going to see one hell of a homebrew scene crop up around it. I hope this happen so much, because I need an upgrade path from XBMC.

Disciple
Oct 07, 2002
This space for rent

Awkward posted:

remote desktop is for windows and ssh implies we have full remote access to the system (shell and filesystem).

Sorry for the confusion on my part

But definetly let us know if you find a way to get the AppleTV Software/Frontrow to put folders and whatnot in the Movies Menu (like an Alias) to allow you to browse for what you want to watch instead of iTunes or ReferenceMovies or anything. Just click and play like MCE2005 (but better)

Leehro
Feb 20, 2003

"It's a gaming ship."

Awkward posted:

remote desktop is for windows and ssh implies we have full remote access to the system (shell and filesystem).

I assume he meant apple remote desktop, their wrapper around VNC. on OSX it's configured under sharing

Awkward
Sep 04, 2006
I am a .. shirt?

Disciple posted:

Sorry for the confusion on my part

But definetly let us know if you find a way to get the AppleTV Software/Frontrow to put folders and whatnot in the Movies Menu (like an Alias) to allow you to browse for what you want to watch instead of iTunes or ReferenceMovies or anything. Just click and play like MCE2005 (but better)

Yep, I will try this (and the xvid HD content) when I wake up. I've totally got to sleep or I'm not going to show up for that party and be pissed off I missed it. Oh, and sorry for being a smartass about RDC, I just wanted to be clear we do indeed have full filesystem access even while the thing is running

io_burn
Jul 09, 2001
I RUIN CHRISTMAS

8ender posted:

Well now this is great. I'm suprised Apple didn't put a little more protection on there, but I guess I'm just so used to the Xbox.

If the Apple TV turns out to be pretty easy to modify we're going to see one hell of a homebrew scene crop up around it. I hope this happen so much, because I need an upgrade path from XBMC.

What reason would Apple have to lock it down? I'm sure they're making some cash on the hardware, the files themselves are already locked down with DRM... so who cares? If playing XViD on the Apple TV is easy as it sounds, bye bye XBOX Media Center.

Awkward
Sep 04, 2006
I am a .. shirt?

io_burn posted:

What reason would Apple have to lock it down? I'm sure they're making some cash on the hardware, the files themselves are already locked down with DRM... so who cares? If playing XViD on the Apple TV is easy as it sounds, bye bye XBOX Media Center.

Well, my hopes are that they speed up the cross-platform efforts on it (they are working on it) and we can get XBMC running on the Apple TV/other devices. I'm not really into the interface on anything offered out there right now (Apple TV, Vista MCE, that $250 Netgear thing that looks like poo poo but supports everything, the new slingbox device), and XBMC has such an awesome skinnable interface that it would be the clear winner if they keep their poo poo together. And I love open-source, so I'm rooting them on and will probably get to contributing code to them soon.

Hey!
Feb 27, 2001

MORE MONEY = BETTER THAN
Very good work, you guys. This gives the thing a whole new usefulness, really. I got kinda bummed when I didn't think there would be a way to play xvids because there would be no Perian.

Ethangar
Oct 08, 2002


I don't know about XBMC running on it, they use a lot of DirectX-style codecs that were easy to port over because of the XBox SDK. That doesn't mean you can't get some other front-end for MPlayer going. For those of us unfamiliar with all the Mac stuff, what kind of stuff does Perian decode. Can it handle Matroska packs, soft-subs, other uncommon video stuff?

Edit, Forgot the most important thing: I love you guys for doing this. I'm super-eager to replace my modded XBox with something that can run HD content.

Awkward
Sep 04, 2006
I am a .. shirt?

Ethangar posted:

I don't know about XBMC running on it, they use a lot of DirectX-style codecs that were easy to port over because of the XBox SDK. That doesn't mean you can't get some other front-end for MPlayer going.

Actually XBMC is using the mplayer project's DLL loader which works on any x86 machine, so the TV will do just fine with this

quote:

For those of us unfamiliar with all the Mac stuff, what kind of stuff does Perian decode. Can it handle Matroska packs, soft-subs, other uncommon video stuff?

http://trac.perian.org/wiki/SupportedFormats -- but I suspect we'll have XBMC on it soon enough, which I'd rather be using. Also I think there are more QT components to support the more obscure things like matroska

quote:

Edit, Forgot the most important thing: I love you guys for doing this. I'm super-eager to replace my modded XBox with something that can run HD content.

thanks me too

Zakalwe
May 12, 2002

saratoga posted:

Does it decode 720p xvid? Anandtech reported that the system uses a 1GHz Dothan, which is only marginally faster then the CPU used in the Xbox.

The Xbox uses a 733MHz PIII. The 1Ghz Dothan is a Pentium M which is a lot more beefy than a ~33% increase in clock speed would make you believe. The instruction set is a lot more efficient, the CPU has a pretty decent 2MB cache compared to ther Xbox's 128k and the FSB is up ~4 times faster.

__________________
The bomb only lives as it is falling.

Disciple
Oct 07, 2002
This space for rent
Perian handles just about everything except .mkv and .ogm, some occasional issues with soft-subs but I think they work the majority of the time.

I know they plan on adding support for .mkv and .ogm but no idea when that will happen. Be nice to have something with a nice front end that basically uses VLC Player though.

Ethangar
Oct 08, 2002


Awkward posted:

Actually XBMC is using the mplayer project's DLL loader which works on any x86 machine, so the TV will do just fine with this

The XBMC is not using a standard mplayer binary. There is a big thread on the XBMC forums about the current MPlayer build and you can tell they have customized it heavily. This is why they can't upgrade to the latest MPlayer checkins on XBMC and lack a lot of the newer MPlayer features (even the most-recent XBMC CVS builds). I'm not saying it can't be done, but it isn't as quick of a jump over as it might seem.

grutz
Mar 16, 2004

i am a BANANA!

Awkward posted:

Well, my hopes are that they speed up the cross-platform efforts on it (they are working on it) and we can get XBMC running on the Apple TV/other devices.

That will probably be tough to do but I also hope that the ATV speeds this up. I've been toying with getting an ATV ($300, why the hell not?!) and opening it up first thing after getting it out of the box. Thanks for doing some of the hard work first.

Daddy Fantastic
Jun 22, 2002

For the glory of FYAD
It's neat, but Perian still isn't as good as VLC as far as compatibility goes. I do hope that this project will help further Perian development, since VLC has really needed some competition on the Mac for a long time.

TylerL82
Mar 14, 2003

"In my defense, the baby was being kind of a dick."
Oh, this is hot.
I'd love to get a minimal OS X GUI running on the Apple TV. I guess this is how I'll be spending my Friday night...

io_burn posted:

Holy crap. If you can build a nice front end for this that is completely idiot proof, people WILL pay money for it... even if it's just lovely applescript with a mediocre UI chock full of "witty" error messages. *cough* VisualHub* *cough*

ProfaneMethane
May 20, 2004

A mental giant amongst tards.
Have you guys though about turning on Apple's Remote Desktop feature? I wonder if it would present FrontRow to you or a login box.

Z
Jun 25, 2002


Apple TV doesn't support xvid?

Without modding, does it support anything that makes it worth buying? I kind of wanted one and this makes me sad.

Ethangar
Oct 08, 2002


Z posted:

Apple TV doesn't support xvid?

Without modding, does it support anything that makes it worth buying? I kind of wanted one and this makes me sad.

Out of the box, it only plays what iPods play.

Edit: And that is streamed over iTunes.

RationalAppeal
Dec 16, 2005

It's not the killing. It's the waving about of swords I find tedious. I daresay I can kill people readily enough, as long as they're not fighting back.
Good job guys, it's always cool to see this kind of thing unfolding.

Edit: And realistically I'm sure Apple was hoping someone would do this ASAP. You just made me and countless other media fiends 100 times more likely to buy one of these things.

timdorr
Jul 09, 2001


Any chance it plays AC3 audio OK? If so, I may just run out and foolishly buy one of these on a whim.

Also, it would be interesting to see if it's got any basic Aqua GUI stuff in there. Check in /System/Library/CoreServices/ and see if Dock.app and Finder.app are chillin there. Would be interesting to see if you could get full Aqua support going and then switch into the Front Row system on the fly, like it is right now with all the Apple Remote'd Macs.

Contrabassoon
Jan 29, 2002

You want orders? You crank this **** thing up to Ramming Speed and you bring me my **** brains!
I was expecting this, but not so soon.

Now all I need is a new TV.

tonelok
Sep 29, 2001

Claire, we need to talk...you're adopted.

OMG I'm going to kill myself!

That's something else we need to talk about...
Next up, upgrading the HDD. Carbon Copy Cloner anyone?

No, I don't know the benefits of a larger harddrve at this point.

Awkward
Sep 04, 2006
I am a .. shirt?

timdorr posted:

Any chance it plays AC3 audio OK? If so, I may just run out and foolishly buy one of these on a whim.

Also, it would be interesting to see if it's got any basic Aqua GUI stuff in there. Check in /System/Library/CoreServices/ and see if Dock.app and Finder.app are chillin there. Would be interesting to see if you could get full Aqua support going and then switch into the Front Row system on the fly, like it is right now with all the Apple Remote'd Macs.

It looks like they replaced Finder.app with the new modified dash... I need to get on VPN and I'll SSH back in and check on whatever else you guys want before going to sleep. Too exciting!

The SMB script is going to be one loving killer app, by the way.

Anatole
Nov 03, 2002

DO YOU WANT SOME FRITTATA?
This is really great. I remember talking to someone about the ATV two days ago and he was surprised about the lack of codecs a bit.

I said, "I give it at most a week until someone figures out how to get more codecs in there" ..Somethingawful wins!

 Cidrick
Jun 10, 2001
Survey says:


Awkward posted:

Should see a writeup later today.

For the sake of not having another Apple confrontation later, if you do post a full writeup and howto, PLEASE HOST IT ON YOUR OWN HOSTING, not here on the forums. You're free to link to it here, of course, and digg your url all you want. Just don't put the actual content itself here.

Thanks.

timdorr
Jul 09, 2001


Awkward posted:

The SMB script is going to be one loving killer app, by the way.

No kidding. In fact, if there's any way to edit the menu system at all, that will be the tipping point for a lot of people. You could easily integrate a whole crapload of things with this device that way.

Man, and here I was thinking this was going to be a POS box that was locked down like Fort Knox

Awkward
Sep 04, 2006
I am a .. shirt?

timdorr posted:

No kidding. In fact, if there's any way to edit the menu system at all, that will be the tipping point for a lot of people. You could easily integrate a whole crapload of things with this device that way.

Man, and here I was thinking this was going to be a POS box that was locked down like Fort Knox

Actually it appears the menu is easily editable. It has a folder full of these bundle things that look like normal OS X Applications. Quotezzzz in a minute

This thread sucks ass.This is not a good thread.This is a mediocre thread.This is a somewhat entertaining thread.Excellent thread!
 

Pages (15):    1 2 3 4 5    » » Last
Forum Jump:
Subscribe to this Thread