Writing profiles for DLNA devices

server-dlna

#35

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?

Took me a bit of playing around to check this out.  I made a 2 minute mkv and a custom SRT to popup text at 10s.  It played, but afterwards the subtitles became embedded into the SRT.  I dont know if it was when I played it through Plex DLNA, VLC, or what, but it played.  I then took another 2 minute mkv without any subtitles and it played as well with the following VideoProfile:

After the srt is just two ' ' without a space.


#36

Has anyone written an XBMC profile? I'm really unfamiliar with writing code.

My problem when is when trying to access plex library from XBMC via UPnP, the files all show up and I can play the video no problem. However it won't show any movie info or thumbnails.

All it shows is movie name.

I'm not sure if client profile will fix this problem but it looks like XBMC is not in the stock dlnaclientprofiles.xml file.

P.S I'm aware of PlexBMC and don't like to use it as there are too many steps to get to the library.

Please help.


#37

After the srt is just two ' ' without a space.

Thanks. It is the "keyword" I was looking for.

Now only real exotic formats are reported as "is not a directplay video profile"

However, it would be VERY interesting for a lot of people to tell us how did you manage to play something with extarnal (srt) subtitles through Plex DLNA.

This has nothing to do with content matching and forced transcoding. It is just a question that bothers me for a long time.

Thanks again for the content matching hint.


#38

Thanks. It is the "keyword" I was looking for.

Now only real exotic formats are reported as "is not a directplay video profile"

However, it would be VERY interesting for a lot of people to tell us how did you manage to play something with extarnal (srt) subtitles through Plex DLNA.

This has nothing to do with content matching and forced transcoding. It is just a question that bothers me for a long time.

Thanks again for the content matching hint.

Sorry about the confusion.

External subtitles will only work with transcoding.  If you disable your transcoding you will be able to play the file but will not see any subtitles.  The way plex currently handles the srt's, the text is burned into the transcoded stream.  

The workaround with '' is only so that you tell plex not to transcode the file, however you will still not see the text.  The only reason that the external subtitles appeared to play was because they became embedded into the file, and im not sure which program actually did that as I didnt run it through mergemkv like I would normally do to merge an srt


#39

Perhaps you could incorporate a profile editor page into the MS front end, with the option to list, create and edit current profiles and options for common and custom fields.

Also, and this is all I need really, an option to simply disable ALL transcoding in the MS and allow the playback devices to either play or fail depending on the codecs they can cope with. Not everyone is using a PC capable of direct transcoding.  Far too many of my videos which played back fine under PlexMS v1 now fail to stream to the XBox 360 because PlexMS thinks they need to be transcoded when, in fact, the XBox can play them natively without a problem.


#40

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.

Great !!!

I was looking for this info !!!

I now know where to place my profile for Sharp Aquos and check out if it works !

These kind of details should be highlighted otherwise newbies stucks from the beginning.


#41

Thanks!


#42

Is it possible to create a profile which only exposes audio files for direct play (flac) over DLNA yo certain devices (from the Music library) and nothing else ?


I want such a profile for playing music on my Marantz NR-1604 receiver that is capable of playing flac gapless over the network. Currently I have to navigate through the menu and choose from Video, Music and Photos (my libraries) but only one is relevant (Music).


#43

Is it possible to create a profile which only exposes audio files for direct play (flac) over DLNA yo certain devices (from the Music library) and nothing else ?

I want such a profile for playing music on my Marantz NR-1604 receiver that is capable of playing flac gapless over the network. Currently I have to navigate through the menu and choose from Video, Music and Photos (my libraries) but only one is relevant (Music).

You can tell it that it only can play audio through the profile, however you cannot get rid of the other menus as they are hardcoded into the server, not a profile setting.


#44

I'm using the Plex App on my Amazon Fire TV with the PMS running on a Win7 PC on the same network.  When I stream an H.264 video file with 1280x720 dimensions it displays without being scaled to the 1920x1080 resolution of my TV, i.e, it has big black borders all around.  I see all kinds of resolution-related settings in both the PMS server and in the Plex App, and for the Fire TV itself.  I've tried a lot of combinations but always get this problem.  I've also tried disabling direct play/streaming. 

I was wondering if a user profile would fix this but I noticed in the server log that the AFTV is always assigned the "Generic Profile", even though there is a "Android-AFTB.xml" profile in my ...\Resources\Profiles folder and the name in that profile is "Android Fire TV".  As I understand it, the generic profile causes direct play to always be used so that would seem to explain what I'm seeing.

So I'm wondering if getting this profile assigned to my device isn't the problem?  Any suggestions?  Thanks.


#45
Hello I have plex installed on D'Link 320l and use the TV LG47LM6700 there any profile so that I can watch movies Dual audio, I would be able to choose between two languages​​, now I can not change the language of movies in dual audio. 
 
Thank you all.

#46
Hello I have plex installed on D'Link 320l and use the TV LG47LM6700 there any profile so that I can watch movies Dual audio, I would be able to choose between two languages​​, now I can not change the language of movies in dual audio. 
 
Thank you all.

Attached is my profile.  There are three changes you'll need to make:

1)

Rename the file to LG 47LM6700.xml

2)

to

3)


   
     
  

