What is the best solution for losslessly streaming from a library with both 24 and 16 bit music to devices limited to 16-bit and 44.1kHz, such as older Android devices?
Is it possible to get ffmpeg to only dither and/or resample (using SoXr) when necessary, or just pass the raw FLAC file through otherwise?
Until now, I have kept both the original and a redbook (16/44.1) transcode around for all my hi-def music, but since I started doing needle drops, and with more and more 24-bit music becoming available for purchase, this is getting out of hand.
I was thinking about writing a script to analyze the media file and pass it through SoXr if bits > 16 or kHz > 44.1 or else just output the raw file to stdout, but that would be a lot of work if ffmpeg can do the same.