Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FFmpeg AAC encoder performance regression test
#!/bin/bash
set -e
ffmpeg -f lavfi -i aevalsrc="sin(440*2*PI*t):s=48000" -t 300 -y sin.flac
git clone git://source.ffmpeg.org/ffmpeg.git || true
pushd ffmpeg
for REV in 16f9f7b n3.0
do
if [[ -e ../ffmpeg_$REV ]]
then
continue
fi
git checkout $REV
git clean -dxf
./configure
make
cp ffmpeg ../ffmpeg_$REV
done
popd
for REV in 16f9f7b n3.0
do
time ./ffmpeg_$REV -i sin.flac -acodec aac -strict -2 -y sin_${REV}.aac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.