[FFmpeg-user] mp3 audio output recording error message when he has Cover

CMG DiGiTaL cmarciog at gmail.com
Mon Mar 7 04:53:10 EET 2022


hi Reino,

Below is the Batch code:

@echo off
chcp 65001
cls
echo
*************************************************************************************************************************
echo *
ATTENTION !
           *
echo *

                     *
echo *  1. COPY the Audio file(s) you want to change the LUFS value to a
FOLDER on your Desktop.                *
echo *  2. When FINISHED, run it again and select the name of the other
file in the folder you want to change!   *
echo *

                     *
echo
*************************************************************************************************************************
pause
ENDLOCAL
SETLOCAL ENABLEEXTENSIONS
echo.-------------------------------------------------------------------------------------------------------------------------

echo                                                  Converter Audio LUFS
echo.-------------------------------------------------------------------------------------------------------------------------
set /p folder= Enter the FOLDER NAME where the audio to be converted is
located:
set /p file=   Enter the FULL NAME OF THE FILE to be converted (eg.
lalala.mp3):
set /p vLUF=   Enter the LUFS VALUE:
set /p vPEAK=  Enter the True Peak VALUE:
echo.-------------------------------------------------------------------------------------------------------------------------
cd\Users\%username%\Desktop\%folder%
ffmpeg -hide_banner -i "%file% -filter_complex
"[0:a]loudnorm=print_format=summary" -f null NUL 2>1.txt
@for /f "tokens=3" %%a in ('findstr /C:"Input Integrated" 1.txt') do (set
II=%%a)
@for /f "tokens=4" %%a in ('findstr /C:"Input True Peak" 1.txt') do (set
ITP=%%a)
@for /f "tokens=3" %%a in ('findstr /C:"Input LRA" 1.txt') do (set ILRA=%%a)
@for /f "tokens=3" %%a in ('findstr /C:"Input Threshold" 1.txt') do (set
IT=%%a)
@for /f "tokens=3" %%a in ('findstr /C:"Target Offset" 1.txt') do (set
TO=%%a)
del /q "C:\Users\%username%\Desktop\%folder%\1.txt"
md "C:\Users\%username%\Desktop\Converting_lufs"
FOR /F "tokens=1,2 delims=," %%b IN ('ffprobe -v 0 -show_entries
stream^=bit_rate^,sample_rate -of csv^=p^=0 "%file%"') DO ( ffmpeg -vsync
vfr -hide_banner -i "%file%" -af
loudnorm=linear=true:I=%vLUF%:LRA=11:tp=%vPEAK%:measured_I=%II%:measured_LRA=%ILRA%:measured_tp=%ITP%:measured_thresh=%IT%:offset=%TO%:print_format=summary
-c:v copy -id3v2_version 3 -c:a libmp3lame -b:a %%c -ar:a %%b
"C:\Users\%username%\Desktop\Converting_lufs\%file%")
IF EXIST "C:\Users\%username%\Desktop\Converting_lufs\*.mp3" (
xcopy "C:\Users\%username%\Desktop\Converting_lufs\*.mp3"
"C:\Users\%username%\Desktop\Converted Audio LUFS\" /y /s /i
)
del /q "C:\Users\%username%\Desktop\Converting_lufs\*.*"
rmdir "C:\Users\%username%\Desktop\Converting_lufs" /s /q
IF NOT EXIST "C:\Users\%username%\Desktop\Converted Audio LUFS" (
echo.----------------------------------------------------------------------------------------------------------------------------------------------

echo                        It was not found or there was an error in the
Audio for Changing the LUFS^!^
echo.-----------------------------------------------------------------------------------------------------------------------------------------------
) ELSE (
echo.-----------------------------------------------------------------------------------------------------------------------------------------------
echo                                                             ****
IMPORTANT^!^     ****
echo.
echo                 After finishing this program, the CONVERTED FILE LUFS
will be on your ^(Desktop^)
echo         in the folder named "Converted Audio LUFS" so that you can
move it wherever you want on your PC.
echo                          After moving the file(s), you can delete the
Converted Audio LUFS folder.
echo.
echo.-----------------------------------------------------------------------------------------------------------------------------------------------
)
pause

thanks
Clamarc

Em dom., 6 de mar. de 2022 às 14:43, Reino Wijnsma <rwijnsma at xs4all.nl>
escreveu:

> On 2022-03-06T18:35:11+0100, CMG DiGiTaL <cmarciog at gmail.com> wrote:
> > what is happening [...]
> Only one way to find out and that is to have a look at your Batch code.
>
> --
> Reino
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list