Ok, I don't know what more to try...
My intent is of using sox to equalize music coming from Spotty to my
headphones.
My custom.conf line reads like this:
Code:
--------------------
spt flc * bc:5f:f4:bf:3e:70
# RT:{START=--start-position %s}
[spotty] -n Squeezebox -c "$CACHE$" --single-track $URL$ --bitrate 320
--disable-discovery --disable-audio-cache $START$ | [sox] -q --endian little -t
s16 -r 44100 -c 2 - -t flac -C 0 -b 24 - gain -6.9 equalizer 30 0.43q +6.2
equalizer 699 2.00q +1.0 equalizer 2924 4.11q -1.7 equalizer 6031 5.05q -6.2
equalizer 9825 4.08q +2.2 equalizer 83 4.24q +1.3 equalizer 209 1.54q -1.2
equalizer 2842 0.1q +0.2 equalizer 12443 1.29q +2.7 equalizer 19698 0.46q -11.8
--------------------
It works perfectly. I can write a *complete* output file, correctly
processed by sox, if I use the tokenized command from logs.
The problem comes when I play through my Squeezelite installation
(Windows 10 Pro x64 1903, Squeezelite v1.9.7-1256). Playback starts
normally and music is perfect but... after a minute or so, sometimes a
little more, sometimes a little less, playback stops. If I was using a
playlist, playback goes to the next track, where the behaviour repeats.
Now, I've activated all debug logs I thought might help in solving this.
Note that the Squeezelite player has the bc:5f:f4:bf:3e:70 mac address,
as per the custom.conf line above.
https://pastebin.com/dXTwnymR
>From what little I can see, the buffer fills fast and for a certain
amount of time remains at 99% fullness. Then we get this:
Code:
--------------------
[20-07-09 02:49:04.5769] Slim::Player::Source::_readNextChunk (349) Read to
end of file or pipe
[20-07-09 02:49:04.5771] Slim::Player::Source::_readNextChunk (372) end of
file or error on socket, song pos: 15813109
[20-07-09 02:49:04.5772] Slim::Player::Source::_readNextChunk (377)
bc:5f:f4:bf:3e:70 mark end of stream
[20-07-09 02:49:04.5775] Slim::Player::StreamingController::_eventAction
(270) bc:5f:f4:bf:3e:70: LocalEndOfStream in PLAYING-STREAMING ->
Slim::Player::StreamingController::_Streamout
[20-07-09 02:49:04.5776]
Slim::Player::StreamingController::_setStreamingState (2386) new streaming
state STREAMOUT
[20-07-09 02:49:04.5777] Slim::Player::StreamingController::_eventAction
(302) bc:5f:f4:bf:3e:70: LocalEndOfStream - new state PLAYING-STREAMOUT
--------------------
Followed by this:
Code:
--------------------
[20-07-09 02:49:23.0092] Slim::Player::StreamingController::_eventAction
(270) bc:5f:f4:bf:3e:70: StatusHeartbeat in PLAYING-STREAMOUT ->
Slim::Player::StreamingController::_CheckSync
[20-07-09 02:49:23.0593] Slim::Networking::Slimproto::client_readable (393)
Slimproto frame: DSCO, len: 1
[20-07-09 02:49:23.0598] Slim::Networking::Slimproto::_disco_handler (589)
Squeezebox got disconnection on the data channel: Connection closed normally
[20-07-09 02:49:23.0601] Slim::Player::StreamingController::playerEndOfStream
(2286) bc:5f:f4:bf:3e:70
[20-07-09 02:49:23.0605] Slim::Player::StreamingController::_eventAction
(270) bc:5f:f4:bf:3e:70: EndOfStream in PLAYING-STREAMOUT ->
Slim::Player::StreamingController::_AutoStart
[20-07-09 02:49:23.0608]
Slim::Player::StreamingController::_setStreamingState (2386) new streaming
state STREAMOUT
--------------------
And from there the fullness slowly goes down until playback stops in the
middle of the song. The song I played lasts 4:19.627, length I get from
the test.flac file I get by using the tokenized command you can find in
the above log, like this:
Code:
--------------------
"C:\ProgramData\Squeezebox\Cache\InstalledPlugins\Plugins\Spotty\Bin\MSWin32-x86-multi-thread\spotty.exe"
--enable-volume-normalisation -n Squeezebox -c
"C:\ProgramData\Squeezebox\Cache\spotty\87623e24" --single-track
"spotify://track:6hwawJtSqgzNfYfLfqTv2p" --bitrate 320 --disable-discovery
--disable-audio-cache |
"C:\PROGRA~2\SQUEEZ~1\server\Bin\MSWin32-x86-multi-thread\sox.exe" -q --endian
little -t s16 -r 44100 -c 2 - -t flac -C 0 -b 24 D:\test.flac gain -6.9
equalizer 30 0.43q +6.2 equalizer 699 2.00q +1.0 equalizer 2924 4.11q -1.7
equalizer 6031 5.05q -6.2 equalizer 9825 4.08q +2.2 equalizer 83 4.24q +1.3
equalizer 209 1.54q -1.2 equalizer 2842 0.1q +0.2 equalizer 12443 1.29q +2.7
equalizer 19698 0.46q -11.8
--------------------
Using this commandline the file comes down perfect, with metadata
comment "Processed by SoX".
Please help. I've spent four hours trying to solve this.
------------------------------------------------------------------------
gorman's Profile: http://forums.slimdevices.com/member.php?userid=56
View this thread: http://forums.slimdevices.com/showthread.php?t=111923
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins