bpa wrote:
> IIRC That transcoding would be triggered if sample rate and/or sample
> size was not playable by the player natively.
Ah, ok. Thank you.
So I lifted that transcode entry, and just stuck it in
custom-convert.conf:
Code:
--------------------
root@waffle:/etc/squeezeboxserver# cat custom-convert.conf
flc flc * *
# IFT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}E:{NOSTART=I}
[flac] -dcs $START$ $END$ --force-raw-format --sign=signed --endian=little --
$FILE$ | [sox] -q -t raw --encoding signed-integer -b $SAMPLESIZE$ -r
$SAMPLERATE$ -c $CHANNELS$ -L - -t flac $RESAMPLE$ -C 0 -
--------------------
That then give me an additional entry for FLAC under File Types, with
the new one reading "flac/sox" for the Decoder. I enabled that one, and
disabled the original one. I left "Prefer native format" checked. Here's
what that looks like:
https://imgur.com/a/HkqiywT
This is the solution I really wanted, although again, the simple disable
described above gets you AIF (PCM) output, and that's probably fine too.
I double checked the logs, and it appears to be doing what I want now:
Code:
--------------------
21-12-17 14:56:52.7168] Slim::Player::Song::open (472) Opening stream (no
direct streaming) using Slim::Player::Protocols::File
[file:///mnt/ManzanitaMusic/MusicLibrary/2021/2021-12%20(Dec)/Jessy%20Lanza%20-%20DJ-Kicks-%20Jessy%20Lanza%20(2021)%20[FLAC]/CD1/09.%20Foaming%20(Mixed).flac]
[21-12-17 14:56:52.7177] Slim::Player::Protocols::File::open (80) duration:
[193.607] size: [18728199] endian [] offset: [0] for
file:///mnt/ManzanitaMusic/MusicLibrary/2021/2021-12%20(Dec)/Jessy%20Lanza%20-%20DJ-Kicks-%20Jessy%20Lanza%20(2021)%20[FLAC]/CD1/09.%20Foaming%20(Mixed).flac
[21-12-17 14:56:52.7181] Slim::Player::Protocols::File::open (97) Opening
file /mnt/ManzanitaMusic/MusicLibrary/2021/2021-12 (Dec)/Jessy Lanza -
DJ-Kicks- Jessy Lanza (2021) [FLAC]/CD1/09. Foaming (Mixed).flac
[21-12-17 14:56:52.7194] Slim::Player::Protocols::File::open (189) Seeking in
0 into /mnt/ManzanitaMusic/MusicLibrary/2021/2021-12 (Dec)/Jessy Lanza -
DJ-Kicks- Jessy Lanza (2021) [FLAC]/CD1/09. Foaming (Mixed).flac
[21-12-17 14:56:52.7200] Slim::Player::Song::open (502) URL is a song
(audio):
file:///mnt/ManzanitaMusic/MusicLibrary/2021/2021-12%20(Dec)/Jessy%20Lanza%20-%20DJ-Kicks-%20Jessy%20Lanza%20(2021)%20[FLAC]/CD1/09.%20Foaming%20(Mixed).flac,
type=flc
[21-12-17 14:56:52.7210]
Slim::Player::TranscodingHelper::tokenizeConvertCommand2 (667) Using command
for conversion: "/usr/share/squeezeboxserver/Bin/x86_64-linux/flac" -dcs
--force-raw-format --sign=signed --endian=little -- - |
"/usr/share/squeezeboxserver/Bin/x86_64-linux/sox" -q -t raw --encoding
signed-integer -b 16 -r 44100 -c 2 -L - -t flac -C 0 -
[21-12-17 14:56:52.7214] Slim::Player::Song::open (578) Tokenized command:
"/usr/share/squeezeboxserver/Bin/x86_64-linux/flac" -dcs --force-raw-format
--sign=signed --endian=little -- - |
"/usr/share/squeezeboxserver/Bin/x86_64-linux/sox" -q -t raw --encoding
signed-integer -b 16 -r 44100 -c 2 -L - -t flac -C 0 -
[21-12-17 14:56:52.7800] Slim::Player::SongStreamController::new (36) live=2
[21-12-17 14:56:52.7824] Slim::Player::StreamingController::_Stream (1282)
00:04:20:2a:e6:6f: stream
[21-12-17 14:56:52.7856] Slim::Player::StreamingController::_Stream (1319)
Song queue is now 8
[21-12-17 14:56:52.7863] Slim::Player::StreamingController::_setPlayingState
(2377) new playing state BUFFERING
[21-12-17 14:56:52.7867]
Slim::Player::StreamingController::_setStreamingState (2386) new streaming
state STREAMING
[21-12-17 14:56:52.7871] Slim::Player::StreamingController::_eventAction
(302) 00:04:20:2a:e6:6f: NextTrackReady - new state BUFFERING-STREAMING
[21-12-17 14:56:52.7877] Slim::Player::StreamingController::_eventAction
(302) 00:04:20:2a:e6:6f: Play - new state BUFFERING-STREAMING
--------------------
Thanks to everyone for the help. If anyone sees room for further
improvement, let me know.
------------------------------------------------------------------------
StewLG's Profile: http://forums.slimdevices.com/member.php?userid=15888
View this thread: http://forums.slimdevices.com/showthread.php?t=115583
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss