Writing profiles for DLNA devices

@petorf said:
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%) .

What you are saying is not what your logs say:
Nov 10, 2017 13:29:57.212 [13196] DEBUG - MDE: Wind River (2017): selected subtitle cannot be converted to a compatible format, burning into video stream
Nov 10, 2017 13:29:57.212 [13196] DEBUG - MDE: Wind River (2017): avoiding video remux due to burned subtitle stream

According to your log entry, every single video you attempted to play with subtitles attempted to burn in the subtitles. And specifically what I told you is if the subtitle’s are internal then your TV will control them, if you are using the generic profile and still getting subtitles it means that subtitles are internal and contained inside of the file.

The server still using the default profile, so if you are using your custom profile it is not being read. But the DLNA server is logging an error testing encoders which may be breaking your transcode requests. If that is the case it will be inside of the Plex Media Server.log as that is what controls all the transcode/direct play requests.

@jmckee

That i saw and didn’t surprise me since I haven’t managed to play anything so far via dlna on Samsung, these were efforts changing the profile but since it shows mkv as mpg you click to play and nothing happens.This is what you see in the log.I attached it so maybe you could see something else from the handshake recognition between TV ans plex server. What i meant is plex server delivers as I said to LG without transcoding and also kodi server does it on samsung with subs. Sorry if I confused you but even if transcoding was involved at least I would have something playing and I have not.Plex server without samsung smart tv profile it plays fine but I have no subs.I googled a lot and seems that many more users have the same issue. Thanks a lot for your time
Regards
Petros

So I’m assuming you are working on a profile located here:
C:\Users<username>\AppData\Local\Plex Media Server\Profiles
And the file is most likely called TVModelNumber.xml for example QE65Q9F.xml

The header of that file may contain something like:
<Identification>
<DeviceDescription type="urn:samsung.com:device:RemoteControlReceiver:1">
<FriendlyName substring="QE65Q9F" />
<ModelName substring="Samsung QE65Q9F" />
<ModelNumber substring="700" />
<ModelUrl substring="Samsung.com" />
<ModelDescription substring="Samsung QE65Q9F UHD TV" />
<Manufacturer substring="Samsung" />
<ManufacturerUrl substring="samsung.com" />
<SerialNumber substring="1234" />
</DeviceDescription>
</Identification>

You don’t/shouldn’t need all the above info, and the info shown will not be for your client. It is an example only.

The object here is that I am attempting to ensure you are working with a CUSTOM profile and not a SYSTEM profile.

If your profile only contains then it cannot differentiate from the system profile and the system profile will become the default.

If the above information is correct only the custom profile will be read for that specific client.

And as we all know, assumption is the mother of all mistakes.

I simply observe the movie being played by the client in the PMS web client under status|Now Playing as it shows what PMS thinks it is, Generic or QE65Q9F “FriendlyName”. If it shows the FriendlyName then you know the profile is being used. This is why it is so important to to setup these headers correctly.

Regards

Fred

–edit jmckee
edited to make XML code visible in the forum

yes profile is located where you mention, it’s name is samsung smarttv.xml and from the logs i see this is the one server is using. This is the one I was experimenting with without success so far. I don’t know how server and tv pick this one up as in profiles there are 2 more, samsung.xml and samsung tizen.xml. I was looking for LG profile to have a look since LG is working fine but it doesn’t exist.The model of my TV if it helps is UE65KU6000

@petorf said:
I don’t know how server and tv pick this one up as in profiles there are 2 more, samsung.xml and samsung tizen.xml.
That profile gets picked because it is the only one that is a DLNA profile. The other two profile’s are for the Plex apps and have no identification section so they can never be matched to by DLNA clients.

I was looking for LG profile to have a look since LG is working fine but it doesn’t exist.The model of my TV if it helps is UE65KU6000
If there is no profile for the LG TV it would use the generic profile which means everything is sent as is to the TV.

@jmckee

Yes I noticed that only this profile has dlna settings (and doesn’t work) while deleting it and using the generic I have video and thumbnails but no subs. Do you know which one is the generic profile? maybe I can try some changes there and rename it. Thank you very much

@petorf said:
Do you know which one is the generic profile? maybe I can try some changes there and rename it. Thank you very much

