Jump to content
IGNORED

best batch FLAC->MP3 converter for win7


Recommended Posts

shoot

  On 11/24/2015 at 12:29 PM, Salvatorin said:

I feel there is a baobab tree growing out of my head, its leaves stretch up to the heavens

  

 

 

Link to comment
https://forum.watmm.com/topic/89562-best-batch-flac-mp3-converter-for-win7/
Share on other sites

  On 12/18/2015 at 11:12 PM, ThatSpanishGuy said:

I remember doing it with Foobar and LAME. Otherwise I guess you could even write a batch file or something.

i'll try to figure this out soon lol

  On 11/24/2015 at 12:29 PM, Salvatorin said:

I feel there is a baobab tree growing out of my head, its leaves stretch up to the heavens

  

 

 

if you want the mp3 files to be in the same folder as the original flacs (and optionally delete the flacs when done) it would be super easy with ffmpeg.exe and a "for loop" in Windows batch:

:ASSUMES THIS BATCH FILE IS IN A FOLDER THAT CONTAINS ONLY THE FLACS YOU WANT TO CONVERT
:ASSUMES FFMPEG.EXE EXISTS ALONGSIDE THIS BATCH FILE
:LIBMP3LAME IS SET FOR MAXIMUM QUALITY VBR0 OUTPUT
@echo off
if not exist ffmpeg.exe goto BAIL
:CONVERT
echo Converting FLACs to MP3...
for /f "delims=" %%A in ('dir /s /b "%~dp0*.flac"') do (
echo Converting %%~nA%%~xA
start /b "" ffmpeg -loglevel error -y -i "%%A" -acodec libmp3lame -joint_stereo 0 -compression_level 0 -q 0 -map_metadata 0 "%%~pA\%%~nA.mp3"
tasklist /FI "IMAGENAME eq ffmpeg.exe" 2>NUL | find /i /c "ffmpeg.exe" >threadcount.txt
     for /f "tokens=*" %%B in (threadcount.txt) do (
     if "%%B" GTR "6" ping 1.1.1.1 -n 1 -w %%B000 >NUL
     )
)
endlocal
:DELETE_PREP
echo.
echo Done converting.
echo Going to delete FLACs...
echo Waiting for ffmpeg threads to finish...
:TASKCHECK
echo ffmpegs are not done yet...
ping 1.1.1.1 -n 1 -w 5000 >nul
tasklist /FI "IMAGENAME eq ffmpeg.exe" 2>NUL | find /i /n "ffmpeg.exe">NUL
if "%ERRORLEVEL%"=="0" goto TASKCHECK
GOTO DELETE_NOW
:DELETE_NOW
del /f /q threadcount.txt
echo.
echo ffmpeg threads are done!
echo To keep FLACs, close this window WITHOUT pressing any keys.
echo To delete FLACs,
pause
echo Are you SURE you want to delete FLACs?
echo If so,
pause
echo Ok, deleting FLACs...
for /f "delims=" %%A in ('dir /s /b "%~dp0*.flac"') do (
del /f /q "%%A"
)
echo All done!
pause
exit
:BAIL
echo Error, could not find ffmpeg.exe
pause

What bitrate/quality are you going for, straight 320, 32-320 variable, etc? Are you trying to make them small to fit on a portable device or something? I can tweak the script to your needs.

Edited by jsmcpn

total audio converter works alreet

 

(cheers for dbpoweramp note too, used to use that all the time and completely forgotten post new comp)

thanks guys!! i love u all

  On 11/24/2015 at 12:29 PM, Salvatorin said:

I feel there is a baobab tree growing out of my head, its leaves stretch up to the heavens

  

 

 

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   1 Member

×
×