📜 ⬆️ ⬇️

How I made the perfect media player from Apple TV

I want to tell you how I did for myself a media player based on the old Apple TV of the first generation. It turned out the device is completely suitable for my requirements.



Description of the standard configuration of the console:

Processor: 1 GHz Intel "Crofton" Pentium M
Memory: 256 MB 400 MHz DDR2 SDRAM
Storage: 40 or 160 GB hard drive
Graphics: Nvidia GeForce Go 7300 with 64MB VRAM
Connectivity: Wi-Fi (802.11b / g and draft-n), 10/100 Ethernet
')
As the operating system, a modified OS X v10.4 assembly was installed with Front Row stretched over it.
This configuration was not enough to play small 720p videos, most video files even of this format could not be watched. Regular films of size 1.4 - 3 Gb and a bit more were played with a bang. For 2007, it was cool, but now is not the case. The system is very weak.

And all that could be done with the set-top box was to buy / rent movies, watch trailers, later a function to view content from Youtube in low quality was added. It was possible to sync content with iTunes, data was saved on the hard disk.
It was impossible to stream content from devices via AirPlay, if I'm not mistaken, on the first Apple TV. I don't remember exactly.

Inside there are a cooler and a hard drive, so the console made quite a noticeable noise, at night it was very well heard. Sometimes you had to turn off the console before bedtime.

The device itself is quite beautiful and ergonomic, convenient remote control, there are all the necessary outputs - RCA (sound and video), HDMI, SPDIF, USB (only for service use, it was impossible to connect the disks).
image

Here is the device before the intervention:
image

What was done:
1) Replaced operating system. Once upon a time, brave guys made an atv-bootloader , which allowed Linux to boot on this console, and then a young guy, Sam Nazarko, made a ready-made Ubuntu-based operating system with XBMC, which was easily installed on Apple TV. This miracle is called Crystalbuntu . The project has a website and a large forum where they discuss problems and suggestions. Here are the source files.

The same person makes a ready-made assembly of Raspbmc for Raspberry.

The first version was on Ubuntu 8.04 and kernel 2.6 . About a year ago, test builds appeared on 12.04 and the kernel 3.2.27 , and then a full version of Crystalbuntu 2 came out. Installation is reduced to connecting the flash drive with the image and reboot. You can install the system on the same flash drive without touching the internal hard drive, or you can install it on the internal hard drive. The second way is better, the system will work faster.
The installer marks the disks himself, configures the system, downloads the latest version of XBMC and the necessary libraries.

After installing Linux, the prefix was much quicker, the video in 720p started to play better, but still, in most cases, the power was not enough to play more or less decent content. Now you can watch videos from network drives, connect external drives, watch videos directly from the Internet.

XBMC has opened many new features for the console, there are a huge number of plug-ins available, convenient to use, it looks more beautiful.

2) Removed all the noisy elements - the cooler and the hard disk, used to boot from a flash drive, the console was not heard, absolutely. You are not worried about cooling, the regular cooler did not do much. Over the years, nothing bad has happened.

3) Added hardware video decoder . Broadcom has a terrific Crystal HD BCM970015 card. The decoder easily handles the decoding of huge 1080p video files. This board replaces the BCM970012 and is able to process video hardware H.264 / AVC, MPEG-2, VC-1, WMV9, MPEG-4, DivX®, Xvid, AVS and also Flash.
With it, you can watch videos of any quality, the console loses 30 GB movies without any problems. Now you can watch content directly online - plugins for this huge amount in XBMC. YouTube videos are played in any capacity.

The card is inserted instead of the Wi-Fi card (of the same manufacturer, Broadcom :)) in the mini-PCI slot. This deprives you of a wireless connection; if necessary, you can use an external card via usb.

4) Installed SSD . With a USB flash drive, the console works fine, but it's still not as fast as it could. After replacing the SSD, the difference is very noticeable, it loads and works very quickly, all menu navigation is very smooth, there are no more delays associated with the file system.

In the console there is only an IDE plug (44-pin), so finding the right drive was harder. On eBay, you can find a 2 “5 IDE SSD disk that replaces the old one, but the choice is even better - a DOM disk. This is a card with soldered memory modules, which is inserted directly into the IDE connector. Such cards are used in any embedded solutions - cash registers, machine tools, etc.
We need about 2Gb of memory for a ready-made operating system; therefore, the Kingspec 8Gb disk was enough for us. It was necessary to connect all the same through a loop, and not directly into the board, because the lock on the IDE connector turned out to be turned in the wrong direction and the board did not fit against the power supply. It was necessary to immediately check, but the connection through the loop suited me.

5) Bought a new remote . In the first consoles was an old plastic remote. New aluminum solid consoles, very beautiful, outwardly more suited to the console. Although, as it turned out over time, the old plastic is more convenient to use.

This is how the device looks after the intervention:
image
(on the left - this is the SSD)

My entire media connection is stored on the NAS, which, like the prefix, is connected to a gigabit switch via ethernet, the network speed is enough to write to the NAS and read HD movies with it, there have never been any problems. XBMC can read from any source - NFS, SMB, FTP, UPnP, you can pick up content from several sources.

The opportunity to watch content immediately from the Internet turned out to be very pleasant. We in Ukraine have sites ex.ua and fs.ua, for which there are XBMC-plugins . It has long been no longer shaking serials and many movies, everything can be found there, the Internet speed is enough to watch movies in HD quality without downloading. Links to your favorite TV shows are easily added to the “Favorites” directly from the plugin, then easily selected before viewing from the XBMC menu.

More buns:
AirPlay is working, there are a lot of applications for managing XBMC using a smartphone. There is also a very nice thing - a browser plugin that allows you to send videos from YouTube directly to the console. There are plugins for IPTV.

Added a repository of plugins for the Russian-speaking population of seppius-xbmc-repo , it has a huge variety of plug-ins - online TV shows (sites with thousands of TV shows), online TV, radio, video tricks, sites for learning ...

Yes, and in the standard XBMC list there are plug-ins for every taste - TED Talks, game channels, VimCasts (Vim lessons), the Mosfilm archive ...

MPD installed . Apple TV has a music balloon mounted directly from the NAS and is added to MPD. Now all home computers can play music over the network. The sound system is connected to the console, so now you do not need to bother with the choice of sound source on the speakers, all the music is collected in one place.

As for the overall system load. The processor frequency is automatically adjusted from 600 to 1000 MHz, while watching most movies, the frequency does not rise above 600 MHz , while the processor is loaded on average only by half.

image

Here is the system load when viewing a 9Gb, 720p file, the average CPU load ~ 45%

image

When viewing a file of 15Gb, 1080p size, the average CPU load is ~ 70%. The processor frequency is still 600 MHz.
image

There is not a lot of memory in the system, so just in case 1Gb of memory is allocated with an SSD for swap.

Also, a good USB sound card was connected to the system, but I didn’t notice the difference in sound and the card was returned to the desktop computer for use with headphones. Probably need more expensive audio and better hearing to hear the difference.

Cons : There is no hardware button to turn off the console. You can buy a power outlet with a switch, but your hands do not reach, and there is no special need, the prefix is ​​always on.
There is also no Russian layout in the search menu, but there is a person in Habré with an article that made patches. Russian search is not needed often, but still needed, you will also need to allocate time and do.

Source: https://habr.com/ru/post/203162/


All Articles