#----------------------------------------------------------------------------
# Profile for Philips PFL (40pfl8605h_12).
# See PS3.conf for a description of all possible configuration 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 MPEGPSAC3
# 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 PMS.

# 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

# Connection info:
# --------------------------------------------------------------------------------------------
# User-Agent obtained from the debug.log file:
# HTTP User-Agent: Windows2000/0.0 UPnP/1.0 PhilipsIntelSDK/1.4 DLNADOC/1.50
# --------------------------------------------------------------------------------------------
# Additional information i have got obtained with the
# "Device Sniffer for UPnP Technologies" program:
# 192.168.2.8 is the ip address of the renderer.
#
# 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
# --------------------------------------------------------------------------------------------
# .aac audio files into "adts" container play correctly with usb on the 40pfl8605h_12
# and windows media player 12 can stream these files.
# Unfortunately the debug.log file gives the next error when browsing into it
# [New I/O server worker #1-4] INFO 23:46:50.055 The file W:\Muziek\Audio Data
# Transport Stream.aac was badly parsed. It will be hidden.
# Because of this I wasn't able to test next line:
# Supported = f:adts a:aac s:48000 m:audio/vnd.dlna.adts

# Setup:  (Refer to PS3.conf for help for all settings used.)
# --------------------------------------------------------------------------------------------
RendererName = Philips TV
RendererIcon = philips-pfl.png

# Renderer recognition:
# --------------------------------------------------------------------------------------------
UserAgentSearch = PhilipsIntelSDK
# No additional userAgent known.
UserAgentAdditionalHeader =
UserAgentAdditionalHeaderSearch =

# Config settings:
# --------------------------------------------------------------------------------------------
# Enables the use of "Supported" to more accurately define the supported formats
# for the renderer and faster browsing.
MediaInfo = true
# --------------------------------------------------------------------------------------------
# With the 40pfl8605h_12 it is not possible to seek by time.
SeekByTime = false
# --------------------------------------------------------------------------------------------
# On 40pfl8605h_12 working codec for video Transcoding: MPEGTSAC3 , MPEGPSAC3
TranscodeVideo = MPEGPSAC3
# On 40pfl8605h_12 working codec for audio Transcoding:  MP3 , LPCM, WAV
TranscodeAudio = WAV
# --------------------------------------------------------------------------------------------
# Ignored if MediaInfo = true:
MuxH264ToMpegTS = false
MuxDTSToMpeg = false
MuxLPCMToMpeg = true
MimeTypesChanges = audio/x-m4a = audio/mp4
# --------------------------------------------------------------------------------------------
# Best left empty if MediaInfo = true
# Overrides the "Supported" formats:
TranscodeExtensions = m2ts
StreamExtensions =
# --------------------------------------------------------------------------------------------
# Next line doesn't work with my tested jpeg files with exif info.
# (the jpeg pics are not rotated in its original state).
AutoExifRotate = true
# --------------------------------------------------------------------------------------------
# Function taken from WDTVLive.conf
# Show the duration of a dvd iso title in the overview.
ShowDVDTitleDuration = true

# Media renderer capabilities:
# --------------------------------------------------------------------------------------------
Video = true
Audio = true
Image = true
DLNALocalizationRequired = false
CreateDLNATreeFaster = true
ForceJPGThumbnails = true
DefaultVBVBufSize = false
MaxVideoBitrateMbps = 75
H264Level41Limited = false
TranscodeAudioTo441kHz = false
WrapDTSIntoPCM = false
ChunkedTransfer = false
TranscodeFastStart = false
TranscodedVideoFileSize = 0

# Ignored for files matching "Supported" formats.
MaxVideoWidth = 1920
MaxVideoHeight = 1080

# Supported formats:
# --------------------------------------------------------------------------------------------
# The "Supported" will only be used if "MediaInfo = true".
# ok will mean that I have tested this codec combination.
# ? will mean that I have no test files with this codec. So it is an possible supported codec.

