[FFmpeg-user] apad filter in a chain of filters?

Moritz Barsnick barsnick at gmx.net
Thu Apr 23 13:32:24 CEST 2015


Hi Martin,

> When I use only "[0:1]apad" in combination with filter_complex and
> -shortest, it works.
[...]
> "C:\Program Files (x86)\FFMPEG\bin\ffmpeg.exe" -i INPUT -y -filter_complex "[0:v]setpts=((24000/1001)/24)*PTS[outv];[0:a]apad[padded];[padded]atempo=(24/(24000/1001))[outa]" -map "[outv]" -map "[outa]" -vcodec prores -profile:v 3 -qscale:v 5 -acodec pcm_s24le -ar 48000 -r "24" OUTPUT

Did you consider adding "-shortest" to your command line again?

Another cosmetic nitpick:
> [0:a]apad[padded];[padded]atempo=(24/(24000/1001))[outa]

If [padded] is never used elsewhere, and used exactly once as sole
input and once as sole output, I would write it as such:

  [0:a]apad,atempo=(24/(24000/1001))[outa]

Let us know how it works.

Schöne Grüße,
Moritz


More information about the ffmpeg-user mailing list