You should take a look at calckey https://codeberg.org/calckey/calckey
Looks like ffmpeg is able to handle aa3 formats. Should be able to use that to reencode
https://ffmpeg.org/doxygen/0.5/oma_8c.html
You should take a look at calckey https://codeberg.org/calckey/calckey