Page 1 of 1

[SOLVED] How to convert FLAC to m4a (ALAC) with console version?

Posted: Sun Nov 10, 2024 3:19 am
by SliderJeff
Hi,

I've got a batch file with the following:

Code: Select all

xrecode3cx64 -i .\*.flac -r -cbr 320 -nsec -cof "folder.jpg" -o "M:\Audio\ALAC_From_FLAC" -dest m4a -44100 -b 16 -coverfilename "folder" -fileexists 0 -tr "C:\Program Files\xrecode3\stuff\tagsreplace.txt" -pfilename "%%albumartist%% - (%%year%%) %%album%% ALAC\%%albumartist%% - %%album%% - %%track2%% - %%title%%" 
pause
but it's not generating anything and it's giving me a multiple line error output that says"

Code: Select all

11/9/2024 9:15:06 PM: ERROR: Executable file for the selected destination is missing.
11/9/2024 9:15:06 PM: ERROR: Executable file for the selected destination is missing.
11/9/2024 9:15:06 PM: ERROR: Executable file for the selected destination is missing.
11/9/2024 9:15:06 PM: ERROR: Executable file for the selected destination is missing.
11/9/2024 9:15:06 PM: ERROR: Executable file for the selected destination is missing.
11/9/2024 9:15:06 PM: ERROR: Executable file for the selected destination is missing.
11/9/2024 9:15:06 PM: ERROR: Executable file for the selected destination is missing.
11/9/2024 9:15:06 PM: ERROR: Executable file for the selected destination is missing.
11/9/2024 9:15:06 PM: ERROR: Executable file for the selected destination is missing.
Clearly I have something wrong in the batch file or I'm specifying the wrong parameters to the console version to do the conversion. Can someone help me debug what I'm doing wrong?

Thanks,
Jeff

Re: How to convert FLAC to mp4a (ALAC) with console version?

Posted: Sun Nov 10, 2024 8:47 am
by admin

Re: How to convert FLAC to mp4a (ALAC) with console version?

Posted: Sun Nov 10, 2024 4:54 pm
by SliderJeff
Thank you! That fixed the errors!

Re: How to convert FLAC to mp4a (ALAC) with console version?

Posted: Sun Nov 10, 2024 5:06 pm
by SliderJeff
Is there an example somewhere to show how to convert FLAC to ALAC/m4a with the console where it uses the full bitrate based on the source material? Right now, with what I have in my batch file, all the m4a files are coming out with around 340kbps bitrates vs. the source FLAC files being 950-1000kbps.

My current batch file command line is:

Code: Select all

xrecode3cx64 -i .\*.flac -r -nsec -cof "folder.jpg" -o "M:\Audio\ALAC_From_FLAC" -dest m4a -coverfilename "folder" -fileexists 0 -tr "C:\Program Files\xrecode3\stuff\tagsreplace.txt" -pfilename "%%albumartist%% - (%%year%%) %%album%% ALAC\%%albumartist%% - %%album%% - %%track2%% - %%title%%" 
Thanks,
Jeff

Re: How to convert FLAC to m4a (ALAC) with console version?

Posted: Sun Nov 10, 2024 7:04 pm
by admin
Both flac and alac are losless, so the output file should be equal to the source. Your command line looks fine. Could you please send me the source flac and the result alac file to xrecode@gmail.com? You could use https://wetransfer.com/.

Re: How to convert FLAC to m4a (ALAC) with console version?

Posted: Sun Nov 10, 2024 10:12 pm
by SliderJeff
Done. I used the site you suggested to transfer the two files.

Jeff

Re: How to convert FLAC to m4a (ALAC) with console version?

Posted: Mon Nov 11, 2024 7:25 am
by admin
Thanks. Now I see the problem. The file was converted to AAC instead of ALAC (I should have noticed this from your provided command line).

Code: Select all

-dest m4a
will convert to AAC, and

Code: Select all

-dest alac
will convert to ALAC. Please update your command line to

Code: Select all

xrecode3cx64 -i .\*.flac -r -nsec -cof "folder.jpg" -o "M:\Audio\ALAC_From_FLAC" -dest alac -coverfilename "folder" -fileexists 0 -tr "C:\Program Files\xrecode3\stuff\tagsreplace.txt" -pfilename "%%albumartist%% - (%%year%%) %%album%% ALAC\%%albumartist%% - %%album%% - %%track2%% - %%title%%" 

Re: How to convert FLAC to m4a (ALAC) with console version?

Posted: Mon Nov 11, 2024 1:46 pm
by SliderJeff
Thanks so much for debugging this for me! I didn't see that as an option in the Wiki for the console version, so I assumed it was m4a. I always thought AAC-encoded files were a ".aac" file extension. Thanks for setting me straight!

Jeff

[SOLVED] Re: How to convert FLAC to m4a (ALAC) with console version?

Posted: Mon Nov 11, 2024 2:45 pm
by admin
Great! I also added /dest alac to the WIKI examples.