[FFmpeg-user] Fwd: How can I read multiple audio files in a folder to convert LUFS value?

Mark Filipak markfilipak.noreply at gmail.com
Sat Feb 19 19:00:28 EET 2022


On 2022-02-19 08:54, CMG DiGiTaL wrote:
> hi,
> 
> I managed to solve the problem of reading several files from this code!...
> ... what is happening now is that the setlocal EnableDelayedExpansion, is
> ignoring files that have an exclamation mark in their name.

EnableDelayedExpansion doesn't process files or file names.
It processes environment variables.

> I removed the enebladelayedexpansion from the code and changed the format
> of the variables. ex. !var1! to %var1%, etc... It turns out
>   that the code is now unable to identify the variables to be able to write
> the file!
> 
> see an example below:
> 
> IN WINDOW TERMINAL
> 
> -------------------------------------------------------------------------------------------------------------------
>                                                   Converter LUFS Áudio
> -------------------------------------------------------------------------------------------------------------------
> Enter the LUFS VALUE (-16 a -14 para Áudios Stream e -13 a -9 para Áudios
> CD):-10.0
> Enter the True Peak VALUE (-1.0 a -1.5 para Áudios Stream e -0.0 a -0.5
> para Áudios CD):-0.0
> -------------------------------------------------------------------------------------------------------------------
> Dominó - Ela Não Gosta de Mim.mp3  ***** ECHO INPUT FILE using variable
> with FORMAT %%a *IT WORKS* *****
> 
> %II          is the Input Integrated         ***** ECHO in the findstr
> result variable, *using the same format as the input file %%II* - did not
> show the result
> "%ITP"    is the Input True Peak     ***** ECHO in the findstr result
> variable, using *another* format "%%ITP", also did not show the result
> "%ILRA" is the Input LRA             ***** ECHO in the findstr result
> variable, using *another *format "%ILRA%", also did not show the result
>                 is the Input Threshold          ***** ECHO in the findstr
> result variable, using *another* format  %IT%, also showed the result as
> empty
>                 is the Output Integrated
> "
> %OI%                           "
>                 is the Output True Peak                                   "
>                                                                     %OTP%
>                       "
>                 is the Output LRA
>   "
> %OLRA%                       "
>                 is the Output Threshold
>   "                                                                    %OT%
>                            "
>                 is the Target Offset
>     "
> %TO%                            "
> 
> ffmpeg version 2021-10-18-git-d04c005021-full_build-www.gyan.dev Copyright
> (c) 2000-2021 the FFmpeg developers
>    built with gcc 10.3.0 (Rev5, Built by MSYS2 project)
>    configuration: --enable-gpl --enable-version3 --enable-static
> --disable-w32threads --disable-autodetect --enable-fontconfig
> --enable-iconv --enable-gnutls
> --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy
> --enable-zlib --enable-librist --enable-libsrt --enable-libssh
> --enable-libzmq --enable-avisynth
> --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d
> --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp
> --enable-libx264
> --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg
> --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype
> --enable-libfribidi
> 
> Input #0, mp3, from 'Dominó - Ela Não Gosta de Mim.mp3':
>    Metadata:
>      album           : CMG Clássicos Pop Rock Nacionais
>      title           : Ela Não Gosta de Mim
>      genre           : Clássico Pop Rock Nacional
>      artist          : Dominó
>    Duration: 00:03:37.63, start: 0.025057, bitrate: 178 kb/s
>    Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 178 kb/s
>      Metadata:
>        encoder         : LAME3.99r
> Stream mapping:
>    Stream #0:0 -> #0:0 (mp3 (mp3float) -> mp3 (libmp3lame))
> Press [q] to stop, [?] for help
> [loudnorm @ 00000246fcfda780] [Eval @ 000000faf29fe2f0] Undefined constant
> or missing '(' in ''
> [loudnorm @ 00000246fcfda780] Unable to parse option value ""
> [loudnorm @ 00000246fcfda780] [Eval @ 000000faf29fe2f0] Undefined constant
> or missing '(' in ''
> [loudnorm @ 00000246fcfda780] Unable to parse option value ""
> [loudnorm @ 00000246fcfda780] [Eval @ 000000faf29fe2f0] Undefined constant
> or missing '(' in ''
> [loudnorm @ 00000246fcfda780] Unable to parse option value ""
> [loudnorm @ 00000246fcfda780] [Eval @ 000000faf29fe2f0] Undefined constant
> or missing '(' in ''
> [loudnorm @ 00000246fcfda780] Unable to parse option value ""
> [loudnorm @ 00000246fcfda780] [Eval @ 000000faf29fe2f0] Undefined constant
> or missing '(' in ''
> [loudnorm @ 00000246fcfda780] Unable to parse option value ""
> [loudnorm @ 00000246fcfda780] [Eval @ 000000faf29fe210] Undefined constant
> or missing '(' in ''
> [loudnorm @ 00000246fcfda780] Unable to parse option value ""
> [loudnorm @ 00000246fcfda780] Error setting option measured_I to value .
> [Parsed_loudnorm_0 @ 00000246fcfda1c0] Error applying options to the filter.
> [AVFilterGraph @ 00000246fcfd6b40] Error initializing filter 'loudnorm'
> with args
> 'linear=true:I=-10.0:LRA=11:tp=-0.0:measured_I=:measured_LRA=:measured_tp=:measured_thresh=:offset=:print_format=summary'
> Error reinitializing filters!
> Failed to inject frame into filter network: Invalid argument
> Error while processing the decoded data for stream #0:0
> Conversion failed!
> 
> 
> 
> What must be done so that the variables are recognized without
> the EnableDelayedExpansion!
> 
> thank's
> Clamarc
> _______________________________________________
> 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".
> 


-- 
Donald Trump: Good King or Red Queen?


More information about the ffmpeg-user mailing list