Jump to content

Custom DLNA profile


marc_al

Recommended Posts

marc_al

Hello,

 

I have a Medion life web radio and it supports the FLAC audio.

 

I have created a custom profile but even if the profile is loaded the flac audio is still converted into mp3

The profile is loaded because in the log I have the following line

 

Debug - Dlna: Found matching device profile: MEDION LIFE P85025

 

So I guess that my profile is correctly loaded.

 

Can someone please tell me what I do wrong?

Thank you

Marc

 

Profile

-----------------------------------------------------------------------------------------------

<?xml version="1.0"?>
<Profile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Name>MEDION LIFE P85025</Name>
  <Identification>
    <FriendlyName />
    <ModelNumber />
    <SerialNumber></SerialNumber>
    <ModelName />
    <DeviceDescription />
    <ModelUrl>http://internetradio.medion.com</ModelUrl>
    <Manufacturer />
    <ManufacturerUrl />
    <Headers />
  </Identification>
  <FriendlyName>platinum</FriendlyName>
  <Manufacturer>platinum</Manufacturer>
  <ManufacturerUrl>http://mediabrowser.tv/</ManufacturerUrl>
  <ModelName>Media Browser</ModelName>
  <ModelNumber>Media Browser</ModelNumber>
  <ModelUrl>http://mediabrowser.tv/</ModelUrl>
  <SerialNumber />
  <EnableAlbumArtInDidl>false</EnableAlbumArtInDidl>
  <EnableSingleAlbumArtLimit>false</EnableSingleAlbumArtLimit>
  <SupportedMediaTypes>Audio</SupportedMediaTypes>
  <UserId />
  <AlbumArtPn>JPEG_SM</AlbumArtPn>
  <MaxAlbumArtWidth>1920</MaxAlbumArtWidth>
  <MaxAlbumArtHeight>1920</MaxAlbumArtHeight>
  <MaxIconWidth>384</MaxIconWidth>
  <MaxIconHeight>384</MaxIconHeight>
  <MaxStreamingBitrate>8000000</MaxStreamingBitrate>
  <MaxStaticBitrate>8000000</MaxStaticBitrate>
  <MusicStreamingTranscodingBitrate>8000000</MusicStreamingTranscodingBitrate>
  <MusicSyncBitrate>128000</MusicSyncBitrate>
  <XDlnaDoc>DMS-1.50</XDlnaDoc>
  <XDlnaCap />
  <SonyAggregationFlags />
  <ProtocolInfo />
  <TimelineOffsetSeconds>0</TimelineOffsetSeconds>
  <RequiresPlainVideoItems>false</RequiresPlainVideoItems>
  <RequiresPlainFolders>false</RequiresPlainFolders>
  <EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
  <IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
  <EnableDlnaProtocol>false</EnableDlnaProtocol>
  <XmlRootAttributes />
  <DirectPlayProfiles>
    <DirectPlayProfile container="mp4" audioCodec="aac" videoCodec="" type="Audio" />
    <DirectPlayProfile container="mp3" audioCodec="mp3" videoCodec="" type="Audio" />
    <DirectPlayProfile container="flac" audioCodec="flac" videoCodec="" type="Audio" />
    <DirectPlayProfile container="ogg" audioCodec="vorbis" videoCodec="" type="Audio" />
    <DirectPlayProfile container="wma" audioCodec="wmav2" videoCodec="" type="Audio" />
    <DirectPlayProfile container="wav" audioCodec="flac,pcm" videoCodec="" type="Audio" />
  </DirectPlayProfiles>
  <TranscodingProfiles />
  <ContainerProfiles />
  <CodecProfiles />
  <ResponseProfiles />
  <SubtitleProfiles />
</Profile>

Link to comment
Share on other sites

marc_al

Hello,

 

I have seen the problem. You MUST use the HTTP header. If the field is empty, the profile won't work (even if the log says the profile is found)

Link to comment
Share on other sites

  • 3 years later...
NewbieNewb

Hi. To the OP, I have the same Medion model as you. I am a complete novice to DLNA. Can you tell me if you managed to get that profile working? If so, I'm assuming you enter that string somewhere on the DLNA server you are using? I currently have a Plex Media Server which includes DLNA. Where would the string go?? Help, please!

Link to comment
Share on other sites

Hello,

 

Here is the profile that can play DLNA

 

