sonerezh icon indicating copy to clipboard operation
sonerezh copied to clipboard

AAC Supported?

Open sootstone opened this issue 8 years ago • 6 comments

There is an option to convert AAC in settings, but is AAC actually supported? I'm unable to add any to my library, and this issue would suggest it isn't.

sonerezhsettings

sootstone avatar Jun 09 '17 21:06 sootstone

I can successfully import & play an example AAC file. Haven't looked into the tags though since I don't have any AAC files in my library.

gs11 avatar Jul 19 '17 13:07 gs11

That's odd, Sonerezh wouldn't import any AAC files whatsoever for me (Version 1.3). Every other file type worked fine.

sootstone avatar Jul 30 '17 09:07 sootstone

Is there an AAC file you could share to allow me to test?

gs11 avatar Jul 31 '17 11:07 gs11

Thanks @gs11 but unfortunately I no longer have any AAC files in my library to test with.

sootstone avatar Aug 13 '17 18:08 sootstone

I can confirm that aac files (m4a extension) are not imported by Sonerezh v1.1.3.

If you need a m4a file, i wrote a complex bash script that can convert/sync a existing music library to a homogen format: mussync-tools bash script

The script is able to convert the files and preserve the metadata (cover art and track names). It should generate valid files for you to test the import software.

Here is a install guide for Debian / Ubuntu in french (but should be easy to understand for english speakers as it is mainly command lines to copy/paste) with example usages: Convertir une bibliothèque musicale en Flac vers un autre format avec mussync-tools (fr).

Here is how to create a m4a library from a flac/mp3 one:

mussync-tools --of m4a -i ./flac-path/ -o ./output-path/

Thank you for your work.

landure avatar Oct 24 '17 14:10 landure

Looked at this again and the issue is with the file ending. The import code doesn't look for files with the m4a ending: https://github.com/Sonerezh/sonerezh/blob/master/app/Controller/SongsController.php#L54

Should be an easy fix if you can provide a PR? An issue introduced is that the ALAC files are also usually named m4a but they won't be played since there's no support for that format in Sonerezh.

gs11 avatar Feb 24 '18 10:02 gs11