dimanche 16 novembre 2008

PS3 Media Server

Hi there... you will find on this page an experimental upnp media server I've written in Java (so you can also use it on Linux), with precious help from MPlayer/MEncoder, FFMpeg, AVISynth eventually, and currently using with my Playstation3.... I was quite fed up with TVersity and others servers I've tried as none of them easily supports subtitles and 1080p transcode, as well as any kind of files I want to play without worrying about ps3 compatibility.

I'm currently transcoding in real-time and no quality loss, 1080p mkv files. The drawback is the high bitrate your network must support: with the default settings, specific scenes with a lot of details (e.g.: zoom on a newspaper article) can have bitrates near 100mb/s, so gigabit is maybe useful.
The fact is, in order to see HD videos it's better to have an ethernet wired PS3 !

Download

PMS 0.96 for Windows
PMS 0.96 for Linux

Current features
  • Ready to launch and play. No codec packs to install. No folder configuration and pre-parsing or this kind of annoying thing. All your folders are directly browsed by the PS3. There's an automatic refresh also.
  • Real-time video transcoding via MEncoder or Avisynth.
  • OGG/FLAC/MPC Audio transcoding
  • Thumbnail generation for Videos
  • You can choose your audio/subtitle language on the PS3!
  • All formats PS3 natively supports: MP3/WMA, JPG/PNG/GIF/TIFF, and all kind of videos (AVI, MP4, TS, M2TS, MPEG) the ps3 is willing to play
  • ZIP/RAR files as browsable folders
  • Preliminary support for pictures based feeds, such as Flickr and Picasaweb
  • Preliminary Internet TV / Web Radio support with VLC or MPlayer


  • Requirements
  • A fairly recent cpu (mine is a C2D E6750, 2.66GHz) for smooth 1080p transcoding, but 720p seems to be easily transcodable with a simple P4 :p
  • 750Mb of RAM (for transcoding)


  • Installation
  • Get a Java Runtime Environment (Java6 minimum)
  • Launch PMS.exe (PMS.sh on Linux)
  • If the server is not detected by the PS3 (this can happens if you have several network interfaces), try setting yourself the correct IP address in the network configuration tab


  • Transcoding on Windows
    2 possible methods:

    A) Using the server "as is": No codecs pack to install, it will use Mencoder for the transcoding part.

    B) Using Avisynth/FFDshow. Paired with CoreAVC, it's quite efficient with multi cores.

  • 1- If not already done, get and install a codec pack with ffdshow. My favorite is CCCP Codec Pack
  • 2- Get and install AVISynth 2.5.7 (I've met some framerate problems with 2.5.8 betas)
  • 3- Set up the FFDShow Audio Mixer to 5.1 (3/0/2 LFE)
  • 4- Set "Autoload VS Filter" to true
  • 5- Configure Haali Splitter for audio/subtitles language priorities
  • Optional Codecs: CoreAVC is quite cheap and a good choice for H264 decoding (as FFDshow's libavcodec isn't yet fully optimized with multicores), Quicktime Alternative and Real Alternative are also useful (Apple 1080p trailers for example).


  • Transcoding on Linux
    You just need to have mplayer, mencoder and ffmpeg binaries on your path (the more recent, the better).

    Usage
    By default, wmv, avi, mpeg files are streamable, except in case of srt/sub file present with the same file name. All videos can be transcoded, as each streamable video appears once into its folder, and once into a special folder "#Transcoded#" present in each sub folder, with different options (audio/subtitles/other transcoding tools maybe) so you can choose what's working best on ps3. However, only ogg, flac, and mpc audio files can be transcoded (I assume all mp3, wma and wav files can be played 'as is' by the ps3)

    History:
  • v0.96:
    - Interactive way of choosing your audio language, subtitles and transcoder mode (see #Transcoded# Folder)
    - Interactive settings (see #Settings# Folder)
    - Better subtitles looking
    - Folders browsing optimization
    - Several network errors fixes with 2.52 firmware
    - A lot of small things
  • v0.95: MEncoder now included as it's used for the transcoding part (Avisynth or not), Fixes with the 2.50 firmware, Better transcoding performance (but greater bitrates !), Lighter configuration file
  • v0.94: Fixes: 2.50 Firmware problem, better pipes and sub processes management
  • v0.93: Fixed bug in the server IP adress binding
  • v0.92: Linux compatible version / Bugs fixes / No more A/V temp files created (full use of pipes)
  • v0.91: Better memory handling / automatic detection of VLC and AviSynth
  • v0.90: First release, some bugs, experimental stuff done for myself (at first!)


  • Known issues:
  • Seek to specific time is OK, but fast forward/fast rewind can be difficult to use, especially with Avisynth transcoding (depends of the machine)
  • Ass subtitles are not yet fully implemented in MEncoder (embedded fonts not working). Try Avisynth/Vobsub if the font design does matters :)
  • XML character encoding issues (asian characters, etc.)

    Planned features ?
  • Several encoding profiles: wired, low network bandwidth, etc.
  • Linear PCM output: Not possible for now as I have yet to found a good lpcm muxer, compatible with the ps3 (or make mine)
  • GUI configuration
  • Better audio files tags handling
  • 7 commentaires:

    tophe a dit…

    Just wanted to tell this is GREAT work !!! Linux version really works fine on my configuration ... I tried TVersity (on XP), MediaTomb (on Ubuntu) but was never really satisfied ! This one is great !

    Thanks a lot !

    ´tophe

    Chris a dit…

    Thank you this version really rocks, i cannot wait for the next versions, i dont know if its posible but you think you can present the video stream thru the mediaserver as an AVCHD structure, so we can use it like a disc, and activate subtitles on off etc...? Tsmuxer has the option to create it, but you have to modify some file names of the files it creates for it to work.
    Again thanks for your effort

    info a dit…

    La versione per windows funziona alla grande, molto meglio di TVersity, NeroMediaHome, MediaPlayer11, soprattutto il transcoder eccezionale per i files MKV.
    E' un programma indispensabile per la PS3 e un software freeware da premio Nobel!

    _arcoverde a dit…

    Great ! Really great ! Customer service from Microsoft, and symantec, can't figure out my desktop pc (Vista x86 + norton360 v2.0) with my ps3 ! Only this program works ! And works very well ! REALLY GREAT ! Is very cool don't install nothing on my pc, keep the program without a instaling, it's much better !

    Anyway... I got some issue ! The program never stars miximized, even if I'm Vista administrator and choose on "General configuration" checked !

    This is only problem I see on this great program !

    ps: Sorry my bad english. I'm from Brasil !

    _arcoverde a dit…

    Ohh... Good work ! I thing give some donation (litlle one, don't worry about it, don't rush), if this bug fixed !

    rms a dit…

    This is very good indeed (using on Ubuntu)
    Able to stream .mkv
    Adds subtitles on the fly like a charm.

    latif a dit…

    Hi
    I must say GREAT work!! After hours od trying to get Tversity to work this just wroks!!!. I do however get stuttered playback on 1080p, 480 and 720 works just fine. I have a 2.4Ghz core duo with 3GB of RAM and a gigabit wired network. I have two questions? 1. does anyone have a sugestion on how to solve this problem so I can play 1080p? 2. If not can I reduce the picture quality not the sound down to say 720p some how?

    Many thanks again for this great software!!!!