# [Supported video formats]:
# --------------------------------------------------------------------------------------------
# mpegps mpeg1 tested ok up to 1920x1080.
# =====================ok======ok==ok=
Supported = f:mpegps v:mpeg1 a:mpa|mp3 m:video/mpeg
# =====================ok======ok==ok==ok==ok==
Supported = f:mpegps v:mpeg2 a:mpa|mp3|ac3|lpcm m:video/mpeg
# --------------------------------------------------------------------------------------------
# mpegts with h264 is not supported.
# Multiple audio channels are supported.
# Both mime types work for mpegts: video/mpeg , video/vnd.dlna.mpeg-tts
# =====================ok======ok==ok==ok==
Supported = f:mpegts v:mpeg2 a:mpa|ac3|lpcm m:video/vnd.dlna.mpeg-tts
# --------------------------------------------------------------------------------------------
# No limit to the resolution with avi and divx.
# avc (h264) video doesn't work with avi and divx.
# lpcm and wma audio aren't working.
#
# avi with qpel and gmc test:
# 40pfl8605h_12 not ok qpel yes gmc 2  avi divx (divx 5)
# 40pfl8605h_12     ok qpel no  gmc 2  avi divx (divx 5)
# 40pfl8605h_12     ok qpel yes gmc no avi mp4  (xvid asp l5)
# 40pfl8605h_12     ok qpel no  gmc 3  avi mp4  (xvid asp l5)
# 40pfl8605h_12     ok qpel yes gmc 3  avi mp4  (xvid asp l5)
# qpel is not supported with avi divx.
#
# Mime types working with avi and divx:
# video/avi , video/x-ms-avi , video/msvideo , video/x-msvideo
# ==================ok====ok==ok==ok=
Supported = f:avi v:mp4 a:ac3|mp3|mpa m:video/x-msvideo
# =========================ok==ok==?==
Supported = f:avi v:divx a:ac3|mp3|mpa m:video/x-msvideo qpel:no
#
# My test files with the divx format have no gmc or qpel yes:
# ===================ok=====ok==ok==?============== qpel?
Supported = f:divx v:divx a:ac3|mp3|mpa m:video/x-msvideo
# --------------------------------------------------------------------------------------------
# b: seems to could be used as max video bitrate. Not confirmed in PS3.conf
# mp4 with h264 max bitrate ok tested file have 4403 Kbps = 4508672 bps
# b:4528690 needed to skip transcode with this test file.
# This adding fixes most of the baseline@L4.1 and high@L4.1 problems.
#
# mp4 with lpcm audio is not supported.
# Both mime types work for mp4: video/mp4 , video/h264
# ==================ok=====ok==ok==ok==?==
Supported = f:mp4 v:h264 a:aac|ac3|mp3|mpa b:4528690 m:video/h264
#
# (according Phillips specs. 720x576i max and 8Mbps max voor mp4.)
# But tested ok up to 1920x1080.
# ==================ok====ok==ok==ok==?==
Supported = f:mp4 v:mp4 a:aac|ac3|mp3|mpa m:video/h264
# --------------------------------------------------------------------------------------------
# mov with h264 can play native, but the bitrate of most files is to high to play flawless.
# mov with mp4 video is not supported.
# mov with mp3 audio is not supported.
# mov with lpcm audio is not supported.
# Both mime types work for mov: video/mp4 , video/h264
# ==================ok=====ok==?===?==
# Supported = f:mov v:h264 a:aac|ac3|mpa m:video/h264
# --------------------------------------------------------------------------------------------
# wmv1 and wmv2 aren't supported.
# wmv with mpeg2 video is not supported.
# wmv with mp4 video is not supported.
# wmv with lpcm audio is not supported.
# Next mime types works for wmv vc1 and wmv3:
# video/x-ms-asf , video/x-ms-asf-plugin and video/x-ms-wmv
# ==================ok====ok=
Supported = f:wmv v:vc1 a:wma n:2 s:48000 m:video/x-ms-wmv
# --------------------------------------------------------------------------------------------
# mkv with mp4, vc1, mpeg2 and dv video are not supported.
# lpcm audio doesn't work native with my test mkv files.
# ==================ok=====ok==ok==ok==ok=
Supported = f:mkv v:h264 a:aac|ac3|mp3|mpa m:video/x-matroska

# [Supported audio formats]:
# --------------------------------------------------------------------------------------------
# ============ok==ok=
Supported = f:mpa|mp3 n:2 s:48000 b:327680 m:audio/mpeg
# ==================ok=
Supported = f:wma a:wma n:2 s:48000 b:348160 m:audio/x-ms-wma
# ==================ok=
Supported = f:mp4 a:aac n:6 s:48000 b:327680 m:audio/mp4
# --------------------------------------------------------------------------------------------
# mp3 is not supported with wav audio.
# ============ok===ok====ok==
Supported = f:aiff|wav a:lpcm n:1 s:44100 b:1445069 m:audio/L16;rate=44100;channels=1
Supported = f:aiff|wav a:lpcm n:2 s:44100 b:1445069 m:audio/L16;rate=44100;channels=2
Supported = f:aiff|wav a:lpcm n:1 s:48000 b:1445069 m:audio/L16;rate=48000;channels=1
Supported = f:aiff|wav a:lpcm n:2 s:48000 b:1445069 m:audio/L16;rate=48000;channels=2
# --------------------------------------------------------------------------------------------
# mpeg-4 audio files with m4a codec id and .m4a file extension don't
# sound correctly (Suddenly speed up and then plays again).
# Files with a constant bitrate have the same problem.
# Same error occurs when files are directly played on 40pfl8605h_12 from an usb stick.
# Supported = f:aac a:aac n:6 s:48000 b:327680 m:audio/mp4
# --------------------------------------------------------------------------------------------
# My Test adts audio files are badly parsed. No tested line.
# Supported = f:adts a:aac s:48000 m:audio/vnd.dlna.adts

# [Supported image formats]:
# --------------------------------------------------------------------------------------------
# An preview thumbnail of jpeg are generated on the right of the browser.
Supported = f:jpg m:image/jpeg
# --------------------------------------------------------------------------------------------
# tiff is not supported. This line is added so that the 40pfl8605h_12 recognizes tiff
# as an unsupported format.
Supported = f:tiff m:image/tiff
# -------------------------------------- end of config ---------------------------------------