The aac_he_v2 profile of encoder libfdk_aac doesn't seem to work in all alpine320 images, while the same command works on alpine313.
Images that don't work:
6.1-alpine320
7.0.2-alpine320
7.1-alpine320
Images that work:
5.1.6-alpine313
7.0.2-alpine313
Command:
docker run --rm -it \
-v /path/to/data:/data \
jrottenberg/ffmpeg:<tag> \
-y -progress -nostats \
-i /data/input.mp4 \
-vn -acodec libfdk_aac -profile:a aac_he_v2 -b:a 64k /data/output_audio_aach.mp4
For the alpine320 images, they all show the following error:
[libfdk_aac @ 0x7fda7689e940] Unable to set the AOT 29: Invalid config
[aost#0:0/libfdk_aac @ 0x7fda768b2940] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.