So why mp3? Here is an example of the rules decision making with my
system when 'flc' codec is disabled. Because there is no wav-pcm rule
that allows resampling, LMS has to go through a codec of some sort and
it can only be mp3 in this case

Code:
--------------------
    
  [18-08-25 11:43:54.1893] Slim::Player::Song::open (363) 
file:///D:/Users/.../Dropbox/Development/Musique/Tests/L16-192-wav.wav
  [18-08-25 11:43:54.1901] Slim::Player::TranscodingHelper::enabledFormat (209) 
Checking to see if wav-pcm-*-* is enabled
  [18-08-25 11:43:54.1903] Slim::Player::TranscodingHelper::checkBin (250)    
enabled
  [18-08-25 11:43:54.1904] Slim::Player::TranscodingHelper::checkBin (252)   
Found command: -
  [18-08-25 11:43:54.1905] Slim::Player::TranscodingHelper::getConvertCommand2 
(382) Rejecting - because required capability D not supported: 
  [18-08-25 11:43:54.1911] Slim::Player::TranscodingHelper::enabledFormat (209) 
Checking to see if wav-mp3-*-* is enabled
  [18-08-25 11:43:54.1912] Slim::Player::TranscodingHelper::checkBin (250)    
enabled
  [18-08-25 11:43:54.1913] Slim::Player::TranscodingHelper::checkBin (252)   
