I have a channel that requires a custom iOS and tvOS profile. Unfortunately this means all other channels will now use these custom profiles which causes the channels to not play content. Is there a way to tell Channel A to use the default iOS profile located at /plexmediaserver/Resources/Profiles and Channel B to use the custom profile I have written at /Library/Application Support/Plex Media Server/Profiles
@joelifer7 said:
Is there a way to tell Channel A to use the default iOS profile located at /plexmediaserver/Resources/Profiles and Channel B to use the custom profile I have written at /Library/Application Support/Plex Media Server/Profiles
Not really. The way those directories work is that if the DLNA server sees a profile in the Application Support folder that profile completely overrides the profile in plexmediaserver/Resources directory. So to the server if you have a custom profile it’s like the original one does not exist.
The only exception I know of is the Plex App clients that can send augmented profiles with their transcode request. These augments are then ‘merged’ with the profile to determine available codecs/options.
@jmckee said:
The only exception I know of is the Plex App clients that can send augmented profiles with their transcode request. These augments are then ‘merged’ with the profile to determine available codecs/options.
Can you elaborate on this a bit or provide a link where I can read up on it?
@plex42 said:
Can you elaborate on this a bit or provide a link where I can read up on it?
Unfortunately, no on the documentation. I haven’t seen any documentation for this because the only things that can do this are Plex Clients and there isn’t a way to augment an actual DLNA profile.
To elaborate more, (This is from my experience) DLNA clients can’t send specific requests of how to send them the media so a DLNA profile is the only way to check this.
Plex Apps don’t actually check the profile for supported formats, that check is done in the app itself before requesting the streams for the server. That is why the apps can send augmented requests because if I have Plex running on my Android Phone and you have it on your Phone if we have different phone vendors it is very possible that our respective phones have different supported codecs. So the augmentation is just the apps way of saying I also support _______. The profile on the server is only used when determining what format to transcode into. So if you change the transcode target from H264 to HEVC then the server will convert all transcode requests into that format (Which may cause other issues).
When it comes to DLNA clients there is no way to query the device for supported formats so the profile is checked exclusively. In addition to that the DLNA clients have no way of telling the server send me the media in a ___ container with ____ video and ____ audio. Because of that the DLNA server most likely wouldn’t even have a way to parse this type of information if it was sent to it because that isn’t a part of the DLNA standard.
Now the reason why there isn’t a way for a channel to say use ____ profile instead of _____ profile is that either profile is set correctly it is set for the client that channel is running on. If some video is causing an issue with that profile it needs to be checked to see what is causing the issue like if it’s a live video that needs transcoding it will not work as the transcoder expects a concrete video length, or if the device only supports h264 at level 4.1 and the stream is at 5.0. So the basic theory is that a profile should work to transcode anything that is unsupported for a device to a format that is supported, and so for DLNA devices there just isn’t a need for a device to sometimes use ____ and sometimes use ____ because the profile should be setup in a way that profile A always does work.
Thanks for the reply. So, profiles are ONLY and EXCLUSIVELY for DLNA clients?
Can I use a profile for a native plex client app?
For instance, I use plex client on Samsung Tizen. The issue I have is, movies / videos with a DTS audio track play fine without transcoding.
But music files with DTS always gets transcoded and this kills the quality. I am not sure why DTS is being transcoded only when it’s music and not when it’s video. Possibly due to the container type…
The question is, can I use a profile to force not to transcode the music files irrespective of it being played using the plex client on Tizen?
@shafraz@gmail.com said:
Thanks for the reply. So, profiles are ONLY and EXCLUSIVELY for DLNA clients?
When it comes to checking the profile for the decision to transcode or not, yes. That decision on Plex Apps is made by the app before the request is sent to the server. So when the server gets a request for video it is either requesting the file directly or a transcoded (of some form or another) file.
The question is, can I use a profile to force not to transcode the music files irrespective of it being played using the plex client on Tizen?
Directly, No. A profile cannot change the decision to transcode or not. The reason is that the decision has already been made by a client based on either the hardcoded values or values returned by the TV during query checks.
You might be able to modify the Tizen’s profile to tell it to transcode music into DTS. But this would affect all music transcodes on that device and not just DTS files. The reason for the parameters of the TV client I have no information about that. It could be the container in, or it could be the decoder can’t handle music only files (this doesn’t happen as much on newer devices), but typically when codecs are left out it is because something about the codec was causing issues during testing.
Hello guys,
I got a samsung UHD tv and it sees all mkv files through dlna as mpeg and of course it doesnt play. Does somebody have a proper profile for samsung tv as I suspect this is the problem. It seems so weird that plex hasn’t fixed this
Hi all
I have PMS operating on a Debian server.
I have a working custom profile located at " /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Profiles/dlnaclientprofiles.xml".
However this profile only works for one of my many DLNA capable clients on my network.
How can I add multiple profiles for my clients within the dlnaclientprofiles.xml file?
@petorf said:
Hello guys,
I got a samsung UHD tv and it sees all mkv files through dlna as mpeg and of course it doesnt play. Does somebody have a proper profile for samsung tv as I suspect this is the problem. It seems so weird that plex hasn’t fixed this
Not sure if this will help, but its a starting point.
@BambiSlayer said:
How can I add multiple profiles for my clients within the dlnaclientprofiles.xml file?
You don’t. dlnaclientprofiles.xml has been replaced (a very long time ago) by individual client profiles. So instead of having one file for everything each individual device (One’s with unique identifiers) has it’s own file.
If you have multiple of the same type of clients (IE 3 of the same brand of TV) you can adjust the identifying section to match to all of those devices. If they are different types of clients (IE a TV, an Android Box, etc) then you want to setup different profiles so you can modify the capabilities of the sections.
@BambiSlayer said:
How can I add multiple profiles for my clients within the dlnaclientprofiles.xml file?
You don’t. dlnaclientprofiles.xml has been replaced (a very long time ago) by individual client profiles. So instead of having one file for everything each individual device (One’s with unique identifiers) has it’s own file.
If you have multiple of the same type of clients (IE 3 of the same brand of TV) you can adjust the identifying section to match to all of those devices. If they are different types of clients (IE a TV, an Android Box, etc) then you want to setup different profiles so you can modify the capabilities of the sections.
Thank you. That worked a treat. I now have working profiles for all of my DLNA clients.
@BambiSlayer
Thank you I checked it out but it’s exactly the same with the current version so it won’t work. I have to use kodi media server (supports UHD too) until a proper profile is written. Hope our Plex guys here sort it out.
@petorf said: @BambiSlayer
Thank you I checked it out but it’s exactly the same with the current version so it won’t work. I have to use kodi media server (supports UHD too) until a proper profile is written. Hope our Plex guys here sort it out.
I understand your frustration with things not operating as expected. But Plex provide a generic product (for free I might add), and when things don’t go quite right it is up to us to work things out. It took me a year to get operational profiles for my clients.
As you are playing MKV files, have you verified the file itself is complaint. I had a similar experience with my Panasonic UHTV that wouldn’t play them after downloading. Yet after converting to MKV again, they worked. I’m not tech savvy like some here, so I cant tell you why. All I can say is what worked.
Next thing to do is read the literature on writing profiles. Yes it is a lot to take in, but you need to make the effort. It will eventually pay off. And there is a huge amount of satisfaction when it finally works.
And lastly. If you are like I was, and have a mixture of file formats, start converting to a single file format that is common to all your clients (if possible of course). It just makes things simple and you only have one container in your profile to deal with. And I do this so that PMS doesn’t have to convert as I run PMS on a Raspberry Pi, and there isn’t enough processing power for conversion.
Else post your current profile and someone may be able to point you in the right direction.
Thanks a lot for your effort Fred. As I open Plex resources i find 3 profiles for Samsung. Plain,smart tv and tizen. Removing smart tv profile files play fine but I have no subtitles. My files are ok as I have 2 LGs and with the server play just fine. Also kodi server plays them fine on Samsung via dlna(even h265 with subs) so it’s definitely a profile problem. I post the samsung smart tv profile and if anyone has any idea why samsung sees files as mpg instead of mkv let me know.
OK, so the first thing I notice is that you haven’t clearly defined your client in the header. This ensures only the desired client/s use this custom profile. You will need an application that can interrogate your clients to provide the appropriate information so that you can clearly identify the required client/s. I use Intel tools for UPnP. It has a tool called Device Spy. I’m using Windowz and I’m not sure if the tool is available for other OS’s.
Try this at line 20 of your current code: <VideoProfile container="mkv" codec="vp9,h265,mpeg1video,mpeg2video,h264,mpeg4,hevc" audioCodec="eac3,ac3,aac,mp3,mp2,pcm,flac,alac,vorbis" subtitleFormat="srt,ass" />
Add this after line 15: <Setting name="SubtitleSize" value="100" />
Your new code will read: <PhotoProfile container="jpeg" /> <Setting name="SubtitleSize" value="100" />
This is the line in my profile and it works, but I have all Panasonic clients. And I also rip the files with subtitles built in so I don’t have to transcode at all.
Remember, this is a CUSTOM profile, and as such cannot reside in the profiles system folder within PMS. It MUST reside in a profiles folder elsewhere. The location will depend on your OS. If you choose to leave your custom profile in the profiles system folder it will be overwritten every time PMS is updated.
Regards
Fred
–edit jmckee
added marking to make the setting tags visible in post
@BambiSlayer said:
This is the line in my profile and it works, but I have all Panasonic clients. And I also rip the files with subtitles built in so I don’t have to transcode at all.
Typically, when a DLNA profile has this setting enabled all it does is let the file direct play if subtitles are selected for the movie in question. If the subtitles are in an external .srt file (such as the ones automatically downloaded by the subtitle agent) then you will get no subtitles at all. If you have internal subtitles you should be able to enable them from within the client.
The reason it works this way is that with the DLNA server no sidecar subtitles are ever sent. To use subtitles the DLNA server requests the Plex Media Server transcode the video while burning the subtitle stream into this new video stream.
This means that if you lost the ability to play subtitles what most likely is happening is one of two things:
Your client is not matching to a profile and is using the generic profile which only does directplay and 0 transcoding.
Your profile was corrupted/has a typo that either breaks the transcoding section or can’t be read and used.
To check for number 1 you would look in the DLNA server log for when the client requests the video from the server. In that request will be the logged information for the device and/or what profile the client matches to.
To check number 2 you look at the very first few lines of the DLNA server log. It will either state that your profile has been added (if it’s a new profile), that your profile overrides a system profile (if you’re overwriting the original profile), or an error message loading/reading the profile.
@petorf said:
Thanks a lot for your effort Fred. As I open Plex resources i find 3 profiles for Samsung. Plain,smart tv and tizen. Removing smart tv profile files play fine but I have no subtitles. My files are ok as I have 2 LGs and with the server play just fine. Also kodi server plays them fine on Samsung via dlna(even h265 with subs) so it’s definitely a profile problem.
In your above situtation removing the profile makes your dlna server default your samsun tv to the generic profile which does no transcoding. To use subtitles via the Plex DLNA server the file needs to be transcoded. This is most likely the cause for your issues playing H265 with subtitles from the Plex DLNA server as transcoding H265 to H264 to burn in subtitles is normally a fairly decent task for most processors.
I post the samsung smart tv profile and if anyone has any idea why samsung sees files as mpg instead of mkv let me know.
When the TV is reporting a mpg file vs the original file extension it means that the server determined from the profile that your TV doesn’t support something in the original file. To prevent the TV from throwing an error the server instead sends the transcoded format so the TV will actually request the file to play without throwing a ‘cannot play this media’ type error. One of your biggest problems here with H265 files is that H265 is not a part of the HLS streaming standard, so if anything is getting transcoded or remuxed it currently needs to convert the H265 to H264 so the video will be compliant with the HLS standard.
@BambiSlayer
Fred i changed the values as you suggested but nothing changed.I’m sure that problem is not at mkv settings since files show as mpg instead of mkv losing thumbnails too. Deleting samsung profile and going with generic profile all files play, i get thumbnails too but no subtitles.I tried to find the kodi profile which works great (except thumbnails) to compare but couldn’t find it.I remind you that kodi server plays everything (h265 included) with subtitles perfect. i attach plex log with plex samsung smart tv profile in case it gives you any idea.Also I attach device spy image.!
@jmckee
I’m sure that server delivers the file to client (TV) with external srt without transcoding as changing subs size and position from tv settings is instant and quality perfect with processor idle (1%) .With LG works perfect. Kodi server does the same with even h265 UHD 40gb files with external srt and processor still idle to all TV sets. As I said with the original profiles samsung sees mkv as mpg and still gives error when trying to play it.As for h265 don’t even have them in library as i am concerned managing h264 at the moment.
Thank you very much guys, I’ve tried a lot of changes but didn’t make it.