Changing the Audio Sample Rate in TVAI

A number of my source files have a 96 kHz audio sample rate, however there are some devices that only support up to 48 kHz. Is there a way to change the audio sample rate within the video AI? I know that the audio bitrate can be changed, but the conversions always use the same sample rate that the input has. “Convert” mode has no impact on the sample rate, only the bitrate.

You’ll need to do some tinkering.
The general idea is to add -ar 48000 to the audio converting section of the ffmpeg command.

In your audio-codec.json file (Default Windows path is: C:\ProgramData\Topaz Labs LLC\Topaz Video AI\models) add that -ar line to whatever command is after "ffmpegOpts": on the codec you want to use.

"ffmpegOpts": "aac -ac 2",


"ffmpegOpts": "aac -ac 2 -ar 48000",

I use GoldWave and Vidmore Video converter for all my video audio needs, so I have not tested to see if this will work for you like I think it will.

1 Like