Found command: [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ $FILE$ -
  [18-08-25 11:43:54.1915] Slim::Player::TranscodingHelper::getConvertCommand2 
(446) Matched: wav->mp3 via: [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ 
$FILE$ -
  [18-08-25 11:43:54.1921] Slim::Player::TranscodingHelper::enabledFormat (209) 
Checking to see if wav-pcm-*-* is enabled
  [18-08-25 11:43:54.1923] Slim::Player::TranscodingHelper::checkBin (250)    
enabled
  [18-08-25 11:43:54.1924] Slim::Player::TranscodingHelper::checkBin (252)   
Found command: -
  [18-08-25 11:43:54.1925] Slim::Player::TranscodingHelper::getConvertCommand2 
(382) Rejecting - because required capability T not supported: 
  [18-08-25 11:43:54.1930] Slim::Player::TranscodingHelper::enabledFormat (209) 
Checking to see if wav-mp3-*-* is enabled
  [18-08-25 11:43:54.1931] Slim::Player::TranscodingHelper::checkBin (250)    
enabled
  [18-08-25 11:43:54.1932] Slim::Player::TranscodingHelper::checkBin (252)   
Found command: [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ $FILE$ -
  [18-08-25 11:43:54.1934] Slim::Player::TranscodingHelper::getConvertCommand2 
(382) Rejecting [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ $FILE$ - 
because required capability T not supported: 
  [18-08-25 11:43:54.1935] Slim::Player::TranscodingHelper::getConvertCommand2 
(443) Error: Didn't find any command matches for type: wav
  [18-08-25 11:43:54.1936] Slim::Player::Song::open (387) seek=false time=0 
canSeek=1
  [18-08-25 11:43:54.1942] Slim::Player::TranscodingHelper::enabledFormat (209) 
Checking to see if wav-pcm-*-* is enabled
  [18-08-25 11:43:54.1943] Slim::Player::TranscodingHelper::checkBin (250)    
enabled
  [18-08-25 11:43:54.1945] Slim::Player::TranscodingHelper::checkBin (252)   
Found command: -
  [18-08-25 11:43:54.1946] Slim::Player::TranscodingHelper::getConvertCommand2 
(382) Rejecting - because required capability D not supported: 
  [18-08-25 11:43:54.1952] Slim::Player::TranscodingHelper::enabledFormat (209) 
Checking to see if wav-mp3-*-* is enabled
  [18-08-25 11:43:54.1953] Slim::Player::TranscodingHelper::checkBin (250)    
enabled
  [18-08-25 11:43:54.1954] Slim::Player::TranscodingHelper::checkBin (252)   
Found command: [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ $FILE$ -
  [18-08-25 11:43:54.1956] Slim::Player::TranscodingHelper::getConvertCommand2 
(446) Matched: wav->mp3 via: [lame] --silent -q $QUALITY$ $RESAMPLE$ $BITRATE$ 
$FILE$ -
  [18-08-25 11:43:54.1957] Slim::Player::Song::open (408) Transcoder: 
streamMode=I, streamformat=mp3
  
--------------------


(extract from convert.conf)

Code:
--------------------
    
  # Capabilities
  # I - can transcode from stdin
  # F - can transcode from a named file
  # R - can transcode from a remote URL (URL types unspecified)
  # 
  # O - can seek to a byte offset in the source stream (not yet implemented)
  # T - can seek to a start time offset
  # U - can seek to start time offset and finish at end time offset
  #
  # D - can downsample
  # B - can limit bitrate
  
--------------------


Now, if flc was enabled,here what's happenign which is what you'd
expect

Code:
--------------------
    
  [18-08-25 11:49:57.3548] Slim::Player::Song::open (363) 
file:///D:/Users/.../Dropbox/Development/Musique/Tests/L16-192-wav.wav
  [18-08-25 11:49:57.3565] Slim::Player::TranscodingHelper::enabledFormat (209) 
Checking to see if wav-flc-*-* is enabled
  [18-08-25 11:49:57.3567] Slim::Player::TranscodingHelper::checkBin (250)    
enabled
  [18-08-25 11:49:57.3569] Slim::Player::TranscodingHelper::checkBin (252)   
Found command: [flac] -cs --totally-silent --compression-level-0 $START$ $END$ 
-- $FILE$ | [sox] -q -t flac - -t flac -C 0 $RESAMPLE$ -
  [18-08-25 11:49:57.3573] Slim::Player::TranscodingHelper::getConvertCommand2 
(446) Matched: wav->flc via: [flac] -cs --totally-silent --compression-level-0 
$START$ $END$ -- $FILE$ | [sox] -q -t flac - -t flac -C 0 $RESAMPLE$ -
  [18-08-25 11:49:57.3587] Slim::Player::TranscodingHelper::enabledFormat (209) 
Checking to see if wav-flc-*-* is enabled
  [18-08-25 11:49:57.3590] Slim::Player::TranscodingHelper::checkBin (250)    
enabled
  [18-08-25 11:49:57.3592] Slim::Player::TranscodingHelper::checkBin (252)   
Found command: [flac] -cs --totally-silent --compression-level-0 $START$ $END$ 
-- $FILE$ | [sox] -q -t flac - -t flac -C 0 $RESAMPLE$ -
  [18-08-25 11:49:57.3595] Slim::Player::TranscodingHelper::getConvertCommand2 
(446) Matched: wav->flc via: [flac] -cs --totally-silent --compression-level-0 
$START$ $END$ -- $FILE$ | [sox] -q -t flac - -t flac -C 0 $RESAMPLE$ -
  [18-08-25 11:49:57.3598] Slim::Player::Song::open (387) seek=false time=0 
canSeek=2
  [18-08-25 11:49:57.3611] Slim::Player::TranscodingHelper::enabledFormat (209) 
Checking to see if wav-flc-*-* is enabled
  [18-08-25 11:49:57.3614] Slim::Player::TranscodingHelper::checkBin (250)    
enabled
  [18-08-25 11:49:57.3616] Slim::Player::TranscodingHelper::checkBin (252)   
Found command: [flac] -cs --totally-silent --compression-level-0 $START$ $END$ 
-- $FILE$ | [sox] -q -t flac - -t flac -C 0 $RESAMPLE$ -
  [18-08-25 11:49:57.3620] Slim::Player::TranscodingHelper::getConvertCommand2 
(446) Matched: wav->flc via: [flac] -cs --totally-silent --compression-level-0 
$START$ $END$ -- $FILE$ | [sox] -q -t flac - -t flac -C 0 $RESAMPLE$ -
  [18-08-25 11:49:57.3622] Slim::Player::Song::open (408) Transcoder: 
streamMode=F, streamformat=flc
  [18-08-25 11:49:57.3629] 
Slim::Player::TranscodingHelper::tokenizeConvertCommand2 (617) Using command 
for conversion: 
"C:\PROGRA~2\SQUEEZ~1\server\Bin\MSWin32-x86-multi-thread\flac.exe" -cs 
--totally-silent --compression-level-0 -- 
"D:\Users\...\Dropbox\Development\Musique\Tests\L16-192-wav.wav" | 
"C:\PROGRA~2\SQUEEZ~1\server\Bin\MSWin32-x86-multi-thread\sox.exe" -q -t flac - 
-t flac -C 0 -r 96000 - |
  [18-08-25 11:49:57.3632] Slim::Player::Song::open (558) Tokenized command: 
"C:\PROGRA~2\SQUEEZ~1\server\Bin\MSWin32-x86-multi-thread\flac.exe" -cs 
--totally-silent --compression-level-0 -- 
"D:\Users\...\Dropbox\Development\Musique\Tests\L16-192-wav.wav" | 
"C:\PROGRA~2\SQUEEZ~1\server\Bin\MSWin32-x86-multi-thread\sox.exe" -q -t flac - 
-t flac -C 0 -r 96000 - |
  
--------------------


So, at the end of the day, one way or the other, maybe through some C3PO
interaction, I have no idea, the wav->flc rule cannot apply on your
system (I saw that the 'flc' codec is enabled in your bridge config
file, so it's the rule that does not work. 
I can't tell more because I don't have such log or convert.conf



LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos
PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi
B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010,
AppleTV 4, Airport Express, GGMM E5
------------------------------------------------------------------------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=103728

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to