<?xml version="1.0"?>
<Profile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Name>MEDION LIFE P85025</Name>
  <Identification>
    <FriendlyName />
    <ModelNumber />
    <SerialNumber />
    <ModelName />
    <DeviceDescription />
    <ModelUrl>http://internetradio.medion.com</ModelUrl>
    <Manufacturer>Medion</Manufacturer>
    <ManufacturerUrl />
    <Headers>
      <HttpHeaderInfo name="User-Agent" value="FSL DLNADOC/1.50" match="Substring" />
    </Headers>
  </Identification>
  <FriendlyName>Emby</FriendlyName>
  <Manufacturer>Emby</Manufacturer>
  <ManufacturerUrl>http://emby.media/</ManufacturerUrl>
  <ModelName>Emby</ModelName>
  <ModelNumber>Emby</ModelNumber>
  <ModelUrl>http://emby.media/</ModelUrl>
  <SerialNumber />
  <EnableAlbumArtInDidl>true</EnableAlbumArtInDidl>
  <EnableSingleAlbumArtLimit>true</EnableSingleAlbumArtLimit>
  <SupportedMediaTypes>Audio</SupportedMediaTypes>
  <UserId>9a5801cb55854f3b989cfcb0aa6186fa</UserId>
  <AlbumArtPn>JPEG_SM</AlbumArtPn>
  <MaxAlbumArtWidth>480</MaxAlbumArtWidth>
  <MaxAlbumArtHeight>480</MaxAlbumArtHeight>
  <MaxIconWidth>48</MaxIconWidth>
  <MaxIconHeight>48</MaxIconHeight>
  <MaxStreamingBitrate>10000000</MaxStreamingBitrate>
  <MaxStaticBitrate>10000000</MaxStaticBitrate>
  <MusicStreamingTranscodingBitrate>10000000</MusicStreamingTranscodingBitrate>
  <MusicSyncBitrate>128000</MusicSyncBitrate>
  <XDlnaDoc>DMS-1.50</XDlnaDoc>
  <XDlnaCap />
  <SonyAggregationFlags />
  <ProtocolInfo>http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_50_AC3;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_50_AC3_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_HD_50_AC3_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/L16;rate=44100;channels=1:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/L16;rate=48000;channels=1:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/L16;rate=48000;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMA_BASE;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:audio/x-ms-wma:DLNA.ORG_PN=WMA_FULL;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_FLAGS=00D00000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG1;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_EU_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_NA_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_KO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_KO_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_KO_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-msvideo:DLNA.ORG_PN=AVI;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-matroska:DLNA.ORG_PN=MATROSKA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_SD_AAC_MULT5;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_SD_MPEG1_L3;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_SD_AC3;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_HD_720p_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_MP_HD_1080i_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_HP_HD_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=AVC_MP4_LPCM;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=MPEG4_P2_MP4_ASP_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=MPEG4_P2_MP4_SP_L6_AAC;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mp4:DLNA.ORG_PN=MPEG4_P2_MP4_NDSD;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_SD_AAC_MULT5;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_SD_AAC_MULT5_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_MP_SD_AAC_MULT5_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_SD_MPEG1_L3;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_SD_MPEG1_L3_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_MP_SD_MPEG1_L3_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_HD_AAC_MULT5;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_HD_AAC_MULT5_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_MP_HD_AAC_MULT5_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_HD_MPEG1_L3;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_MP_HD_MPEG1_L3_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_MP_HD_MPEG1_L3_ISO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_50_LPCM_T;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVMED_BASE;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVMED_FULL;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVHIGH_FULL;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVMED_PRO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-wmv:DLNA.ORG_PN=WMVHIGH_PRO;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L1_WMA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L2_WMA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000,http-get:*:video/x-ms-asf:DLNA.ORG_PN=VC1_ASF_AP_L3_WMA;DLNA.ORG_OP=11;DLNA.ORG_FLAGS=01500000000000000000000000000000</ProtocolInfo>
  <TimelineOffsetSeconds>0</TimelineOffsetSeconds>
  <RequiresPlainVideoItems>false</RequiresPlainVideoItems>
  <RequiresPlainFolders>false</RequiresPlainFolders>
  <EnableMSMediaReceiverRegistrar>false</EnableMSMediaReceiverRegistrar>
  <IgnoreTranscodeByteRangeRequests>false</IgnoreTranscodeByteRangeRequests>
  <EnableDlnaProtocol>true</EnableDlnaProtocol>
  <XmlRootAttributes />
  <DirectPlayProfiles>
    <DirectPlayProfile container="mp3,wma" type="Audio" />
    <DirectPlayProfile container="flac" audioCodec="" videoCodec="" type="Audio" />
    <DirectPlayProfile container="mp4" audioCodec="aac" videoCodec="" type="Audio" />
    <DirectPlayProfile container="ogg" audioCodec="vorbis" videoCodec="" type="Audio" />
    <DirectPlayProfile container="wma" audioCodec="wmav2" videoCodec="" type="Audio" />
    <DirectPlayProfile container="wav" audioCodec="flac,pcm" videoCodec="" type="Audio" />
  </DirectPlayProfiles>
  <TranscodingProfiles>
    <TranscodingProfile container="flac" type="Audio" videoCodec="" audioCodec="flac" protocol="Http" estimateContentLength="false" enableMpegtsM2TsMode="false" transcodeSeekInfo="Auto" context="Streaming" />
  </TranscodingProfiles>
  <ContainerProfiles />
  <CodecProfiles />
  <ResponseProfiles />
  <SubtitleProfiles />
</Profile>

Link to comment
Share on other sites

Hello,

 

I have removed the profile and the flac is read as Flac so the profile is not needed any more (for the flac part).

But the radio has an access to the video folders so the profile is useful to show only the audio files.

 

Greetings

Marc

Link to comment
Share on other sites

But the radio has an access to the video folders so the profile is useful to show only the audio files.

 

Do you mean when browsing from the radio?

Link to comment
Share on other sites

Yes, In my DLNA profile I have made a user DLNAAudio that can only access the music library and I have forced the profile to use the user DLNAAudio (and the playlists from the user DLNAAudio).

Link to comment
Share on other sites

Thanks for the info and for testing this.

 

I think we should have a better way of detecting support so that you don't have to create a custom profile just for this one single reason.

Link to comment
Share on other sites

You're welcome.

Unfortunately, I don't think that the radio tells what it can read. Perhaps an option to tell what the client can read would solve the problem (a list of all the DLNA client and you can say Only show that (or user name ...) would be enough?

Link to comment
Share on other sites

NewbieNewb

The default Dlna profile will direct play everything. Couldn't you just use the default here?

 

But it doesn't  :( I haven't made any changes to the default DLNA settings on Plex, but on the Medion device whenever I try to play music from a folder on my iMac it just shows as 'Empty'. It seems that Plex stopped updating profiles with new releases of the server some time ago, so as my Medion device is fairly new I'm guessing they didn't include a profile that supports it with the last release.

Link to comment
Share on other sites

Hello,

 

You are right, (I use it), but you have to decide if you only have radios or Videos players (or create custom profiles for what is not the standard) (or perhaps make two installations of Emby, one for Videos and one for audio).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...