Alternatively you might be able to just comment out the device description section.  I had to use this because during initial requests a user agent was sent, but during file requests the user agent wasn't sent so I needed to identify it from the device description.

Other than that, transcoding may or may not work.  For my LHB transcoding starts but never plays and I haven't been able to track down why.


#47

Attached is my profile.  There are three changes you'll need to make:

1)

Rename the file to LG 47LM6700.xml

2)

to

3)


   
     
  

Alternatively you might be able to just comment out the device description section.  I had to use this because during initial requests a user agent was sent, but during file requests the user agent wasn't sent so I needed to identify it from the device description.

Other than that, transcoding may or may not work.  For my LHB transcoding starts but never plays and I haven't been able to track down why.

Thank you for your help, I have done all changes as indicated, but there remained a doubt. 
 
After these changes I need to just throw this in the xml profiles folder that it automatically identifies the plex? Or do I need to set it somewhere. 
 
Thanks again for your great help.

#48

I'm using the Plex App on my Amazon Fire TV with the PMS running on a Win7 PC on the same network.  When I stream an H.264 video file with 1280x720 dimensions it displays without being scaled to the 1920x1080 resolution of my TV, i.e, it has big black borders all around.  I see all kinds of resolution-related settings in both the PMS server and in the Plex App, and for the Fire TV itself.  I've tried a lot of combinations but always get this problem.  I've also tried disabling direct play/streaming. 

I was wondering if a user profile would fix this but I noticed in the server log that the AFTV is always assigned the "Generic Profile", even though there is a "Android-AFTB.xml" profile in my ...\Resources\Profiles folder and the name in that profile is "Android Fire TV".  As I understand it, the generic profile causes direct play to always be used so that would seem to explain what I'm seeing.

So I'm wondering if getting this profile assigned to my device isn't the problem?  Any suggestions?  Thanks.

Bump -- and additional info:

Using Device Spy to get required info I created a user profile, "Android.xml", (Since Android is the profile selected in the Fire TV App settings) with an identification section as follows:

 
   
     
     
     
   

 

 

At server startup I get the message that the built-in Android profile is being overridden and no error messages.  Yet stil my Fire TV is being mapped to the Generic Profile.  Sure would appreciate some help on this.  It seems like if Plex is going to sell this Fire TV app for $4.99, there shouldn't be so much trouble with it playing videos so they use the entire screen.


#49
Thank you for your help, I have done all changes as indicated, but there remained a doubt. 
 
After these changes I need to just throw this in the xml profiles folder that it automatically identifies the plex? Or do I need to set it somewhere. 
 
Thanks again for your great help.

You need to place it in the profiles directory where you application data is stored.  On windows it is located at:

C:\users\\appdata\local\plex media server\profiles

*You will need to create the profiles folder in this location


#50

Bump -- and additional info:

Using Device Spy to get required info I created a user profile, "Android.xml", (Since Android is the profile selected in the Fire TV App settings) with an identification section as follows:

 
   
     
     
     
   

 

 

At server startup I get the message that the built-in Android profile is being overridden and no error messages.  Yet stil my Fire TV is being mapped to the Generic Profile.  Sure would appreciate some help on this.  It seems like if Plex is going to sell this Fire TV app for $4.99, there shouldn't be so much trouble with it playing videos so they use the entire screen.

If you're using the plex app on the Fire TV, then you are not using DLNA and modifying/creating profiles will not change this.  It might be better if you create a new topic on the issue rather then using the profile writing guide.

With that being said, what is your plex media server log say when you are attempting to play one of these files?  Typically, the video transcode to the same resolution as the original and then the device will choose how to display that.  IE with the blackbars, or zoomed to full screen.


#51

You need to place it in the profiles directory where you application data is stored.  On windows it is located at:

C:\users\\appdata\local\plex media server\profiles

*You will need to create the profiles folder in this location

Okay, do I have it installed on D'link 320l if I saved in that directory:

/mnt/HD/HD_a2/ffp/lib/plexmediaserver/Resources/Profiles

I do not know if this would be the correct directory.


#52

Okay, do I have it installed on D'link 320l if I saved in that directory:

/mnt/HD/HD_a2/ffp/lib/plexmediaserver/Resources/Profiles

I do not know if this would be the correct directory.

I can't tell you for sure as I use windows, but if that is the directory with the default system profiles then no that is the wrong directory.  You will need to locate the plex folder with the logs directory, you will need to create the profiles directory there.

https://support.plex.tv/hc/en-us/articles/200250417-Plex-Media-Server-Log-Files

That article has the most common locations for the logs, so if your able to find the Plex Media Server location in there you should be on the right track.


#53

I believe I found this way:

/mnt/HD/HD_a2/ffp/programs/plex/lib/Plex Media Server/Logs/

Should I create the profiles directory in the logs folder or inside the Plex Media Server 
 
If you do not know without problems'm researching but have not found anything yet. 
 
Thank you.

#54

I believe I found this way:

/mnt/HD/HD_a2/ffp/programs/plex/lib/Plex Media Server/Logs/

Should I create the profiles directory in the logs folder or inside the Plex Media Server 
 
If you do not know without problems'm researching but have not found anything yet. 
 
Thank you.

Inside the Plex Media Server Folder