I’m trying to use the convert plugin for encoding to aac/m4a and would like to use qaac to do it. Qaac is the best encoder for aac/m4a according to hydrogenaudio.
I have qaac installed using these excellent instructions. Using the command via plain old command line works fine, but I’m having trouble integrating it into my beets config file.
This is what I have currently:
command: wine ~/.wine/drive_c/qaac.exe -v256 -q2 $source $dest
I did as suggested and Wine complained about it not being able to find the exe file, turns out you need to put in the full path.
However now it complains:
ERROR: Z:"path with file name".“extension”: File not found
The pathname it gives has escape slashes instead of forward slashes too.
This looks like a wine issue, it looks like it’s trying to put the file in a virtual Z drive?
EDIT: It was a qaac issue, once i put in the -d option for the output directory (-d $source) it actually encodes.
EDIT 2: It encodes but now creates weird recursive directory in it’s output.
It creates a file in the source directory named the same as the song name with the encoded extension (e.g. “tracknumber title.m4a”) which is actually a directory with the following subdirectory structure leading to the actual file.
I don’t know if this helps at all, but here’s the insecure way I’m currently using qaac with beet convert on Windows. I have a Python3 shim script that invokes ffmpeg which turns the input into WAV, then passes the WAV to qaac.
Maybe you can study how I’m invoking qaac and adapt it to your needs?