I don't expect this to happen often, but while re-encoding video files via batch file to h265 I'm checking to make sure the audio is in aac. If it isn't then I want to convert to aac, but keep the bit rate at what ever the old file uses since if I just convert to aac ffmpeg is going to use the default 128kbps value. For any old videos I have the bit rate is probably going to be lower than that so upconverting is going to increase the file size a little.
Is there any way to convert to aac but keep the old bit rate?
Here's what I was trying but it keeps converting the old mp3 89kbps stream to aac 128 kbps:
ffmpeg -i test.mp4 -acodec aac -vcodec copy test.aac.mp4
Note that above is just for test purposes, I am actually converting the video.
Note 2: My question isn't at all similar to the other question that it has been suggested as similar to. I have no trouble storing ffprobe results in variables nor did I even mention that.