HydrogenAudio

Hydrogenaudio Forum => Uploads => Topic started by: nightfly on 2009-03-10 07:55:10

Title: FLAC to WMA Lossless converter tool
Post by: nightfly on 2009-03-10 07:55:10
I thought i'd share this tool that i made, and also provide a quick tutorial. So, with the proper components installed on the system, this bat file:

1. Takes a directory that contains FLAC files as input
2. Decodes them to WAV
3. Checks the WAV if it is truly lossless (auCDtect) and writes the result to log file
4. Converts the WAV to WMA Lossless
5. Deletes the WAV's and moves WMA's to user's Music\!Converted folder

Needed components:
1. WMEncoder
for x86: http://www.microsoft.com/downloads/details...;displaylang=en (http://www.microsoft.com/downloads/details.aspx?FamilyID=5691BA02-E496-465A-BBA9-B2F1182CDF24&displaylang=en)
for x64: http://www.microsoft.com/downloads/details...;displaylang=en (http://www.microsoft.com/downloads/details.aspx?familyid=CC41218D-7E37-4546-BF0B-1276959EE3EF&displaylang=en)

2. FLAC command line tools
http://flac.sourceforge.net/download.html (http://flac.sourceforge.net/download.html)

3. auCDtect: CD Authenticity Detector
http://true-audio.com/Free_Downloads (http://true-audio.com/Free%20Downloads)

4. my converter:
[attachment=4942:flac2wmal.7z]
(I'm sorry for the 7z format, but regular zip gets corrupted on upload somehow?)

Installation:
0. Download and install the required components

1. Create folder:
Code: [Select]
C:\Program Files\Flac2WMAL


2. Copy the following files to the above folder:
Code: [Select]
auCDtect.exe
flac.exe


3. Extract the converter (the attached zip) to the above folder

4. Double-click the contextmenu.reg file. This adds a menu item to all folders' right click menu that says "Convert to WMA Lossless" and executes the batch file.

Notes:
- This package was tested on Windows Vista x64 only. Should work on Vista x86 too (don't see a reason why not), but on Windows XP you may have to edit the output path in the bat file (substitute "Music" with "My Music")
- Feel free to edit the bat and reg to your likes
- Feel free to distribute this pack, be it modified or ontouched
- Please report bugs
- The file tags (meta data) are not preserved during the process
Title: FLAC to WMA Lossless converter tool
Post by: Nick.C on 2009-03-10 08:12:05
You don't state whether this process preserves tags.
Title: FLAC to WMA Lossless converter tool
Post by: nightfly on 2009-03-10 08:19:26
You don't state whether this process preserves tags.


unfortunately it doesn't. for me it wasn't an issue, because i used WMP to auto-tag and auto-rename all files.
Title: Re: FLAC to WMA Lossless converter tool
Post by: rgbeach on 2018-09-14 02:03:47
Just wanted to say "thanks" for this utility! It's been years since it was originally posted here, but I found a need for it in 2018. Kudos and thanks to the creator!!!

Notes for anyone that wants to use this now:

- under Win7 (and I suspect any win OS after Vista, you need to disable DEP in order for the WAV > WMA conversion to work. You can find instructions here: https://www.thewindowsclub.com/disable-data-execution-prevention. Otherwise, the WAV > WMA conversion step will just generate script exceptions.

- Microsoft no longer hosts Windows Media Encoder, but you can find it here: https://www.softpedia.com/get/Multimedia/Video/Codec-Packs-Video-Codecs/Windows-Media-Encoder.shtml.

- I also had a problem registering the "conver flac to wma" action with the .reg file. Instead, I jst made some modifications to the .bat file and ran it from a cmd prompt.