Comment 7 for bug 533111

Revision history for this message
discord (colin.williams) wrote :

Hello, I think maybe I'm suffering the same bug.

I'm facing the issue also going flac -> aac

> I'm having trouble encoding aac's from my flac files. I believe there is a bug.

I've tried the following:

$ pacpl --to aac -r -o flac --outdir /tmp /home/discord/Music/flac/

Converting: [01 - Air - Do The Joy.flac] -> [aac] encode failed with exit status: 256

> Also note that the aacqual option does not seem to work:

$ pacpl --to aac --aacqual 196 -r -V -o flac --outdir /tmp --dryrun /home/discord/Music/flac/

debug: ffmpeg -y -i "/tmp/Björk-Debut-12-Play_Dead.9261.wav" -ab 128.k -ar 44100 -ac 2 "/tmp/Björk-Debut-12-Play_Dead.aac"

removed temporary file: /tmp/Björk-Debut-12-Play_Dead.9261.wav

Converting: [07 Moon 83.flac] -> [aac]

debug: flac -f -d "/home/discord/Music/flac/B52's/07 Moon 83.flac" -o "/tmp/07 Moon 83.24947.wav"

debug: ffmpeg -y -i "/tmp/07 Moon 83.24947.wav" -ab 128.k -ar 44100 -ac 2 "/tmp/07 Moon 83.aac"

removed temporary file: /tmp/07 Moon 83.24947.wav

$ pacpl --to aac --aacqual 450 -r -V -o flac --outdir /tmp --dryrun /home/discord/Music/flac/

>I don't know why the manual for pacpl states the default value is 300 when it seems to be 128K. As you probably already know, the -ab option in ffmpeg specifies the bitrate.

>I found and tried a fix mentioned on the ubuntu forums, but it didn't work for me:

>Here is a fix for the "encode failed with exit status: 256" error message.
>
>I was getting the "encode failed with exit status: 256" error message when trying to convert flac to m4a to use on my >ipod. The problem was that pacpl is passing the wrong command line options to ffmpeg, as the --verbose option >reveals (see output below). The fix is to edit line 2036 of /usr/bin/pacpl to read
>
>case /mp4|m4a|m4b/ { return "-title \"$tag_name{title}\" -track \"$tag_name{track}\" -author \"$tag_name{artist}\" ->album \"$tag_name{album}\" \"$tag_name{comment}\" -year \"$tag_name{year}\""; }
>
>(all one line). ffmpeg is expecting single dashes for options, "author" instead of "artist", and has no genre field. I've >filed a bug report.