Unknown1User / ps3mediaserver

Automatically exported from code.google.com/p/ps3mediaserver
0 stars 0 forks source link

Support for Sony SMP-N100 Network mediaplayer #1154

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
SONY SMP-N100 is not fully able to play all files atm and a profile needs to be 
implemented.

What is the expected output? What do you see instead?
Basic video files work, MKV will not.

As posted in this thread: 
http://www.ps3mediaserver.org/forum/viewtopic.php?f=15&t=8424

    RendererName=Sony SMP-N100
    RendererIcon=ps3.png

    #UserAgent: regular expression to detect the connected renderer
    UserAgentSearch=PLAYSTATION

    #UserAgentAdditionalHeaders: additional http header for better detection
    UserAgentAdditionalHeader=X-AV-Client-Info
    UserAgentAdditionalHeaderSearch=Media Player

    #Basic capabilities
    Video=true
    Audio=false
    Image=false

    #------------------------------------------------------------
    # DLNA settings

    #Use the DLNA feature seek by time and not by range
    SeekByTime=true

    #Serve different flavors of localization in the DLNA parameters (PAL/NTSC, NA/EU/JP)
    #to allow every worldwide renderer to see the files. Important for Sony Bravia's TVs
    DLNALocalizationRequired=true

    #------------------------------------------------------------
    # Transcoding/Muxing capabilities
    #

    #Transcode codecs for video and audio engines
    #currently supported: MPEGAC3, MPEGTSAC3 or WMV for video, PCM or MP3 for audio
    TranscodeVideo=MPEGAC3
    TranscodeAudio=LPCM

    #Use default DVD buffer size: false = greater bitrate and faster encoding,
    #but can generate incompatible videos, depends of your media renderer
    DefaultVBVBufSize=true

    #Muxing capabilities: Does the media renderer supports H264 and MPEG2 in a mpegts file ?
    #Deprecated if MediaInfo=true
    MuxH264ToMpegTS=true

    #Does the media renderer supports DTS in a mpeg file ?
    #Deprecated if MediaInfo=true
    MuxDTSToMpeg=false

    #Does the media renderer supports DTS wrapped into LPCM in a mpeg file ?
    WrapDTSIntoPCM=false

    #Does the media renderer supports LPCM in a mpeg file ?
    #Deprecated if MediaInfo=true
    MuxLPCMToMpeg=false

    #Maximum bitrate supported by the media renderer (0=unlimited)
    MaxVideoBitrateMbps=0

    #Max Width and Height supported by the media renderer (0=unlimited)
    MaxVideoWidth=0
    MaxVideoHeight=0

    #Does the media renderer supports only H264 L4.1 at most ?
    H264Level41Limited=true

    #Does music files need to be resampled at 44.1kHz?
    TranscodeAudioTo441kHz=false

    #Does the client need to receive transcoded video with minimal delay ? (Useful when the client has a small timeout delay)
    TranscodeFastStart=false

    #Size of the transcoded file (unknown length) sent to the renderer (could determine browsing failure/success)
    #Possible values:
    #           -1: Specific value working with the PS3, means perfect transcoding and copying support (it's against the dlna spec though)
    #            0: size attribute is NOT sent to the renderer (defaut value if this parameter isn't used)
    #100000000000: 100Gb, if you want to be sure that the media file is not cutted before the end ?
    TranscodedVideoFileSize=0

    #-----------------------------------------------------------
    # Misc Images

    #Rotate Jpeg files based on EXIF infos
    AutoExifRotate=true

    #------------------------------------------------------------
    # Misc Files

    # Mime types transforms (oldmime=newmime|olemime2=newmime2|...)
    # Deprecated if MediaInfo=true
    MimeTypesChanges=video/avi=video/x-divx

    # What extensions are forcefully transcoded
    # Don't use this if MediaInfo=true, prefer codec configurations
    TranscodeExtensions=
    # What extensions are forcefully streamed as is (and not transcoded)
    # Don't use this if MediaInfo=true, prefer codec configurations
    StreamExtensions=

    #Better/faster codec detection method ! true to enable it
    #Need testing !
    MediaInfo=false
    # temporary removed lpcm
    Supported = f:mpegps|mpegts    v:mpeg2    a:ac3|aac|mpa   m:video/mpeg
    Supported = f:mp3   m:audio/mpeg
    Supported = f:lpcm  m:audio/L16
    Supported = f:jpg   m:image/jpeg

Original issue reported on code.google.com by mich...@techconnect.nl on 26 Jul 2011 at 11:12

GoogleCodeExporter commented 9 years ago
Profile used in SERVIIO to make it work:

<Profile id="14" name="SMP-N100" extendsProfileId="1">
<Transcoding>
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
<Matches container="matroska" />
<Matches container="avi" vCodec="h264" />
<Matches container="flv" vCodec="h264" />
<Matches container="mp4" />
</Video>
<!-- all other unplayable files just transcode to mpeg2 -->
<Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video">
<Matches container="flv" />
</Video>

Original comment by mich...@techconnect.nl on 27 Jul 2011 at 9:14

GoogleCodeExporter commented 9 years ago
Sniffing an attempt to browse and display a JPEG on the SMPN100, it looks like 
ignoring the "reserved" symbols PMS uses for it's URLs.  Basically PMS says 
"here's your content at /get/0$0$3/image.jpg and aborts because of the "bad" 
URI. 

Reference: http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

I'm not a programmer or a html wizard, but the other DLNA servers that do work 
with the SMP-N100 spit out URIs that look more like a GUID or a randomly 
generated alphanumeric string instead of 0$0$1, 0$0$2, etc.

