navidrome / navidrome

🎧☁️ Modern Music Server and Streamer compatible with Subsonic/Airsonic
https://www.navidrome.org
GNU General Public License v3.0
10.89k stars 818 forks source link

Navidrome won't play AIF and WAV files without transcoding (but MP3 and FLAC yes) #1404

Closed CypZ closed 2 years ago

CypZ commented 2 years ago

Description

AIF(F) and WAV files don't start playing (just hangs in the player track at 00:00) when no transcoding option is set in the player.

FLAC and MP3 aren't affected.

Transcoding on the fly adds some annoying delay (small pi, big files).

Tried with or without reverse proxy.

Also, the embedded album art of those files doesn't seem to work either (90% of my collection is AIF properly tagged).

Expected Behaviour

Being able to play those files straight out without transcoding.

Steps to reproduce

  1. Disable the transcoding option in the player (or delete the player, transcoding being disabled by default)
  2. Try to play any AIF/WAV track
  3. Enable transcoding to mp3/128
  4. Try to play same track 2021-10-14 19_11_48-

Platform information

deluan commented 2 years ago

Thanks for trying Navidrome. You see, ND uses the browser implementation of HTML Audio tag, and I don't think AIFF files are supported in any browser. WAV should be supported, though.

Regarding the cover art, I'm not sure if the library we use to extract album art works with these extensions.... Can you send me one of each (with artwork) so I can do some testing here?

Thanks!

CypZ commented 2 years ago

Alright I just sent you an example per email. However the cover art is not that important, it's anyway not always decoded properly (depending on the player) but at least the files play...

In any case, thanks for the support and for the great piece of software !

deluan commented 2 years ago

I just got your AIFF sample, and as expected the coverart cannot be extracted by https://github.com/dhowden/tag. As for playback, do you know any web player that can play AIFF without transcoding? AFAIK, this is a limitation of the HTML Audio Tag, and you'll only be able to play AIFF files in any browser if you transcode them.

You didn't send me your WAV sample, but I was able to play some samples here in the browser without transcoding, no problem at all. Are you still having issues with WAV files as well?

CypZ commented 2 years ago

In the meantime I went ahead and batch converted (with fre:ac) my whole collection to FLAC in a parallel folder structure which is now the only source scanned by Navidrome. Not ideal but works around both my issues.

Bonus : In there I also ran a PowerShell script (which creates a playlist file foreach folder containing music) to compensate for the lack of folder view (#739)

Cheers

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.