The generic profile is the one called Generic.xml. It is pretty empty because if the server can’t identify the device connecting to it everything is treated like a simple file transfer. Typically, it’s not recommended to modify the generic profile as it will affect any DLNA device that cannot be identified.

It sounds like your problem is actually a mixture of internal and external subtitles. Internal subtitles are the only type that work over Plex DLNA without transcoding. And even then they only work when the whole file is direct played. If the file passes through the transcoder at all the streams except the selected audio and video are stripped out and only burned in subtitles will work.

ok i opened generic profile and is completely empty.And if LG uses it how come and LG plays subs while Samsung cannot? And also how kodi server plays everything? It’s driving me crazy!!!

@petorf said:
ok i opened generic profile and is completely empty.And if LG uses it how come and LG plays subs while Samsung cannot? And also how kodi server plays everything? It’s driving me crazy!!!

You have 100% overlooked my comment about the location and content of the profile. Until such time as you can confirm you actually attempting to use a profile in the correct location we will forever chase tails and nothing will work.

Regards

Fred

Fred I did check and i replied,look up:

yes profile is located where you mention, it’s name is samsung smarttv.xml and from the logs i see this is the one server is using. This is the one I was experimenting with without success so far. I don’t know how server and tv pick this one up as in profiles there are 2 more, samsung.xml and samsung tizen.xml. I was looking for LG profile to have a look since LG is working fine but it doesn’t exist.The model of my TV if it helps is UE65KU6000

@petorf said:
ok i opened generic profile and is completely empty.And if LG uses it how come and LG plays subs while Samsung cannot? And also how kodi server plays everything? It’s driving me crazy!!!

The reason why is exactly like I explained earlier. Plex does not send any sidecar subtitles via the DLNA server. The only way for subtitles to be sent not burned into the video stream is if the subtitles are internal to the file and the file is direct playing. Sidecar subtitles typically means the external subtitle file is sent to the device along with the media file.

If the file is not direct playing the subtitles will always only work if they are transcoded and burned into the video stream. If no subtitles are selected before that when the file is remuxed/transcoded every stream except for the selected audio stream and the video stream are stripped from the file for playback. If the subtitles are selected the server will try and burn them into the video stream.

@petorf said:
Fred I did check and i replied,look up:

yes profile is located where you mention, it’s name is samsung smarttv.xml and from the logs i see this is the one server is using. This is the one I was experimenting with without success so far. I don’t know how server and tv pick this one up as in profiles there are 2 more, samsung.xml and samsung tizen.xml. I was looking for LG profile to have a look since LG is working fine but it doesn’t exist.The model of my TV if it helps is UE65KU6000

Can you post the Identification section of the profile your using.

Regards

Fred

Regards
Petros

You haven’t clearly identified your client. As it sands any Samsung TV will use that profile. And you haven’t modified the header from the system profile. This is fine if you only have the one Samsung client within your network.

As for your subtitles issue, and whilst this answer may not be entirely popular, it works. Simply rip your movies in a common format (MKV/MP4 etc) complete with the subtitles in the file. PMS then does no transcoding/muxing (direct play) and is a glorified library.

If you must continue on the path you are, simply take a profile that works or mostly works and use that with the appropriate identification header so it is used consistently. Then you can concentrate on the bits that don’t work.

Regards

Fred

@BambiSlayer
Thanks for the tip but it’s impossible to convert 3000 movies and add srt in mkv.Also I know from past tests that my LGs don’t play the embedded sub, only srt.
Yes I have only one samsung and 2 lg TVs on network. I’ve been working profiles all week without result. As I said using the plex generic profile makes samsung to work but without subs.
@jmckee
Experimenting with profiles all week (without result as I said) I was using other servers to see their functionality. Kodi, serviio, universal media player, emby,mezzmo all play movies with subs through dlna without transcoding just fine… None of them though have the plex library management which is perfect for me. I don’t understand how all other players can do it and plex can’t.

Regards
petros

Guys please help…
I finally managed to stream my high-res tracks to my iphone using in

and to
but it’s running the transcoder with a sample rate of 352800 Hz.

I added





But it doesn’t work.

Does anyone know how to do it?

I attached the whole ios.xml file.

Update

I found that it’s not working because it’s transcoding with mpegts instead of FLAC containter.
Here is my Plex Transcoder command line:

