Problem: 16 bit flac playback works fine, but when I try playing 24bit flac on web client and dSub it plays for a second or 2 then pauses, then waits, then plays, then pauses etc.
The only hint as to what would be causing this are my results with sox transcoding.
If I set transcoding to this: sox -q -t flac %s -r 44100 -b 16 -c 2 -t flac -
from the log: [8/15/17 12:36:11 PM EDT] INFO TranscodeInputStream Starting transcoder: /var/subsonic/transcode/sox -q -t flac song.flac -t flac -
It will playback fine, but only about less than half of the song will play until it skips to the next song. I have a feeling this has to do with an incongruous length/sample rate calculation, but I'm not sure how to approach it. I've tried adding -e signed before %s as well as after, but same happens and I get this when I add it after: WARN formats: flac can't encode Signed Integer PCM
I've also tried adding --ignore-length before, but this doesn't help either.
I've also tried testing with setting the correct rate and bit-depth before the filename (eg sox -q -r 96000 -b 24 -t flac song.flac ...) and it does the same thing.
Has anyone had any success with sox transcoding and if so what are your settings?
EDIT: I have also tried it with ffmpeg:
ffmpeg -i %s -c:a flac -map 0:0 -sample_fmt s16 -ar 44100 -f flac -
it presents the same issue as sox. it plays fine for about 55 sec then the next song starts. When playing, 'NaN' shows up for duration until it gets near 55s at which point 55 sec shows up. This has got to be some duration calculation error.
Edit the error is definitely the set sample rate. If it is lowered, more of the song plays, if it is raised, less of the song plays. I'm not sure what to put as the sample rate out. Basically I just want native 24bit FLAC playback.