HowTo: Use FFmpeg's "aresample" audio filter

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 371
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!

:D
Post Reply