At the moment PMS recognizes the windows phone client and I can reproduce all the videos already correctly encoded, the problem is that I can't understand how to set the correct transcoding options for the others.
Windows Phone supports .mp4 and .wmv files as described here.
If I understand correctly there's no way to transcode using as video codec WMV3 so wmv is excluded, using a command like this:
- Code: Select all
"C:\Program Files (x86)\PS3 Media Server\win32\ffmpeg.exe" -sn -i "D:\input.avi" -vcodec libx264 -f mp4 -acodec aac -strict experimental -g 1 -qscale 1 -qmin 2 -ab 320k -threads 8 -muxpreload 0 -y "D:\output.mp4"
I obtain a correctly transcoded file, how can I make PMS produce something similar through the .conf file?
At the moment I have this:
- Code: Select all
#-----------------------------------------------------------------------------
# PS3 Media Server renderer configuration profile for Windows Phone Devices
#-----------------------------------------------------------------------------
# RENDERER INFORMATION
#
RendererName = Windows Phone
RendererIcon = WindowsPhone.png
#-----------------------------------------------------------------------------
# RENDERER RECOGNITION
#
UserAgentSearch = NativeHost|WindowsPhone
#UserAgentAdditionalHeader = X-AV-Client-Info
#UserAgentAdditionalHeaderSearch =
#-----------------------------------------------------------------------------
# BASIC CAPABILITIES
#
Video = true
Audio = true
Image = true
#-----------------------------------------------------------------------------
# DLNA SETTINGS
#
# SeekByTime: Set to true to use the DLNA feature seek by time instead of by
# range.
SeekByTime = false
# DLNALocalizationRequired: Serve different flavors of localization in the
# DLNA parameters (PAL/NTSC, NA/EU/JP) to allow every world wide renderer to
# see the files. Important for Sony Bravia TVs.
#DLNALocalizationRequired = false
# CBRVideoBitrate is useful for renderers without SeekByTime support. It does time2byte conversion to support FF/RW.
# Only possibility how to predict where we are when seeking is using CBR bitrate instead of VBR used by default
# Making CBR stream by MEnocder is 3 times slower than using VBR so count with it if you have poor computer!
# Speed can be hopefully optimized little bit in the future:
# http://www.ps3mediaserver.org/forum/viewtopic.php?f=14&t=8883&p=53706&hilit=ditlew#p53700
# http://www.ps3mediaserver.org/forum/viewtopic.php?f=11&t=11284&p=62765&hilit=1835#p62765
# CBRVideoBitrate=15000
# ByteToTimeseekRewindSeconds is used for finetuning so default is 0
# ByteToTimeseekRewindSeconds=0
#-----------------------------------------------------------------------------
# MEDIAINFO
#
# MediaInfo: Set to "true" if PMS should parse files with MediaInfo. This will
# give PMS more accurate information, speed up browsing and prevent potential
# playback errors. It also enables the use of "Supported" to more accurately
# define the supported formats for the renderer.
MediaInfo = true
# Se impostato a true vengono restituite cartelle vuote
CreateDLNATreeFaster = false
# TranscodeVideo: Codec to use for video transcoding.
# Currently supported: "MPEGAC3", "MPEGTSAC3" or "WMV".
TranscodeVideo = MPEGTSAC3
# TranscodeAudio: Codec to use for audio transcoding.
# Currently supported: "LPCM", "MP3" or "WAV".
TranscodeAudio = MP3
# DefaultVBVBufSize: Whether or not to use the default DVD buffer size. Setting
# this to "false" means a greater bit rate and faster encoding, but it can
# generate incompatible videos dependent on the renderer.
#DefaultVBVBufSize = false
# WrapDTSIntoPCM: Set to "true" if the media renderer supports DTS wrapped
# into LPCM in a MPEG file.
WrapDTSIntoPCM = false
# MuxLPCMToMpeg: Set to "true" if the media renderer supports LPCM in a MPEG
# file. Ignored if MediaInfo = true.
MuxLPCMToMpeg = false
# MaxVideoBitrateMbps: The maximum bit rate supported by the media renderer.
# Setting to "0" means unlimited.
# If computer is low on resources it is better to avoid using bandwidth limit which is much CPU demanding
# It is better to lower quality settings by defining "CustomMencoderQualitySettings".
# By lowering quality also bitrate is decreased but it is not so CPU aggresive so it is preferred to use it this way
MaxVideoBitrateMbps = 2
# MaxVideoWidth: Maximum width supported by the media renderer. Setting to "0"
# means unlimited. This setting is ignored for files matching "Supported"
# formats when MediaInfo = true.
MaxVideoWidth = 800
# MaxVideoHeight: Maximum height supported by the media renderer. Setting to
# "0" means unlimited. This setting is ignored for files matching "Supported"
# formats when MediaInfo = true.
MaxVideoHeight = 480
# H264Level41Limited: Set to "true" if the media renderer supports only H264
# L4.1 at most.
H264Level41Limited = true
# TranscodeAudioTo441kHz: Set to "true" if music files need to be resampled at
# 44.1kHz.
TranscodeAudioTo441kHz = false
# TranscodeFastStart: Set to "true" if the renderer has a short timeout delay
# and needs to receive transcoded video with minimal delay. If set to "false",
# PMS will take some time to buffer some of the transcoded video.
TranscodeFastStart = true
# TranscodeExtensions: Comma separated list of file extensions that are forced
# to be transcoded and never streamed. Best left empty if MediaInfo = true,
# and define "Supported" formats instead.
TranscodeExtensions =
# StreamExtensions: Comma separated list of file extensions that are forced
# to be streamed and never transcoded. Best left empty if MediaInfo = true,
# and define "Supported" formats instead.
StreamExtensions =
# ForceJPGThumbnails: Some renderers require thumbnails to be represented as
# JPEGs (JPEG_TN) in the DLNA directory XML (e.g. Sony Bravia TVs and Blu-ray
# players). Set this to true to force PMS to use this representation. Note:
# this has no effect on thumbnail file formats or content-type headers.
ForceJPGThumbnails = false
# ChunkedTransfer: Some renderers are particular about the "Content-Length"
# headers in requests (e.g. Sony Blu-ray players). By default, PMS will send
# a "Content-Length" that refers to the total media size, even if the exact
# length is unknown. Default value is false. Set this option to true to omit
# sending a length when it is unknown.
ChunkedTransfer = false
# CustomMencoderQualitySettings: Overrides the MEncoder transcoding quality
# settings in PMS for this renderer. Default is empty, which means the PMS
# settings will be used.
CustomMencoderQualitySettings =
# CustomMencoderOptions: Overrides the MEncoder custom options in PMS for
# this renderer. Default is empty, which means the PMS
# settings will be used.
CustomMencoderOptions = -lavfopts format=mp4 -lavcopts vcodec=mpeg4:acodec=libmp3lame:abitrate=320
#-----------------------------------------------------------------------------
# IMAGES
#
# AutoExifRotate: Many cameras store information in the image file about the
# orientation of the camera while the picture was taken, allowing viewers to
# know which way was up. Set this option to "true" to allow PMS to rotate JPEG
# files based on EXIF information contained in the file, and relieve the
# renderer of that task.
AutoExifRotate = true
#-----------------------------------------------------------------------------
# SUPPORTED MEDIA FORMATS
#
# [Supported video formats]:
Supported = f:mp4 v:h264 a:aac n:2 m:video/mp4 w:800 h:480
#Supported = f:mp4 v:mp4 a:mp3 n:2 m:video/mp4 w:800 h:480
Supported = f:wmv v:wmv|vc1 a:wma n:2 m:video/x-ms-wmv w:800 h:480
# [Supported audio formats]:
Supported = f:mp3 n:2 m:audio/mpeg
#Supported = f:aac n:2 a:(?!alac).+ m:audio/x-m4a
Supported = f:wma n:2 m:audio/x-ms-wma
# [Supported image formats]
Supported = f:bmp m:image/bmp
#Supported = f:jpg m:image/jpeg
#Supported = f:png m:image/png
#Supported = f:gif m:image/gif
#-----------------------------------------------------------------------------
I hope someone can help me out
