Philips PLF 9xx3, bad scaling

Discuss media renderers like Xbox 360, TVs, smartphones, etc.
Post Reply
nimierkki
Posts: 1
Joined: Sun Aug 23, 2015 3:47 am

Philips PLF 9xx3, bad scaling

Post by nimierkki »

Hi

I cant configure UMS to Transcode movies nicely to my TV

I have tried to add following MEncoder control line in many different places but it seems to be uneffective

Code: Select all

-vf expand=::::1:16/9,scale=1920:1080
Log:

Code: Select all

DEBUG 18:52:59.290 [mencoder.exe-8] Starting C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe -ss 216.0 D:\Latausta\MOVIE.mkv -msglevel statusline=2 -oac lavc -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -vf expand=::::1:16/9,scale=1920:1080 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=448:threads=2:keyint=25:vqmax=5:vqmin=2:vrc_maxrate=24000:vrc_buf_size=7000 -aid 0 -nosub -noautosub -ofps 24000/1001 -vf expand=-0:-2,softskip -lavdopts fast -af lavcresample=48000 -srate 48000 -o \\.\pipe\mencoder1440258778992
DEBUG 18:52:59.294 [mencoder.exe-8] Reading pipe: \\.\pipe\mencoder1440258778992
DEBUG 18:52:59.294 [mencoder.exe-8] Attaching thread: mencoder.exe-8
DEBUG 18:52:59.309 [Thread-64] MEncoder SB63-UMS (C) 2000-2015 MPlayer Team
DEBUG 18:52:59.309 [Thread-64] Custom build by SubJunk, http://www.spirton.com
DEBUG 18:52:59.309 [Thread-64] 
DEBUG 18:52:59.313 [Thread-64] success: format: 0  data: 0x0 - 0x29382bf8
DEBUG 18:52:59.313 [Thread-64] libavformat version 56.19.100 (internal)
DEBUG 18:52:59.315 [Thread-64] libavformat file format detected.
DEBUG 18:52:59.331 [Thread-64] [lavf] stream 0: video (h264), -vid 0
DEBUG 18:52:59.331 [Thread-64] [lavf] stream 1: subtitle (srt), -sid 0, -slang eng
DEBUG 18:52:59.331 [Thread-64] [lavf] stream 2: audio (ac3), -aid 0, -alang eng
DEBUG 18:52:59.331 [Thread-64] [lavf] stream 3: audio (ac3), -aid 1, -alang spa
DEBUG 18:52:59.331 [Thread-64] VIDEO:  [H264]  1280x534  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
DEBUG 18:52:59.331 [Thread-64] [V] filefmt:44  fourcc:0x34363248  size:1280x534  fps:23.976  ftime:=0.0417
DEBUG 18:52:59.331 [Thread-64] ==========================================================================
DEBUG 18:52:59.331 [Thread-64] Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
DEBUG 18:52:59.332 [Thread-64] libavcodec version 56.20.100 (internal)
DEBUG 18:52:59.333 [mencoder.exe-8-2] [ac3 @ 02015940]Channel layout '5.1(side)' with 6 channels does not match specified number of channels 2: ignoring specified channel layout
DEBUG 18:52:59.333 [Thread-64] AUDIO: 48000 Hz, 2 ch, floatle, 384.0 kbit/12.50% (ratio: 48000->384000)
DEBUG 18:52:59.333 [Thread-64] Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
DEBUG 18:52:59.333 [Thread-64] ==========================================================================
DEBUG 18:52:59.333 [Thread-60] Result of \\.\pipe\mencoder1440258778992 : true
DEBUG 18:52:59.334 [Thread-64] PACKET SIZE: 2048 bytes, deltascr: 884
DEBUG 18:52:59.336 [Thread-64] Opening video filter: [expand osd=1]
DEBUG 18:52:59.336 [Thread-64] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
DEBUG 18:52:59.336 [Thread-64] Opening video filter: [softskip]
DEBUG 18:52:59.336 [Thread-64] Opening video filter: [expand w=-0 h=-2]
DEBUG 18:52:59.336 [Thread-64] Expand: 0 x -2, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
DEBUG 18:52:59.336 [Thread-64] ==========================================================================
It seems that i cant add parameters to -vf properly as log there is -vf twice. How can i get this to work properly ?


I can get movie to play by using internal scale option, but sience aspect ratio isn't allways right is shows up like a crap.
Video wont show up if resolution isn't supported. I would like to expand movie to supported resolution, which baisically means adding letterbox to video. Sadly scaling ins't very usefulf for that.

Log when movie shows up and aspect ratio is in correct:

Code: Select all

