[FFmpeg-user] Get sample rate in mp3 files
Kieran O Leary
kieran.o.leary at gmail.com
Mon Feb 7 16:16:06 EET 2022
Hi,
I think you just want the sample rate value and nothing else? I used
ffprobe here to do it for a file called out.mp3, and it produced a value of
just '48000'
ffprobe -i out.mp3 -v error -show_entries stream=sample_rate -of
default=noprint_wrappers=1:nokey=1
48000
So perhaps you can work this into an IF statement in your bat scripts - if
value ==48000, move to folder and perform conversion, if else, do something
else.
Best,
Kieran O'Leary
Digital Preservation Manager
National Library of Ireland
More information about the ffmpeg-user
mailing list