plex 30539 1237 45 12:32 ? 00:00:00 /usr/lib/plexmediaserver/Plex Transcoder -codec:0 dsd_lsbf_planar -i /srv/dev-disk-by-label-Multimedia/MM/Musicas/DSF/Diana Krall - When I Look In Your Eyes/01 - Diana Krall - Let’s Face The Music And Dance.dsf -map 0:0 -codec:0 flac -ar:0 352800 -channel_layout:0 stereo -b:0 4096k -segment_format mpegts -f ssegment -individual_header_trailer 0 -segment_time 1 -segment_start_number 0 -segment_copyts 1 -segment_time_delta 0.0625 -segment_list http://127.0.0.1:32400/video/:/transcode/session/A0A3D624-DA91-4829-A6FE-AFEDC913428E/4a372de6-49c7-4a4f-9743-50a76d6ff6b0/seglist -segment_list_type csv -segment_list_size 2147483647 -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 media-%05d.ts -start_at_zero -copyts -vsync cfr -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/A0A3D624-DA91-4829-A6FE-AFEDC913428E/4a372de6-49c7-4a4f-9743-50a76d6ff6b0/progress
:

NEW Update

I think the problem is with the app.
The transcoder seems to run ok.
I fired a question in the IOS app forum. Let’s hope someone helps

@petorf said:
@BambiSlayer
Thanks for the tip but it’s impossible to convert 3000 movies and add srt in mkv.Also I know from past tests that my LGs don’t play the embedded sub, only srt.
Yes I have only one samsung and 2 lg TVs on network. I’ve been working profiles all week without result. As I said using the plex generic profile makes samsung to work but without subs.
@jmckee
Experimenting with profiles all week (without result as I said) I was using other servers to see their functionality. Kodi, serviio, universal media player, emby,mezzmo all play movies with subs through dlna without transcoding just fine… None of them though have the plex library management which is perfect for me. I don’t understand how all other players can do it and plex can’t.

Regards
petros

I would establish what profile (if any) Kodi is using, and start to further your investigations from there.

Regards

Fred

@BambiSlayer
Fred i decided to quit and i refixed my library through Mezzmo which plays to all TVs giving me also the ability to easily make my own playlists. And that for only 15 euros comparing to the 100 I paid for plex. I just want to mention to developers that they miss from me over 100 customers. Really dissapointed…Thank you very much for your time and help, best wishes from Athens.

Regards
Petros

Hi
Plex is installed on a HP Microserver, and this gets fed to a LG HB405SU Home Theatre that has the LG Homelink. My TV is an old plasma LG 50PK350 which is not DLNA certified.
I cannot stream files directly to the TV so they go to the Home Theatre as this is DLNA certified.
If I want to create a DLNA profile, which machine do I create it for?
The Home Theatre or the TV?
If anyone has a similar setup with a working profile please let me know.

Before I installed Plex, I have been using Serviio for quite a while with no problems.
Wanted to see what all the fuss was about with Plex.
With having both media players installed on the same server, whenever I go in to the Homelink on the Home Theatre and choose the Plex Player, the Home Theatre physically shuts down.
Is this normal behaviour with having two media players running side by side?
If I get a proper DLNA profile set up, will this stop the shutting down of the Home Theatre?

Any input is greatly appreciated

Thanks

You would setup your DLNA profile for the DLNA client (the home theater). I would setup the headers to suit your client, but the containers to suit your TV. AS your TV is old, I suspect that the information within the containers will be less than the specifications of the home theater. Setup your files so they are already in a format that your TV will play naitively. This reduces transcoding issues. And therefore your DLNA client will simply become a lookup table for your media.

To get your DLNA client header information use an application from the Intel Tools for UPnP called Device Spy. It is available on the internet for free.

As for running dual media servers on the same machine, I wouldn’t recommend that as you may find that both applications may be attempting to use the same resources. Hence the crash. If you wish to have both servers operational so that you can test for operational differences and/or compliance then install them on different machines.

Rememnber that DLNA has limitations, and there is DLNA compliant and DLNA certified. There is a difference and this will affect how your DLNA client functions.

I am no guru when it comes to DLNA, but I have spent a lot of time getting my system to function, so I have come across a number of traps. But then I am running my PMS on a Rasberry Pi 3 so it does have substantial limitations when transcoding. My NFS server is also running on a Pi 3. and as they are running 24/7 they are really cheap to operate compared to a conventional server or PC.

Regards

Fred