[FFmpeg-user] framerate conversion with sync audio

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Oct 13 12:54:16 EEST 2016


2016-10-13 11:41 GMT+02:00 Carles Vila <cvilad at gmail.com>:

> ffmpeg -r 25 -i input_24fps.mov -af asetrate=50000,aresample=48000 -c:v
> prores -profile:v 3 -c:a pcm_s24le output_25fps_resampledaudio.mov
>
> where 50000=48000*(25/24)
>
> My only remaining problem, is that my original mov has 6 audio streams but
> my process only processes and outputs the first.
> How can I apply the same filter to all audio streams?

You use -filter_complex instead of -vf and -af

-filter_complex
[0:0]setpts=PTS*0.8[v];[0:1]asetrate,aresample[a0];[0:2]asetrate,aresample[a1]
and then -map [v] -map [a0] -map [a1]
(untested)

Carl Eugen


More information about the ffmpeg-user mailing list