If it makes a difference, this was run against the latest official (and beta 
too) on Windows 7 32-bit US and JRE 1.6u23.

Since the SMPN100 can at least play MPEG2TS and AVI/DIVX/XVID directly from 
DLNA, I tried a stripped down profile, and not being able to play an MP3, JPG, 
or ANY movies in the aforementioned formats makes me think it's something like 
stated above.  The other DLNA clients that do work go on about their business 
and probably encode/decode the %24s on their end to decipher the paths to the 
DLNA server content.

Original comment by lgmaster...@gmail.com on 3 Aug 2011 at 4:44

GoogleCodeExporter commented 9 years ago
I'm playing around with this too. http://www.serviio.org worked right away. 
(After setting up a JAVA environment variable which I learned from the ps3 
media server setup too.) Will do some more playing and see what happens.

Original comment by st...@implu.com on 15 Aug 2011 at 1:27

GoogleCodeExporter commented 9 years ago
Any updates on this?

Original comment by mich...@interwavestudios.com on 23 Aug 2011 at 5:13

GoogleCodeExporter commented 9 years ago
I have to use Mezzmo for it and would rather use only one server for both, any 
news on this?

Original comment by hector.a...@gmail.com on 29 Sep 2011 at 7:39

GoogleCodeExporter commented 9 years ago
For now i decided to use Mezzmo and that works perfect on all devices.

Original comment by mbeene...@gmail.com on 29 Sep 2011 at 8:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hey guys,

I know this is an old thread, however I have a working .conf file for the 
SMP-N100. I've had this working for over a year now and never posted it because 
honestly I never thought about it. It took me several hours of playing to get 
it to work, but it plays mkv, avi, mpeg, the whole nine. I've only come across 
a couple files it couldn't play out of over 250+ tested files. Please note, for 
"RendererIcon=D:\\Program Files (x86)\\PS3 Media Server\\sonysmpn100.png" I 
have my own icon, you may need to change this depending on your setup. Try it 
out and let me know how it works! I'm not really good at troubleshooting, but 
I'll do my best. This was literally trial and error for me.

Here it is:

# ps3mediaserver renderer profile for Sony SMP-N100
# Refer to PS3.conf for help
RendererName=Sony SMP-N100
RendererIcon=D:\\Program Files (x86)\\PS3 Media Server\\sonysmpn100.png

# ============================================================================
# Sony Bluray uses the following headers:
#
# User-Agent: UPnP/1.0
# X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="Media Player"; mv="2.0";
# X-AV-Physical-Unit-Info: pa="Media Player";
# ---
# User-Agent: UPnP/1.0 DLNADOC/1.50
# X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="Media Player"; mv="2.0";
# X-AV-Physical-Unit-Info: pa="Media Player";
# ============================================================================
# The User-Agent strings are too generic to match
#UserAgentSearch=
UserAgentAdditionalHeader=X-AV-Client-Info
UserAgentAdditionalHeaderSearch=(cn="Sony Corporation"; mn="Media Player")
Video=true
Audio=true
Image=true
SeekByTime=false
TranscodeVideo=MPEGTSAC3
TranscodeAudio=LPCM
DefaultVBVBufSize=true
MuxH264ToMpegTS=false
MuxDTSToMpeg=false
WrapDTSIntoPCM=false
MuxLPCMToMpeg=false
MaxVideoBitrateMbps=0
MaxVideoWidth=0
MaxVideoHeight=0
H264Level41Limited=true
#MimeTypesChanges=
DLNALocalizationRequired=true
TranscodeExtensions=mkv,flv
#StreamExtensions=
MediaParserV2_ThumbnailGeneration=false

# For Sony Bluray players and Bravia TVs
ForceJPGThumbnails=true
# For Sony Bluray players
ChunkedTransfer=true

# Specs below taken from 
http://www.sony.co.uk/product/blu-ray-disc-player/bdp-s370#pageType=TechnicalSpe
cs
# then fine-tuned by lengthy trial and error since so much of that advertised 
spec is inaccurate.
# US models don't support video/divx mime type but European and Canadian models 
do.
# Subtitles in mkv files are only displayed if mime type is video/divx.
# Vob subtitles are not supported.
# See also http://forum.serviio.org/viewtopic.php?f=11&t=2004 for more 
DLNA-related info on these players.

MediaInfo=true
# --- video ---
Supported = f:mpegps|mpegts v:mpeg1|mpeg2   a:ac3|dts|lpcm|mpa|mp3  m:video/mpeg 
Supported = 
f:mpegts    v:h264|vc1  a:ac3|dts|dtshd|truehd|aac|lpcm|mpa|mp3 m:video/vnd.dlna.mpe
g-tts
Supported = 
f:mp4|m4v   v:mp4|h264  a:ac3|dts|dtshd|truehd|aac|lpcm|mpa|mp3 m:video/mpeg
######### NON-US MODELS: CHANGE THE FOLLOWING 2 MIME-TYPES TO m:video/divx
Supported = f:avi|divx  v:divx|mp4  a:ac3|lpcm|mpa|mp3  m:video/mpeg
Supported = 
f:mkv   v:mp4|divx|h264 a:ac3|dts|dtshd|truehd|aac|lpcm|mpa|mp3 m:video/vnd.dlna.m
peg-tts
# --- audio ---
Supported = f:wma   n:2 m:audio/mpeg
Supported = f:mp3   n:2 m:audio/mpeg
Supported = f:lpcm n:2 s:48000 m:audio/L16
# --- image ---
Supported = f:jpg   m:image/jpeg

Original comment by mrw1...@gmail.com on 1 Jul 2012 at 7:17