Writing profiles for DLNA devices

server-dlna

#15

poldo1973, on 21 Aug 2013 - 13:05, said:

Where is exactly located the user client profiles file in OSX?

If it does not exist by default, where should I write it?

Thanks

Francesco

Create a Profiles directory, parallel to your Plug-ins directory. I believe that's under "~/Library/Application Support/Plex Media Server" on a Mac, but don't quote me on it.


#16

HarlemKnight, on 18 Aug 2013 - 15:15, said:

Here is what I have done on Windwos 7:

1. Copied "Samsung SmartTV.xml" from "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Profiles"

2. Placed the file (Samsung SmartTV.xml) in "C:\Users\O\Local Settings\application data\plex media server" and renamed it to "dlnaclientprofiles.xml"

3. Renamed the file called "dlnaclientprofiles.xml" in "C:\Users\O\AppData\Local\Plex Media Server\Plug-ins\System.bundle\Contents\Resources" to "dlnaclientprofles_HOLD.xml"

Instead of doing that, try this:


1. Same

2. Place the file in "C:\Users\O\Local Settings\application data\plex media server\profiles". Edit the file as you wish.

3. No step 3.


#17

ludvik02, on 13 Aug 2013 - 19:01, said:

@mfeingol - I see such items in the Plex DLNA Server.log, but the video in LG TV is still distorted with wrong aspect ratio and TV reports resolution 720x576. I do not know whether it is transcoding anything, it seems not. I can send you the video to test it with the same video. These Log items seem not to be sign of the actual transcoding process, but rather some scan. They mostly appear when I connect to DLNA server or browse its directories. They are appearing for many videos including videos that are not played. There are two identical lines like this for every video:

Aug 14, 2013 02:56:47 [0xabef1b40] INFO - Cesta Do Vtelna 2013 03 25 21 55 - video.pixelAspectRatio limitation applies:
64:45 == 64:45
Aug 14, 2013 02:56:47 [0xabef1b40] INFO - Cesta Do Vtelna 2013 03 25 21 55 - video.pixelAspectRatio limitation applies: 64:45 == 64:45

That looks like a limitation-induced transcode to me. Can you verify by checking that a process called PlexNewTranscoder.exe is running during playback?

Quote

When I play the video, nothing gets written into Plex DLNA Server.log file. There is also Plex DLNA Server Neptune.log, but results of instant scan of UPnP network seem to be written into this file, so it is hard to find there anything else.

If nothing is written to Plex DLNA Server.log, then something is wrong with your settings. Ensure you turn on debug tracing in the Web Client's settings for PMS. Ignore Plex DLNA Server Neptune.log.


#18

Hello Guys,

Would you help me writing my own DNLA profile for my Sharp Aquos LC32LE225? (EU model)

So far I'm not having all the issues that other people has with Sharp Aquos TVs. Actually it works well with Plex DLNA except for subtitles. This smartv has an embebed player called "Onyx" from Oregan Networks (http://oregan.net/dma.php).  In the other hand sharp profiles from plex forum doesn't work with this model

Plex server mapped to a generic profile, and I think uses direct play and not showing subtitles. So maybe with transcoding subtitles should works.

This is what I got from "Plex DNLA Server.log" file:

