kipeta wrote: 
> The rule (”profile”) selection procedure is at
> Slim::Player::TranscodingHelper:getConvertCommand2. 
> https://github.com/Logitech/slimserver/blob/public/7.9/Slim/Player/TranscodingHelper.pm#L340
> 
> The order of precedence is first determined by the precedence of the
> supported audio formats. It is reported by player to LMS in HELO message
> (formats and priority). The priority of client specific profile over the
> generic one is only secondary i.e. works only for same target audio
> format. So if the player for example reports “flc,pcm” as supported
> formats, then LMS would select always generic “flc”-profile over the
> client specific “pcm”-profile.
> 
> One way to handle player specific conversions is to control supported
> formats (e.g. exclude flc; however I wouldn't recommend it) and the
> order of the precedence for them on player side. Squeezelite has an
> option to define what formats are supported but it does not let user to
> define the order of precedence. Here is a "quick&dirty" patch for that:
> http://www.daphile.com/gpl-src/00-Daphile-patches/squeezelite/11-codec_priority.patch
> 
> The profile selection works even so that if the player would support the
> original audio format but if the priority of that format is lower than
> for example the priority of “flc” then audio stream will be converted to
> “flc” on server side. In Daphile I have patched LMS (with special case
> only for Daphile players) so that the original audio format is always
> preferred if it’s supported by the player.
> 
> I understand perfectly if Michael does not want to touch this code. It’s
> very easy to break something there (I have experienced it with Daphile
> ;-).

Nice shot, as usual.

Please note that also capabilities are concerned when the 'profile' is
selected. I had some trouble in windows with streaming services using I
capability and non T.  I was tempted to submit to Michael a patch to
TranscodingHelper to solve this, but there are too many 'special' cases
handeld and you'll never be sure you tested all cases.



____________________________________________________________
SB+, Klimo Merlino + Kent Gold, Monitor Audio Studio 20 Gold SE+, Klimo
reference and DIS Interconnect.
------------------------------------------------------------------------
marcoc1712's Profile: http://forums.slimdevices.com/member.php?userid=34842
View this thread: http://forums.slimdevices.com/showthread.php?t=106517

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

Reply via email to