LMS-Community / slimserver-platforms

Platform-specific build tools for Lyrion Music Server
48 stars 41 forks source link

FLAC playback fails #28

Closed kungfoolfighting closed 2 years ago

kungfoolfighting commented 3 years ago

Hello, sadly, with this docker container I run into the issue that trying to play any FLAC files leads to white noise coming from my Squeezelite clients. I verified that it actually works with a straight install from AUR on Arch Linux. The log output is

[21-08-09 16:01:25.2968] Slim::Player::Song::new (109) index 0 -> file:///music/Music/Kosheen/Resist/Kosheen%20-%20Resist%20-%2015%20-%20Gone.flac
[21-08-09 16:01:25.2969] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state TRACKWAIT
[21-08-09 16:01:25.2980] Slim::Player::StreamingController::_playersMessage (796) Now Playing: file:///music/Music/Kosheen/Resist/Kosheen%20-%20Resist%20-%2015%20-%20Gone.flac
[21-08-09 16:01:25.2985] Slim::Player::Song::getNextSong (222) file:///music/Music/Kosheen/Resist/Kosheen%20-%20Resist%20-%2015%20-%20Gone.flac
[21-08-09 16:01:25.2986] Slim::Player::StreamingController::_nextTrackReady (744) 02:42:ac:11:00:05: nextTrack will be index 0
[21-08-09 16:01:25.2987] Slim::Player::StreamingController::_Stream (1210) Song queue is now 0
[21-08-09 16:01:25.2988] Slim::Player::StreamingController::_Stream (1213) 02:42:ac:11:00:05: preparing to stream song index 0
[21-08-09 16:01:25.2989] Slim::Player::Song::open (362) file:///music/Music/Kosheen/Resist/Kosheen%20-%20Resist%20-%2015%20-%20Gone.flac
[21-08-09 16:01:25.2991] Slim::Player::TranscodingHelper::getConvertCommand2 (493) Matched: flc->pcm via: [flac] -dcs --totally-silent $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t wav  -b 24 --buffer 8192 -   gain -h  rate -v -I -b 90.7 -f 192000
[21-08-09 16:01:25.2993] Slim::Player::TranscodingHelper::getConvertCommand2 (490) Error: Didn't find any command matches for type: flc
[21-08-09 16:01:25.2994] Slim::Player::Song::open (386) seek=false time=0 canSeek=1
[21-08-09 16:01:25.2995] Slim::Player::TranscodingHelper::getConvertCommand2 (493) Matched: flc->pcm via: [flac] -dcs --totally-silent $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t wav  -b 24 --buffer 8192 -   gain -h  rate -v -I -b 90.7 -f 192000
[21-08-09 16:01:25.2996] Slim::Player::Song::open (416) Transcoder: streamMode=I, streamformat=pcm
[21-08-09 16:01:25.2997] Slim::Player::Song::open (472) Opening stream (no direct streaming) using Slim::Player::Protocols::File [file:///music/Music/Kosheen/Resist/Kosheen%20-%20Resist%20-%2015%20-%20Gone.flac]
[21-08-09 16:01:25.2998] Slim::Player::Protocols::File::open (80) duration: [218.866] size: [27020401] endian [] offset: [0] for file:///music/Music/Kosheen/Resist/Kosheen%20-%20Resist%20-%2015%20-%20Gone.flac
[21-08-09 16:01:25.2998] Slim::Player::Protocols::File::open (97) Opening file /music/Music/Kosheen/Resist/Kosheen - Resist - 15 - Gone.flac
[21-08-09 16:01:25.2999] Slim::Player::Protocols::File::open (189) Seeking in 0 into /music/Music/Kosheen/Resist/Kosheen - Resist - 15 - Gone.flac
[21-08-09 16:01:25.3000] Slim::Player::Song::open (502) URL is a song (audio): file:///music/Music/Kosheen/Resist/Kosheen%20-%20Resist%20-%2015%20-%20Gone.flac, type=flc
[21-08-09 16:01:25.3002] Slim::Player::TranscodingHelper::tokenizeConvertCommand2 (667) Using command for conversion: "/lms/Bin/x86_64-linux/flac" -dcs --totally-silent -- - | "/lms/Bin/x86_64-linux/sox" -q -t wav - -t wav  -b 24 --buffer 8192 -   gain -h  rate -v -I -b 90.7 -f 192000
[21-08-09 16:01:25.3002] Slim::Player::Song::open (578) Tokenized command: "/lms/Bin/x86_64-linux/flac" -dcs --totally-silent -- - | "/lms/Bin/x86_64-linux/sox" -q -t wav - -t wav  -b 24 --buffer 8192 -   gain -h  rate -v -I -b 90.7 -f 192000
/lms/Bin/x86_64-linux/sox FAIL sox: `-' error writing output file: Broken pipe
[21-08-09 16:01:25.3162] Slim::Player::StreamingController::_Stream (1282) 02:42:ac:11:00:05: stream
[21-08-09 16:01:25.3170] Slim::Player::StreamingController::_Stream (1319) Song queue is now 0
[21-08-09 16:01:25.3171] Slim::Player::StreamingController::_setPlayingState (2377) new playing state BUFFERING
[21-08-09 16:01:25.3172] Slim::Player::StreamingController::_setStreamingState (2386) new streaming state STREAMING
[21-08-09 16:01:25.3239] Slim::Player::TranscodingHelper::getConvertCommand2 (493) Matched: flc->pcm via: [flac] -dcs --totally-silent $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t wav  -b 24 --buffer 8192 -   gain -h  rate -v -I -b 90.7 -f 192000
[21-08-09 16:01:25.3241] Slim::Player::TranscodingHelper::getConvertCommand2 (490) Error: Didn't find any command matches for type: flc
[21-08-09 16:01:25.3941] Slim::Player::Squeezebox2::directHeaders (478) Processing headers for direct streaming:
HTTP/1.1 200 OK
Server: Logitech Media Server (8.2.0 - 1627922070)
Connection: close
Content-Type: audio/L16 
Set-Cookie: Squeezebox-albumView=; path=/
Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/
Set-Cookie: Squeezebox-expanded-PLUGINS=1; path=/
Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
Set-Cookie: Squeezebox-expanded-RADIO=0; path=/

[21-08-09 16:01:27.4866] Slim::Player::StreamingController::playerTrackStarted (2200) 02:42:ac:11:00:05
[21-08-09 16:01:27.4867] Slim::Player::StreamingController::_setPlayingState (2377) new playing state PLAYING
[21-08-09 16:01:27.4868] Slim::Player::StreamingController::_Playing (368) Song 0 has now started playing
[21-08-09 16:01:27.4870] Slim::Player::StreamingController::_Playing (397) Song queue is now 0
[21-08-09 16:01:27.4877] Slim::Player::TranscodingHelper::getConvertCommand2 (493) Matched: flc->pcm via: [flac] -dcs --totally-silent $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t wav  -b 24 --buffer 8192 -   gain -h  rate -v -I -b 90.7 -f 192000
[21-08-09 16:01:27.4879] Slim::Player::TranscodingHelper::getConvertCommand2 (490) Error: Didn't find any command matches for type: flc
[21-08-09 16:01:27.4889] Slim::Player::TranscodingHelper::getConvertCommand2 (493) Matched: flc->pcm via: [flac] -dcs --totally-silent $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t wav  -b 24 --buffer 8192 -   gain -h  rate -v -I -b 90.7 -f 192000
[21-08-09 16:01:27.4890] Slim::Player::Protocols::File::open (80) duration: [218.866] size: [27020401] endian [] offset: [0] for file:///music/Music/Kosheen/Resist/Kosheen%20-%20Resist%20-%2015%20-%20Gone.flac
[21-08-09 16:01:27.4891] Slim::Player::Protocols::File::open (97) Opening file /music/Music/Kosheen/Resist/Kosheen - Resist - 15 - Gone.flac
[21-08-09 16:01:27.4892] Slim::Player::Protocols::File::open (189) Seeking in 0 into /music/Music/Kosheen/Resist/Kosheen - Resist - 15 - Gone.flac
[21-08-09 16:01:27.4894] Slim::Player::TranscodingHelper::tokenizeConvertCommand2 (667) Using command for conversion: "/lms/Bin/x86_64-linux/flac" -dcs --totally-silent -- - | "/lms/Bin/x86_64-linux/sox" -q -t wav - -t wav  -b 24 --buffer 8192 -   gain -h  rate -v -I -b 90.7 -f 192000

Do you have any idea how I could fix this? Thanks!

michaelherger commented 3 years ago

I think you should post to forums.slimdevices.com.

Are you using any custom transcoding rules (or a plugin implementing some)? I don't know where some of those sox parameters would come from in a stock LMS.

kungfoolfighting commented 3 years ago

Okay I will post on the other forum. I installed the spotty and the YouTube plugins and a few protocol bridges but I did not manually change any rules.