I've finally managed to run MediaTomb on my ReadyNAS Ultra 4. With the current setup I can stream any video to my PS3. Subtitles are supported but only as external srt or sub file (that must be named exactly like the video file with the exception of the extesion that can be either srt or sub).
I've also made a bin package for readynas. Before installing it you must enable ssh access and install a few external dependecies:
apt-get install libfreetype6 ttf-dejavu ffmpeg lsdvd
Then you can download the bin package from:https://github.com/rriggio/MediaTomb4Re ... 2.1-10.bin
and install it from the web interface.
The package contains three executable:
(1) MediaTomb, the actual DLNA server
(2) mencoder, used for transoding video and audio to formats that are supported by the PS3
(3) mediainfo, used to extract infomation from the video file (such as codec and resolution)
A transcoding script borrowed from:http://www.vanalboom.org/node/16
is used in order to understand if the video and audio shall be streamed to the PS3 or if it must be transcoded. In the later case the format used is mpeg2. Notice that if a subtitle is found the video is always trancoded since that is the only way to deliver subs over DLNA.
After installing the package you will see a new section in Addons -> Installed. This section, named MediaTomb, contains a single button that redirects to the MediaTomb configuration interface (that is quite straightforward).
Finally, this mess between etch packages and lenny packages is a nighmare, for example the development version of the freetype package is from debian etch while the freetype package is from lenny, which make impossible to install libfreetype6-dev using apt-get.