[FFmpeg-user] Get sample rate in mp3 files
Mark Filipak
markfilipak.noreply at gmail.com
Tue Feb 8 08:35:12 EET 2022
You know, I wouldn't do this for just ANYONE. 8-)
Try this, Clamarc.
@ECHO OFF
ENDLOCAL
SETLOCAL ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
FOR %%a IN (*.mp3) DO (
FOR /F "tokens=1,* usebackq" %%b IN (`ffprobe -i "%%a" -v error -show_entries stream^=sample_rate
-of default^=noprint_wrappers^=1:nokey^=1`) DO (
IF "%%b"=="48000" ECHO You've found a 48000 sample rate MP3
)
)
-- Mark.
More information about the ffmpeg-user
mailing list