1
Beyond MusicBee / Re: Lossless conversion of AAC to M4A (no re-encoding) using ffmpeg.exe
« on: December 05, 2017, 05:43:50 AM »
Just thought I would add this which is basically the reverse of what you posted.
If you ever want to very quickly extract the audio from M4A or youtube videos without any loss in quality (it's incredibly fast too), make a batch file (text file that ends in .bat) and put this code into it:
Make sure to change this line to match where you have ffmpeg installed (a LOT of programs use it so just do a file search) to match your location:
Just drag and drop one or multiple files onto this batch file and the audio will be losslessly extracted into the same folder.
If you do this a lot, you can put a shortcut to the batch file in your "Send To" folder. To find your "Send To" folder that you see in the menu when you right click files, press WIN+R, or Start/Run, or go to the address bar in explorer and type this:
Hope that helps someone! Yes, I wrote that nerdy batch file code.
If you ever want to very quickly extract the audio from M4A or youtube videos without any loss in quality (it's incredibly fast too), make a batch file (text file that ends in .bat) and put this code into it:
Code
@ECHO OFF
REM ---------------------------------------------------------------------------
REM Set the path for FFmpeg
SET ffmpeg=C:\Program Files\Free Download Manager\ffmpeg.exe
REM ---------------------------------------------------------------------------
ECHO Processing: "%~1"
:LOOP
REM Check first argument whether it is empty and quit loop in case
REM `%1` is the argument as is; `%~1` removes surrounding quotes
REM `"%~1"` therefore ensures that the argument is always enclosed within quotes
IF "%~1"=="" GOTO :END
REM The argument is passed over to the command to execute (`"%~1"`):
"%ffmpeg%" -i "%~1" -c:a copy -vn "%~1.m4a"
REM `SHIFT` makes the second argument (`%2`) to be the first (`%1`), the third (`%3`) to be the second (`%2`),...
SHIFT
REM Go back to top
GOTO :LOOP
:END
Make sure to change this line to match where you have ffmpeg installed (a LOT of programs use it so just do a file search) to match your location:
Code
SET ffmpeg=C:\Program Files\Free Download Manager\ffmpeg.exe
Just drag and drop one or multiple files onto this batch file and the audio will be losslessly extracted into the same folder.
If you do this a lot, you can put a shortcut to the batch file in your "Send To" folder. To find your "Send To" folder that you see in the menu when you right click files, press WIN+R, or Start/Run, or go to the address bar in explorer and type this:
Code
shell:sendto
Hope that helps someone! Yes, I wrote that nerdy batch file code.