ps3mediaserver/ps3mediaserver — pull request #10 by Happy-Neko (2012-01-29 19:06:00+00:00)
Title: Option to use LPCM for audio when streaming with mencoder and tsmuxer

follow-up to [issue 1368](https://code.google.com/p/ps3mediaserver/issues/detail?id=1368) and pull request test :)

Right now LPCM streaming is limited to files with flac and DTS audio tracks. What is the reason behind this decision?

Below is simple patch to enable LPCM transport for ac3, mp3, aac, ogg, wma, mpeg and truehd tracks. I haven't done extensive testing but it seems to work fine. Advantages are obvious:

* No audio quality loss
* Less CPU utilization

Bandwidth requirements are about 1.5 Mbit/s for 2.0 and 4.6 Mbit/s for 5.1 audio. No problems for wired connection.

Patch also includes some minor GUI corrections. For example label "You need an HDMI receiver for streaming LPCM 5.1" is misleading because you don't. PS3 will automatically re-encode audio to DD or DTS if its the only available audio output format.