Saturday, December 21, 2024
Username: Password:
[NEWS]
Added by unreal
The PS3: quite a capable machine

The PS3 is a very nice games console, but what really sets it aside are its media center capabilities. This article aims to explain how to make the most use of its HD playback option and is organized around the following tasks: installing a UPNP server and converting mkv files into a "PS3-friendly" format.

Installing a UPNP server

The PS3 can play audio and video files from its internal hard-drive, from a USB drive or even from a Website, however its UPNP client offers the most complete experience: network playback, nice user interface, copying of files to the internal disk...

To make use of this feature, one needs to install a UPNP server on the computer that has files to share. In this tutorial we'll be using uShare for simplified configuration and reduced number of required packages.

Start the UPNP MediaServer and the PS3 should display an icon in the "Video" section to access the shared content:

ps3_upnp.jpg


The PS3 should play seamlessly any avi/divx or mpeg content you own. However, should you attempt to play mkv content, the following error message will be displayed:

ps3_noplay.jpg


It is indeed impossible to play unmodified Matroska files on the console. However, since mkv is nothing more than an audio/video container, with H.264 video inside most of the time, we can change the container format without re-encoding the video stream. Without loss of video quality.

Mkv to PS3 conversion script

I have far too much spare time. So I developed a BASH script to automate the conversion process and generate 100% PS3-compatible (or so I hope) .mp4 files.

Go and grab the script, I'll wait while you download.

In order to use the script, you'll need a few tools:

- mkvtoolnix
- FFMpeg with AAC encoding
- MP4box or MP4Creator

The script is really simple to use:

./mkv2mp4.sh /path/to/file.mkv


The .mp4 files produced by the script will be saved in the same folder as the original mkv source file.

It is possible to specify a destination folder, which will be created if it doesn't exist:

./mkv2mp4.sh /path/to/file.mkv /home/media


So why use this script?

Even if the conversion principle is fairly easy to understand, real-world use is not quite so simple since the source media files are all different, the conversion programs can be complicated and there are various quirks and bugs here and there. The job of the script is to handle the various different cases to simplify and automate the conversion process.

It handles the following tasks:

- The PS3 cannot play files larger than 4GB so the script will split large media files as necessary
- Extracting of multiple AC3 or DTS audio sources and H264 video
- Re-compressing of audio to AAC
- The script will fix the H264 header to pretend the file is L4.1, should that be necessary
- ReMUXing to mp4
- Error handling

A few lines to finish

- The PS3 will play most 720p or 1080p H264 content, and the video quality is really impressive.
- Some versions of mp4box suffer from a bug which prevents files larger than 2GB being created. If you notice this bug, try to update mp4box or edit the "MAXSIZE=" line at the start of the script to allow splitting at 2GB.
- If you're having and problems, don't hesitate to leave a comment!

Changelog

- 2009/05/01 - v1.03 MP4Creator support added

Posted on 18/10/10 at 12:11

MKV content playback on a PS3
You could comment this news if you had an account!