HowTo: Use FFmpeg's "aresample" audio filter

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
Posts: 340
Joined: Tue Nov 12, 2013 2:05 am

HowTo: Use FFmpeg's "aresample" audio filter

Post by peter_b »

Here's the link to the official FFmpeg's Filter Documentation for "aresample".
It shows examples, but it doesn't show how to use them in the commandline.

Here's how:

Code: Select all

$ ffmpeg -i input.ts -c:v copy -c:a pcm_s16le -af "aresample=async=1000" output.avi"
Just used this code to fix a problem where the audio ran slightly too fast and ended before the video.
The "async=1000" option to aresample worked automagically. Thanks ffmpeg developers!

Post Reply