khenriks / mp3fs

FUSE-based transcoding filesystem from FLAC to MP3
http://khenriks.github.io/mp3fs/
GNU General Public License v3.0
382 stars 46 forks source link

feature request: downsample flac from 96khz/24 bit to something else #32

Open zombiehoffa opened 9 years ago

zombiehoffa commented 9 years ago

It would be super awesome if mp3fs could automagically downsample flacs. Stupid sonos won't play 96khz/24 bit flac files and mp3fs downsampling would be great to workaround this shortcoming.

khenriks commented 9 years ago

Just wanted to comment that this should be possible. Right now the only output format is MP3, but if FLAC is added as an output format it should work fine to do what you want.

zombiehoffa commented 9 years ago

even outputting to mp3 is totally fine, the main thing is to downsample to 16 bit/44100 sonos seems to have something against 24 bit audio.

khenriks commented 9 years ago

When you convert the FLAC to an MP3 using mp3fs, what output do you get? MP3 files don't have sample sizes (24 bit vs. 16 bit), and the largest sample rate possible is 48 kHz. I don't know the limitations of Sonos devices to know how well it will work, and I don't have high quality FLACs like that handy.

zombiehoffa commented 9 years ago

Hmm. So something weird is going on. If I copy the mp3 file out of my mp3fs read only dir somewhere else, then put it back in the parent dir (so that it shows up in my mp3fs dir that is shared to the sonos) I can actually play the mp3 file that is a created mp3. But, if I try to open the mp3fs virtual mp3 that will be created on the fly by mp3fs, I get an error in sonos about incorrect encoding (strangely VLC will play the parent FLAC file and it will play the mp3 generated by mp3fs if I first copy it somewhere else, but if I try to play the virtual mp3 in vlc, it takes about 45 seconds before it starts playing.)

You can get an open 96/24 bit flac here if you want to check it out: http://www.cardas.com/music/tree/

Also, it would be super handy if sample rate was configurable, since that also seems to break sonos.

khenriks commented 9 years ago

That issue sounds a lot like #25, which was closed for lack of feedback. I'll try to find some time to test that out and see if I can get to the bottom of it.