DEBUG 19:29:16.760 [mencoder.exe-8] Starting C:\Program Files (x86)\Universal Media Server\win32\mencoder.exe -ss 0 D:\Latausta\MOVIE.mkv -msglevel statusline=2 -oac lavc -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=448:threads=2:keyint=25:vqmax=5:vqmin=2:vrc_maxrate=24000:vrc_buf_size=7000 -aid 0 -nosub -noautosub -fps 24000/1001 -ofps 24000/1001 -vf scale=1920:1080 -lavdopts fast -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o \\.\pipe\mencoder1440260956723
DEBUG 19:29:16.765 [mencoder.exe-8] Reading pipe: \\.\pipe\mencoder1440260956723
DEBUG 19:29:16.765 [mencoder.exe-8] Attaching thread: mencoder.exe-8
DEBUG 19:29:16.785 [Thread-57] MEncoder SB63-UMS (C) 2000-2015 MPlayer Team
DEBUG 19:29:16.785 [Thread-57] Custom build by SubJunk, http://www.spirton.com
DEBUG 19:29:16.785 [Thread-57] 
DEBUG 19:29:16.788 [Thread-57] success: format: 0  data: 0x0 - 0x29382bf8
DEBUG 19:29:16.788 [Thread-57] libavformat version 56.19.100 (internal)
DEBUG 19:29:16.790 [Thread-57] libavformat file format detected.
DEBUG 19:29:16.805 [Thread-57] [lavf] stream 0: video (h264), -vid 0
DEBUG 19:29:16.805 [Thread-57] [lavf] stream 1: subtitle (srt), -sid 0, -slang eng
DEBUG 19:29:16.805 [Thread-57] [lavf] stream 2: audio (ac3), -aid 0, -alang eng
DEBUG 19:29:16.805 [Thread-57] [lavf] stream 3: audio (ac3), -aid 1, -alang spa
DEBUG 19:29:16.805 [Thread-57] VIDEO:  [H264]  1280x534  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
DEBUG 19:29:16.805 [Thread-57] [V] filefmt:44  fourcc:0x34363248  size:1280x534  fps:23.976  ftime:=0.0417
DEBUG 19:29:16.805 [Thread-57] Input fps will be interpreted as 23.976 instead.
DEBUG 19:29:16.805 [Thread-57] ==========================================================================
DEBUG 19:29:16.805 [Thread-57] Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
DEBUG 19:29:16.807 [Thread-57] libavcodec version 56.20.100 (internal)
DEBUG 19:29:16.807 [mencoder.exe-8-2] [ac3 @ 01115940]Channel layout '5.1(side)' with 6 channels does not match specified number of channels 2: ignoring specified channel layout
DEBUG 19:29:16.807 [Thread-57] AUDIO: 48000 Hz, 2 ch, floatle, 384.0 kbit/12.50% (ratio: 48000->384000)
DEBUG 19:29:16.807 [Thread-57] Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
DEBUG 19:29:16.807 [Thread-57] ==========================================================================
DEBUG 19:29:16.807 [Thread-53] Result of \\.\pipe\mencoder1440260956723 : true
DEBUG 19:29:16.809 [Thread-57] PACKET SIZE: 2048 bytes, deltascr: 884
DEBUG 19:29:16.809 [Thread-57] Opening video filter: [expand osd=1]
DEBUG 19:29:16.809 [Thread-57] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
DEBUG 19:29:16.809 [Thread-57] Opening video filter: [scale w=1920 h=1080]
DEBUG 19:29:16.809 [Thread-57] ==========================================================================
DEBUG 19:29:16.809 [Thread-57] Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
DEBUG 19:29:16.810 [Thread-57] Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
DEBUG 19:29:16.810 [Thread-57] =========================================================================

Render.conf:

Code: Select all

# --------------------------------------------------------------------------------------------
# PS3 Media Server renderer configuration profile for Philips TV xxPFL9xx3 (year 2008)
# Revision number 1.0
# Refer to PS3.conf for help with all used settings. 
# By Leo from Holland
# leroy on forum

# History:
# --------------------------------------------------------------------------------------------
# version 1.0   First version posted (need testing)

# Possible supported renderers:
# --------------------------------------------------------------------------------------------
# 32PFL9603
# 37PFL9603
# 32PFL9613
# 42PFL9603
# 42PFL9703
# 42PFL9803
# 47PFL9603
# 47PFL9703
# 52PFL9703
# 37PFL9903H/10 (Aurea)
# 42PFL9903H/10 (Aurea)

# Natively supported formats xxPFL9xx3:
# --------------------------------------------------------------------------------------------
# Video: MPEG-1, MPEG-2
# Audio: MP3
# Photo: JPEG

