Page 1 of 1

HowTo: Use FFmpeg's "aresample" audio filter

Posted: Mon Dec 21, 2015 4:20 am
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!

:D