[FFmpeg-user] How to improve ffprobe/ffmpeg speed?

sbtgerbtzertertv sbtgerbtzertertv at proton.me
Sun Nov 13 14:16:43 EET 2022


I asked it already here https://superuser.com/questions/1752308/ffprobe-runs-over-2-times-slower-than-mediainfo-how-to-make-ffprobe-to-ru, but no reply so far, maybe the devs are only active here.

On 1593 FLAC files ffprobe takes 32s to run this script:

find . -type f -iname "*.flac" -print0 | while read -d $'\0' FILENAME; do
INFOS=$(ffprobe -hide_banner "$FILENAME" 2>&1)
URL=$("$INFOS"|& grep -i 'http\|www')
if [ "$URL" != "" ]; then
echo -e "$FILENAME\t$URL"
done | column -t -s $'\t'

, but mediainfo only takes about half as much. How to make ffprobe to run at least as fast or faster, so I can remove mediainfo again? (this question is not about making the script run in parallel, but about single threaded performance, so it runs even faster in parallel)

More information about the ffmpeg-user mailing list