Unknown1User / ps3mediaserver

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

Improve DLNA profiles support #470

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi
I was adding some code to PMS that improve setting DLNA profile.

RendererConfiguration.getDLNAProfile(String Container, String VCodec,
String ACodec) method try to find dlna profile corresponding to a
combination of container/vcodec/acodec. Profiles supported by renderer
(other than standard: MPEG_PS_PAL, MPEG_TS_SD_EU_ISO and MPEG_TS_SD_EU)
should be set in renderer.conf file. I add some options to .conf files:
DLNAProfilePSMPEG2 (MPEG2 PS container)
DLNAProfileTSMPEG2 (MPEG2 TS container, MPEG2 video)
DLNAProfileMTSMPEG2 (MPEG2 MTS container, MPEG2 video)
DLNAProfileTSAVC (MPEG2 TS container, AVC video)
DLNAProfileMTSAVC (MPEG2 TS container, AVC video)
DLNAProfileTSMPEG2AAC (MPEG2 TS container, MPEG2 video, AAC audio)
DLNAProfileWMV (WMV codec)
DLNAProfileMP4MPEG4 (MP4 container, MPEG4 video)
... and more...

To player and media class I was adding dlnaprofile(RendererConfiguration
mediaRenderer) method, to get currently selected media profile (some
players need to be corrected – I don’t know how to get VCodec and ACodec).
I’m not Java programmer, so this code may be wrong. It is my proposition
only (I tested it only with Bravia, and only few media files). You can use
it in PMS.

Modified file in attachement.

Original issue reported on code.google.com by t_osin...@wp.pl on 25 Jun 2009 at 12:19

Attachments:

GoogleCodeExporter commented 8 years ago
Will check this out later.  I only have a little experience in Java, but I'm 
willing
to test your modifications.  Also curious to see what the official opinion is. 
Either way, thanks for your efforts!

Original comment by rscha...@gmail.com on 25 Jun 2009 at 1:11

GoogleCodeExporter commented 8 years ago
This code don't recognize .ts media files. Ffmpeg reports .ts and .mts files as
mpegts container (files are differ: .mts/.m2ts files has timetstamp bytes in 
stream,
.ts hasn't).

Original comment by t_osin...@wp.pl on 25 Jun 2009 at 1:11

GoogleCodeExporter commented 8 years ago
Redundant with latest modifications

Original comment by shagr...@gmail.com on 28 Jan 2010 at 11:52