Direct Play Alac files to Roberts Stream 94i DLNA client : audio.bitrate limitation applies

Server Version#: 1.22.0.4163

Hi !

I am trying to configure a DLNA profile for direct playing my ALAC files to a Roberts Stream 94i radio device. I would like to transcode alac to mp3 only when it exceed the 1536 kbit/s bitrate (24 bits files or 96khz files are not supported by the device) but direct playing in other cases.

Here is my profile :

<?xml version="1.0" encoding="utf-8"?>
<Client name="Stream94iPlus">
	<Identification>
		<DeviceDescription>
			<ModelNumber substring="Stream94iPlus" />
		</DeviceDescription>
	</Identification>
	<Settings>
		<Setting name="AlbumArtPN" value="JPEG_TN" />
		<Setting name="EmitSinglePhotoResource" value="true" />
	</Settings>
	<DirectPlayProfiles>
		<MusicProfile container="mp4" codec="alac,aac" />
		<MusicProfile container="flac" codec="flac" />
		<MusicProfile container="mp3" codec="mp3" />
	</DirectPlayProfiles>
	<CodecProfiles>
		<MusicCodec name="*">
			<Limitations>
				<UpperBound name="audio.samplingRate" value="48000" />
				<LowerBound name="audio.samplingRate" value="8000" />
				<Match name="audio.samplingRate" list="8000|11025|16000|22050|24000|32000|44100|48000" />
				<UpperBound name="audio.channels" value="2" />
				<UpperBound name="audio.bitDepth" value="16" />
				<UpperBound name="audio.bitrate" value="1536" />
			</Limitations>
		</MusicCodec>
	</CodecProfiles>
	<TranscodeTargets>
		<MusicProfile container="mp3" codec="mp3" />
		<PhotoProfile container="jpeg" />
	</TranscodeTargets>
	<DlnaMediaProfiles>
		<DlnaMusicProfile container="mp4" mimeType="audio/m4a" />
	</DlnaMediaProfiles>
</Client>

But it seems to transcode every alac files, even if bitrate is ok (48khz / 16 bit stereo alac files usually do)

Logs are talking about a bitrate limitation of 288 that I does not undestand :

Mar 12, 2021 01:41:53.068 [15520] DEBUG - Mapped client to profile Stream94iPlus using device description of type 'urn:schemas-upnp-org:device:MediaRenderer:1'
Mar 12, 2021 01:41:53.068 [15520] DEBUG - Mapped object 06d905afa7aa56fda0d7 to /library/metadata/191687 part 0 on server 
Mar 12, 2021 01:41:53.068 [15520] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/191687
Mar 12, 2021 01:41:53.068 [15520] DEBUG - HTTP requesting GET http://127.0.0.1:32400/library/metadata/191687
Mar 12, 2021 01:41:53.083 [15520] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/library/metadata/191687
Mar 12, 2021 01:41:53.084 [15520] DEBUG - Caching document http://127.0.0.1:32400/library/metadata/191687 as e0296de853d53db8eadc4f9340e33f84b51c6b7a
Mar 12, 2021 01:41:53.084 [15520] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/191687
Mar 12, 2021 01:41:53.084 [15520] DEBUG - Cache hit for document http://127.0.0.1:32400/library/metadata/191687
Mar 12, 2021 01:41:53.084 [15520] DEBUG - MDE: Selected protocol http; container: mp3
Mar 12, 2021 01:41:53.084 [15520] DEBUG - MDE: analyzing media item 263473
Mar 12, 2021 01:41:53.084 [15520] DEBUG - 7 Seconds - audio.bitrate limitation applies: 927 > 288
Mar 12, 2021 01:41:53.085 [15520] DEBUG - 7 Seconds - audio.bitrate limitation applies: 927 > 288
Mar 12, 2021 01:41:53.085 [15520] DEBUG - MDE: Cannot direct stream audio stream due to profile or setting limitations
Mar 12, 2021 01:41:53.085 [15520] DEBUG - MDE: 7 Seconds: selected media 0 / 263473
Mar 12, 2021 01:41:53.086 [15520] DEBUG - Returning success with 1 objects

and even MP3 with 320kbits bitrate are transcoded and not directplayed !!!

Mar 12, 2021 01:36:56.418 [11208] DEBUG - MDE: Selected protocol http; container: mp3
Mar 12, 2021 01:36:56.418 [11208] DEBUG - MDE: analyzing media item 90689
Mar 12, 2021 01:36:56.418 [11208] DEBUG - Don't Be Light (Featuring Beck) - audio.bitrate limitation applies: 320 > 288
Mar 12, 2021 01:36:56.418 [11208] DEBUG - Don't Be Light (Featuring Beck) - audio.bitrate limitation applies: 320 > 288
Mar 12, 2021 01:36:56.418 [11208] DEBUG - Don't Be Light (Featuring Beck) - audio.bitrate limitation applies: 320 > 288
Mar 12, 2021 01:36:56.418 [11208] DEBUG - MDE: Cannot direct stream audio stream due to profile or setting limitations
Mar 12, 2021 01:36:56.418 [11208] DEBUG - MDE: Don't Be Light (Featuring Beck): selected media 0 / 90689
Mar 12, 2021 01:36:56.419 [11208] DEBUG - Returning success with 1 objects
Mar 12, 2021 01:36:56.419 [11208] VERBOSE - DIDL:

whereas if I play a alac file exeeding limitations I have in the profile, it do take it into account :

Mar 12, 2021 01:45:09.435 [16096] DEBUG - MDE: Selected protocol http; container: mp3
Mar 12, 2021 01:45:09.435 [16096] DEBUG - MDE: analyzing media item 272133
Mar 12, 2021 01:45:09.435 [16096] DEBUG - FLYING TOTEMS (movement 2) - audio.bitDepth limitation applies: 24 > 16
Mar 12, 2021 01:45:09.435 [16096] DEBUG - FLYING TOTEMS (movement 2) - audio.bitDepth limitation applies: 24 > 16
Mar 12, 2021 01:45:09.435 [16096] DEBUG - MDE: Cannot direct stream audio stream due to profile or setting limitations
Mar 12, 2021 01:45:09.435 [16096] DEBUG - MDE: FLYING TOTEMS (movement 2): selected media 0 / 272133
Mar 12, 2021 01:45:09.436 [16096] DEBUG - Returning success with 1 objects
Mar 12, 2021 01:45:09.436 [16096] VERBOSE - DIDL:

Where does come from this 288 limitation ? how to override it ?

I have figured It out : Plex retains per player settings : “DLNA client preferences” in plex server admin. this settings are set when you browse in the DLNA tree from the client : there are virtual folders that serves as settings : “Music > preferences > Music Transcode Bitrate” and you can select a bitrate but no more than 320kbps. This setting seems to override everything else and disqualify any directplaying of lossless content since it is above 320kbps !!!

Conclusion : There should be a client setting to allow directPlay and use transcoding with the indicated bit only if DLNA profile indicate the source file is not suitable for directplaying. Is it possible to have that ?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.