#----------------------------------------------------------------------------
# Profile for Philips PFL (40pfl8605h_12).
# See DefaultRenderer.conf for descriptions of all the available options.
#
# Tested with 40pfl8605h_12 with firmware 140.040.000
# By Leo from Holland.
# leroy on forum.

# History:
# ----------------------------------------------------------------------------
# version 1.0   First tested version posted.
# version 1.1   Added lpcm to mpegps mpeg2 as a supported audio codec.
# version 1.2   According to the Philips specs from "Codec_table_all.zip" some changes.
#               Added "MaxVideoBitrateMbps = 20".
#               Added Max video bitrate b:4637696 into "Supported = f:mp4 v:mp4".
#               Removed mp4 and aac as supported codec with "Supported = f:mpegts".
# version 1.3   Removed mp4 as supported codec with "Supported = f:mov".
# version 1.4   Changed "MaxVideoBitrateMbps = 20" to 0 (20 is to low for full HD mkv)
#               Changed "RendererName = Philips Tv" to Philips TV
# version 1.5   Removed mov as supported codec.
#               Changes to findings and spelling.
#               Changed MaxVideoBitrateMbps = 75 Max TV native support transcoding to MPEGPS-MPEG2-AC3
# version 1.6   Found a nicer png icon. Thanks bytesp (from Issue 1187)
#               Changed "RendererIcon = philips 40pfl8605h_12.png" to philips-pfl.png
#               Renamed config file "Philips 40pfl8605h_12 1.6.conf" to PhilipsPFL 1.6.conf
#               Thanks Raptor399 For adding the renderer config for future inclusion in UMS.

# Possible supported renderers:
# ----------------------------------------------------------------------------
# According the specs from the 'Codec_table_all.xls' downloaded from Philips support,
# it is suitable for the xxPFLxxx5 serie. Not tested by me!

# Specification Philips 40pfl8605h_12:
# ----------------------------------------------------------------------------
# Taken from leaflet 15.6.9
#
# Picture playback format: jpeg
# Music playback formats: mp3,wma(v2 up to v9.2),aac
#
# Video playback formats:
# Codec support: h.264/mpeg-4 avc,mpeg 1,mpeg 2,mpeg 4,wmv9/vc1
# Containers: avi,mkv
#
# Taken from manual.
# playback formats:
# jpeg (still pictures)
# mpeg program and transport stream
# mp4
# asf

# Information from the "Device Sniffer for UPnP Technologies" program:
#
# HTTP/1.1 200 OK
# CACHE-CONTROL: max-age=1800
# DATE: Mon, 26 Sep 2011 22:19:40 GMT
# EXT:
# LOCATION: http://192.168.2.8:49153/nmrDescription.xml
# SERVER: Windows2000/0.0 UPnP/1.0 PhilipsIntelSDK/1.4 DLNADOC/1.50
# X-User-Agent: redsonic
# ST: upnp:rootdevice
# USN: uuid:F00DBABE-SA5E-BABA-DADA00903EF2D114::upnp:rootdevice

# Protocol info:
# ----------------------------------------------------------------------------
# Mime types obtained with the "device spy for upnP technologies" program:
#
# audio/mpeg:DLNA.ORG_PN=MP3,                           Used for mp2 mp3.
# audio/x-ms-wma:*,                                     Used for wma.
# audio/mp4:*,                                          Used for mp4 aac.
# audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM,     Used for aiff and wav.
# audio/L16;rate=44100;channels=1:DLNA.ORG_PN=LPCM,     Used for aiff and wav.
# audio/L16;rate=48000;channels=2:DLNA.ORG_PN=LPCM,     Used for aiff and wav.
# audio/L16;rate=48000;channels=1:DLNA.ORG_PN=LPCM,     Used for aiff and wav.
# audio/wav:*,                                          Not used. Can be used for wav.
# audio/x-ms-asf:*,                                     Not used.
# audio/vnd.dlna.adts:*,                                Not used.
#
# video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL,      Used for mpegps and can be used for mpegts.
# video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC,
# video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_EU_ISO,
# video/x-matroska:*,                                   Used for mkv.
# video/x-msvideo:*,                                    Used for avi and divx.
# video/x-ms-wmv:*,                                     Used for vc1.
# video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU,    Used for mpegts.
# video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU_T,
# video/h264:*,                                         Used for mp4 and mov.
# video/avi:*,               Not used. Can be used for avi and divx.
# video/x-ms-avi:*,          Not used. Can be used for avi and divx.
# video/msvideo:*,           Not used. Can be used for avi and divx.
# video/x-ms-asf:*,          Not used. Can be used for vc1.
# video/x-ms-asf-plugin:*,   Not used. Can be used for vc1.
# video/mpeg4:*,             Not used. Doesn't work for mp4 or mov. (Instead video/mp4 works)
#
# image/jpeg:DLNA.ORG_PN=JPEG_SM,      Used for jpg.
# image/jpeg:DLNA.ORG_PN=JPEG_MED,
# image/jpeg:DLNA.ORG_PN=JPEG_LRG,
# image/jpeg:DLNA.ORG_PN=JPEG_SM_ICO,
# image/jpeg:DLNA.ORG_PN=JPEG_LRG_ICO,
# image/jpeg:DLNA.ORG_PN=JPEG_TN,