Nov 09, 2013 19:48:27:759 [2848] DEBUG - Mapped client to generic profile: Accept: */*; Accept-Language: en-gb,en-us; Connection: Keep-Alive; Host: 192.168.1.71:32469; Referer: file:/Home.html; User-Agent: Mozilla/5.0 (avui/tv; avvp/wmp; avkb/pc; Onyx/CelloTV(M&S) Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.13) CE-HTML/1.0 OreganMediaBrowser/4.14.23 Gecko/20080311 Firefox/2.0.0.13; X-Oregan-Browser-Information: Oregan Media Browser-4.14.23r1-Linux-bcm7405-Broadcom-128bit-Ethernet-[USB][NoFontHintingOnFallback][ShockwaveFlashNoSound][NoPlugins][VOD][NoOnscreenKeyboard][NoEnglishIME][NoJapaneseIME]; X-Oregan-Licence-Information: SHRP3; X-Oregan-Screen-Information: Mode=UNKNOWN,Resolution=1280x720,VisibleArea=1152x648; transferMode.dlna.org: Interactive

The tv support Video codec: MPEG4, H.264 and audio MPEG4 AVC, AAC (http://www.sharp.it/cps/rde/xbcr/documents/documents/Marketing/Datasheet/pdf_DS_Datasheet_LC32LE225E_it_it.pdf)

I'm very new with profiles and I would really appreciate if someone could give me a template with this information to working on

Thank you!


#19

Where on earth are user created/modified DLNA profiles supposed to reside on a OS X based PMS?????


#20

Yeah, there are a lot of "read the sticky" type answers to DNLA questions... but then improper/incomplete information contained within.  It can get very frustrating.  Skimming through the above, I see three people asked the same question about the very basic (but important) information of "where does it go?", to which there is no definitive answer?  Should it just be clearly documented where EXACTLY this Profiles folder should go, in each of the PMS platforms?

The sticky says: 

User profile files are located in the Plex Media Server user directory, in a directory called Profiles. If you have never authored a user profile before, this directory will not exist.

but where is that?  Where is this supposed "Plex Media Server user directory"?   On a Mac?  On Linux?  Windows?  Etc etc.

Its really hard for anyone to move forward without that, no?


#21

Where on earth are user created/modified DLNA profiles supposed to reside on a OS X based PMS?????

On OS X, you place your user created profiles ~/Library/Application Support/Plex Media Server/Profiles


#22

Don't think so, because that's where the official profiles live. I know that for a fact . I had modified the Bravia profiles to suit my needs, they where written over each time i did a PMS update. Question remains  - where do the USER edited profiles go??????


#23

In Window 7, you can create a user client profile by navigating to the folder:

C:\Users\\AppData\Local\Plex Media Server

and create a folder called "Profiles".

Navigate to the newly created folder 

C:\Users\\AppData\Local\Plex Media Server\Profiles

and copy your dlnaclientprofiles.xml to this folder.

You'll notice that your log file

C:\Users\\AppData\Local\Plex Media Server\Logs\Plex DLNA Server.log

contains the following after restarting Plex:

Dec 04, 2013 09:38:24:784 [17560] DEBUG - Reading system DLNA client profiles
Dec 04, 2013 09:38:24:808 [17560] DEBUG - Reading user client profile dlnaclientprofiles

#24

You must be a developer of this software.  Thanks for finally posting this documentation rather than letting a new user find it on their own.


#25

I thought dlnaclientprofiles.xml was obsoleted. Each client profile should be in it's own file with the name of the file being the same as the Client "name"


#26

On found the correct place on macbook 10.6.8 os x, and plex 9.8.10.215. The user created Profiles go in ~username/Library/Application Support/Plex Media Server/Profiles.

I had to create the directory there before installing a couple profiles.


#27

hmmm ok soo all of those locations mentioned in this post none of them are working in Linux.

Can someone please give me a definitive answer as to the location for Linux machines - specifically Centos\Fedora

Places I have tried so far:

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/System.bundle/Contents/Resources/dlnaclientprofiles.xml - (get's overwritten each start, and no longer kept in a single file. So not the correct option regardless).

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/System.bundle/Contents/Resources/Profiles/my-custom.xml - (Created a Profiles folder in here, but not being read)

/var/lib/plexmediaserverLibrary/Application Support/Plex Media Server/Profiles - (I tried here because path similar to Mac - but not being read from here either)

/usr/lib/plexmediaserver/Resources/Profiles/ - (These are the system profiles and creating custom ones in here don't work)

This appears to be working here actually:

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Profiles

Regards

MM


#28

Basic documentation's for suckers


#29

Basic documentation's for suckers

I think maybe you should put all 3 locations mentioned for Windows, Mac & Linux into a sticky. Definitely worth it. Took me hours of stuffing around to finally work out where everything was.

I definitely recommend changing the default install for Linux by the way.

If anyone is having issues getting your head around the 50 deep folder structure in 2 separate locations do this:

Stop the plexmediaserver service (for Fedora it's: systemctl stop plexmediaserver.service)

#mv /usr/lib/plexmediaserver /opt/plex

#mv /var/lib/plexmediaserver/Library /opt/plex/

       OR you can just delete and start again: #rm -rf /var/lib/plexmediaserver

#chown -R name:name /opt/plex (change name to your username)

Edit these two files (again this is Fedora, but you will have either both, or one of them depending on your distribution):

/etc/sysconfig/PlexMediaServer

/lib/systemd/system/plexmediaserver.service

Change the /usr/lib/plexmediaserver to /opt/plex

Change the /var/lib/plexmediaserver/Library to /opt/plex/Library

Change the user and group from plex to your username for both of them.

Save and start the service, and then run a status on the service (Fedora: #systemctl status plexmediaserver.service)

Now things are a little more logical, and easier to get to as everything is sitting under one folder now.


#30

On found the correct place on macbook 10.6.8 os x, and plex 9.8.10.215. The user created Profiles go in ~username/Library/Application Support/Plex Media Server/Profiles.

I had to create the directory there before installing a couple profiles.

Thanks, previous versions and instructions I saved from this site, the user created "profile", was simply saved to the "Plex Media Server" folder, NOT in a user created "Profiles" folder. The first post in this thread has been edited with these NEW instructions, wish I had known of this change. So I'm using the current 0.9.8.10, and will create a "Profiles" folder and move my user created profile into it, and restart PMS. This on MacPro tower running Snow Leopard.


#31

Don't think so, because that's where the official profiles live. I know that for a fact . I had modified the Bravia profiles to suit my needs, they where written over each time i did a PMS update. Question remains  - where do the USER edited profiles go??????

Check your "facts", this quote is from the first post in this thread:

System profiles
System profiles are provided and supported by Plex Inc. and are updated automatically when a new version of the server is installed. System profile files are stored in the Plex Media Server installation, under the Resources/Profiles directory. They should be assumed to be read-only from a user's perspective, because any changes made will be lost when the server installation is updated.


#32

Anyone can help with a profile for a Hisense 50K360 TV?

I can see the server but when I enter to browse, nothing is shown

I tried creating a profile, in the logs I can see the browse request but still nothing shows:

Jan 14, 2014 17:19:28 [0x105aa6000] DEBUG - OnBrowseDirectChildren for '0' with filter '*' and sort '', paged as 0 + 2500
Jan 14, 2014 17:19:28 [0x105aa6000] DEBUG - Mapped client to profile Hisense 50K360 using header User-Agent: AwoX/1.1 UPnP/1.0 DLNADOC/1.50
Jan 14, 2014 17:19:28 [0x105aa6000] DEBUG - Mapped object 0 to  part 0 on server 
Jan 14, 2014 17:19:28 [0x105aa6000] DEBUG - OnBrowseDirectChildren returning success with 3 objects of 3 total

#33

Yeah, there are a lot of "read the sticky" type answers to DNLA questions... but then improper/incomplete information contained within.  It can get very frustrating.  Skimming through the above, I see three people asked the same question about the very basic (but important) information of "where does it go?", to which there is no definitive answer?  Should it just be clearly documented where EXACTLY this Profiles folder should go, in each of the PMS platforms?

The sticky says: 

but where is that?  Where is this supposed "Plex Media Server user directory"?   On a Mac?  On Linux?  Windows?  Etc etc.

Its really hard for anyone to move forward without that, no?

The lack of documentation is shocking, actually.  I'm not sure if subscribers get some sort of enhanced documentation or what.

I've struggled to locate DLNA profile in the FreeNAS (9.2) Plex plugin.  Now that I have, I'd like to share it:

/usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Resources/Profiles

The path above is from *within* the Plex jail.


#34

I just installed the new version 9.8.18

Migrating user DLNA profiles worked. I created folder "Profiles" in PMS root (where "Plug-ins", "Media", Metadata", "Logs" and other system folders reside), split the old "dlnaclientprofiles.xml" in parts, one for each device (also removed and tags) and now the magic "Mapped client to ... profile" shows up in "Plex DLNA Server.log".

But I have problems with content matching.

My movies are in many formats, my TVs can play them without transcoding but Plex DLNA refuses to pass some of them them directly. And the subtitles are the ones to blame.

On the SmartTV I can play any of them with the Plex client, no transcoding and subtitles show ok. But on "not-so-SmartTVs" or any DLNA device they don't work as expected.

I have external subtitles for SOME of the movies (local .srt,.smi -

In element I have of course the

With this setting, DLNA reports ANY movie WITH subtitles (.../srt or else) "... is not a supported directplay video profile".

Adding <... subtitleFormat="srt,smi,microdvd" /> to the VideoProfile element resolves the issue for movies WITH subtitles but now ANY movie WITHOUT subtitles fails to play directly.

The simple question: is there a way to disable subtitles matching in VideoProfiles? Or there is a keyword ("*", "any","none") to use in subtitlesFormat attribute so it can match anything (or nothing at all)?

Plex DLNA Server will not send subtitles anyway. So why this strict matching?

P.S. About subtitles in DLNA.

A single additional line in content descriptor over DLNA (res ...) would have sloved subtitles issue in Plex since long. PLEX librarian has this information as an additional media stream (id=3) but DLNA Server fails to interpret and send it to client.