Hi all,

This year I moved form my old (2009) Synology NAS to a QNAP TS-453Be.
For my two Squeezebox Touch's I installed LMS 7.9.3 in a container
without much problems.

I also have a Denon AVR 3313 and it connects to the LMS server via DLNA.
Somehow the Denon will not play FLAC files natively but it will play a
transcode MP3 file. I have a simple solution for this which I will
describe below.


I can see that the Denon does not play FLAC files as FLAC by when
connecting my Denon to my TV. Here it shows the file type played is not
FAC but MP3 320 Kbps. The Denon clearly asks the LMS to transcode the
FLAC to MP3 while it capable to playing FLAC through it's internal DAC.
After analyzing it (years back) I found the cause to be that the LMS
server stores the native file type (FLC) as well as other type ( IAF,
MP3) in the UPnP database. To resolve this I made a small change to the
LMS code (Utils.pm) to prevent the "other types" to be placed in the
UPnP database so only one entry, the FLAC file, remains. Now my Denon
will play FLAC files from the LMS serve.

For anyone who ran into the same problem here is how to resolve it.
1 ) On the QNAP container locate the folder

/usr/share/perl5/Slim/Plugin/UPnP/Common

2 ) The code on line 238 pushes the files into the UPnP database

for my $type ( $native_type, @other_types ) {

3 ) Replace this line of code by the following one to only push the
native file type

for my $type ( $native_type ) {

4 ) now the only file that is pushed is the native file type. For Flac
this is Flac and MP3 this is MP3.
5 ) restart the LMS container and you are done.
6 ) Check the result on your TV, it should now show that the Denon AVR
is playing FLAC instead of MP3

This change will also work on Synology NAS's and probably works for
other Denon and Marantz AVR's other than the AVR 3313.

To check your UPNP database.
1 ) View UPnP database entries, for this use "Developer Tools for UPnP™
Technology", "AV Media Controller.exe"
2 ) on DS209 it showed 2 entries; FLC and MP3
3 ) on QNAP it showed 3 entries; FLC, AIF and MP3
4 ) Denon AVR 3313 will (somehow) select the IAF/MP3 instead of the FLC
file
5) Utils.pm builds the UPnP database, adding a FLC file, followed by an
AIF and MP3 file
6 ) By only storing the $native_type in the UPnP database the Denon
plays FLAC files
7 ) This is done by updating the file Utils.pm
8 ) I stored a copy of the file Utils.pm in the shared folder
/mnt/state/etc/ so I could edit it from within windows
9 ) followed by copying it to the right location on QNAP by the
following command

cp /mnt/state/etc/Utils.pm
/usr/share/perl5/Slim/Plugin/UPnP/Common
cat /usr/share/perl5/Slim/Plugin/UPnP/Common/Utils.pm
10) The cat command checks that the copy step was done
successfully

So if your AVR does not play FLAC files as FLAC, this might be the
solution.


------------------------------------------------------------------------
emklap's Profile: http://forums.slimdevices.com/member.php?userid=60103
View this thread: http://forums.slimdevices.com/showthread.php?t=98888

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to