# Findings:
# ----------------------------------------------------------------------------
# Additional information about the supported codec can be downloaded
# from the philips supportforum.
# http://www.supportforum.philips.com
# ----------------------------------------------------------------------------
# If the video codec is supported and the first audio codec NOT like DTS,
# the video do not play native.
# The 40pfl8605h_12 doesn't support subtitles native. (unless the file be transcoded)
# The 40pfl8605h_12 doesn't support to switch between audio tracks with video files native.
# ----------------------------------------------------------------------------
# Audio files that contain a cover image doesn't preview an thumbnail.
# ----------------------------------------------------------------------------
# The following codecs are not supported by the 40pfl8605h_12 with my test files.
# They are (by my knowledge) not excludable within the defining of the "Supported"
# formats. So unfortunately they are played incorrect and not transcoded.
#
# video:
# avi mpeg-4 visual with div3 codec id. (divx 3)
# avi mpeg-4 visual with MPG4 codec id.
# avi mpeg-4 visual with MP42 codec id.
# mp4 avc (h264) with format profile baseline@L4.1 and high@L4.1 (birate limited b:4528690)
# mov mpeg-4 quickTime with avc (h264) and format profile main@L4.1 (mov removed version 1.5)
#
# audio:
# wma voice
# wma pro
# wav with dts
# wav with mp3
# ----------------------------------------------------------------------------
# If some sound issue is met while transcoding, set the AC3 bitrate to 448 Kbps in the transcoding tab.
# ----------------------------------------------------------------------------

RendererName = Philips TV
RendererIcon = philips-pfl.png

# ============================================================================
# This renderer has sent the following string/s:
#
# HTTP User-Agent: Windows2000/0.0 UPnP/1.0 PhilipsIntelSDK/1.4 DLNADOC/1.50
# ============================================================================
#

UserAgentSearch = PhilipsIntelSDK/1.4|Streamium/1.0
UpnpDetailsSearch = Philips TV

TranscodeAudio = WAV
MimeTypesChanges = audio/x-m4a = audio/mp4
TranscodeExtensions = m2ts
MaxVideoBitrateMbps = 75
ShowDVDTitleDuration = true
CreateDLNATreeFaster = true
TranscodeFastStart = true
KeepAspectRatio = true
HalveBitrate = true
MediaInfo = true

# Our Philips PFL-specific notes:
# DTS is not supported.
# MPEG-TS with H.264 is not supported.
# 6 (5.1) audio channels are supported.
# H.264 within AVI containers is not supported.
# DivX with QPEL within AVI container is not supported.
# GMC is supported.
# WMV is supported, but not with 5.1 or PRO audio.
# WMA audio is only supported within a WMA or WMV container.
# LPCM audio is only supported with MPEG-2, AIFF or WAV.
# MOV is not supported well enough to confidently stream.
# MKV with VC-1, MPEG-2, MPEG-4 or DivX is not supported.

# Supported video formats:
Supported = f:mpegps   v:mpeg1       a:mpa|mp3                          m:video/mpeg
Supported = f:mpegps   v:mpeg2       a:ac3|lpcm|mp3|mpa                 m:video/mpeg
Supported = f:mpegts   v:mpeg2       a:mpa|ac3|lpcm                     m:video/vnd.dlna.mpeg-tts
Supported = f:avi      v:mp4         a:ac3|mp3|mpa                      m:video/x-msvideo
Supported = f:avi      v:divx        a:ac3|mp3|mpa                      m:video/x-msvideo               qpel:no
Supported = f:divx     v:divx        a:ac3|mp3|mpa                      m:video/x-msvideo
Supported = f:mp4      v:h264        a:aac-lc|he-aac|ac3|mp3|mpa        m:video/h264                    b:4528690
Supported = f:mp4      v:mp4         a:aac-lc|he-aac|ac3|mp3|mpa        m:video/h264
Supported = f:wmv      v:vc1         a:wma                              m:video/x-ms-wmv                n:2          s:48000
Supported = f:mkv      v:h264        a:aac-lc|he-aac|ac3|mp3|mpa        m:video/x-matroska

# Supported audio formats:
Supported = f:adts       n:2   a:aac-lc s:48000               m:audio/vnd.dlna.adts
Supported = f:aiff|wav   n:2   a:lpcm   s:44100   b:1445069   m:audio/L16
Supported = f:mp3|mpa    n:2            s:48000   b:327680    m:audio/mpeg
Supported = f:mp4        n:6   a:aac-lc s:48000   b:327680    m:audio/mp4
Supported = f:wma        n:2   a:wma    s:48000   b:348160    m:audio/x-ms-wma