# Additional info:
# --------------------------------------------------------------------------------------------
# I guess next info that I noticed while creating a config-file with a newer
# 32PFL9604H_12 (2009) TV, also applies to the xxPFL9xx3 (2008) TV's:
# --------------------------------------------------------------------------------------------
# This TV has a very small timeout delay for receiving data.
# This is very noticeable with web streams where it takes some time to stream the data.
# By repeatedly pressing play>stop the transcoded video eventually will play.
# --------------------------------------------------------------------------------------------
# This TV does not support all resolutions with MPEG-2. 
# For example a MKV video with a resolution, 1920x1040 gives only sound and no picture while
# transcoding.
# The video must have a supported display aspect ratio of 16:9 or 4:3.
# To solve this, video scaling is needed.
# Unfortunately not all resolution standards are supported:
#
# 16:9
# supported:     854x480 / 1024x576 / 1280x720 / 1920x1080
# Not supported: 1366x768
#
# 4:3
# supported:     320x240 / 384x288 / 640x480 / 720x576  / 800x600 / 1440x1080
# Not supported: 768x576 / 1024x768 / 1152x864 / 1280x960 / 1400x1050
#
# Note: Video scaling uses many CPU load, so the transcode buffer fills slower.
# --------------------------------------------------------------------------------------------
# MPEG transport stream is not supported, therefore tsMuxeR (that will always output MpegTS),
# cannot be used as a engine for muxing.
# To be sure tsMuxeR is not used, disable (not checked) next PMS settings:
#
# "Use LPCM for audio (no re-encode)"
# "Keep AC-3 track (no re-encode, may cause inaudible dialog and A/V sync issues)"
# "Remux DVD ISO video track (no re-encode)"
# "Remux videos with tsMuxeR when possible instead of transcoding"
#  And/or disable the tsMuxeR engine.

# Setup:
# --------------------------------------------------------------------------------------------
RendererName = Philips TV PFL9xx3
RendererIcon = philips.png

# Renderer recognition:
# --------------------------------------------------------------------------------------------
UserAgentSearch = Allegro-Software-WebClient
# No additional HTTP header known.
# UserAgentAdditionalHeader =
# UserAgentAdditionalHeaderSearch =

# Config settings:
# --------------------------------------------------------------------------------------------
# Enables the use of "Supported = " lines to more accurately define the supported formats,
# for the renderer and faster browsing.
MediaInfo = true
# --------------------------------------------------------------------------------------------
TranscodeVideo = MPEGPSAC3
TranscodeAudio = MP3
# --------------------------------------------------------------------------------------------
# Ignored if MediaInfo = true:
MuxH264ToMpegTS = false
MuxDTSToMpeg = false
MuxLPCMToMpeg = false
# MimeTypeChanges = 
# --------------------------------------------------------------------------------------------
# Best left empty if MediaInfo = true
# Overrides the programed "Supported = " formats:
TranscodeExtensions =
StreamExtensions =
# --------------------------------------------------------------------------------------------
ShowDVDTitleDuration = true
# AutoExifRotate = true
# CustomMencoderQualitySettings =

# Option to scale every transcoded video file to 1920x1080 only for this renderer:
#CustomMencoderOptions = -vf expand=::::1:16/9,scale=1920:1080 
# Media renderer capabilities:
# --------------------------------------------------------------------------------------------
Video = true
Audio = true
Image = true
SeekByTime = false
DLNALocalizationRequired = false
CreateDLNATreeFaster = true
ForceJPGThumbnails = true
DefaultVBVBufSize = false
H264Level41Limited = true
TranscodeAudioTo441kHz = false
WrapDTSIntoPCM = false
ChunkedTransfer = false
TranscodedVideoFileSize = 0
MaxVideoWidth = 1920
MaxVideoHeight = 1080

# I guess this TV has a very small timeout delay.
TranscodeFastStart = true

# Maximum supported video bitrate with transcode to MPEGPSAC3: (tweakable)
MaxVideoBitrateMbps = 50

leroy
Posts: 40
Joined: Sat Jun 02, 2012 8:35 am
Location: Netherlands

Re: Philips PLF 9xx3, bad scaling

Post by leroy »

You can try the 'keep aspect ratio' option.
This can be added to the renderer config file:

Code: Select all

KeepAspectRatio = true
See DefaultRenderer.conf for more info.
ExSport
Posts: 595
Joined: Wed Oct 10, 2012 1:57 am

Re: Philips PLF 9xx3, bad scaling

Post by ExSport »

I don't remember code which puts "-vf expand=-0:-2,softskip" and also your renderer conf misses it.
Check Transcoding settings tab, MEncoder engine, Expert Settings.
Is there some rule which adds this params? If yes, remove it.
Btw. using expand without correct softskip position can lead to problems so as leroy mentioned, the best way is to remove your custom params and try using KeepAspectRatio which automatically puts correct params for MEncoder and FFmpeg engines.
Post Reply