Цитата:
Цитата lost8923142
Было бы неплохо узнать код, для растяжения до заданного времени. »
|
первое что дал гугл -
https://stackoverflow.com/questions/...-fits-in-video
фильтр atempo может быть рациональным числом
ffmpeg -i x:\video.mp4 X:\external_audio.m4a -c:a aac -strict -2 -b:a 128k -af atempo=0.95 output.mp4
You should probe the specific duration for both the audio and video streams and supply that as a rational number to the atempo. ffprobe -show_entries stream=duration -of compact -v 0 video.mp4 and also run that for the m4a. Add -map 0:v -map 1:a to the ffmpeg command.
https://iamsto.wordpress.com/2021/02...anced-options/
на тему фильтра timebase
https://ffmpeg.org/ffmpeg-resampler....ampler-Options
Stretch/squeeze samples to the given timestamps, with a maximum of 1000 samples per second compensation:
aresample=async=1000
async
For swr only, simple 1 parameter audio sync to timestamps using stretching, squeezing, filling and trimming. Setting this to 1 will enable filling and trimming, larger values represent the maximum amount in samples that the data may be stretched or squeezed for each second. Default value is 0, thus no compensation is applied to make the samples match the audio timestamps.
и там же дальше фильтры
https://lzone.de/blog/Easily-fix-asy...eo-with-ffmpeg
вот тут наиболее просто и логично без лишних слов описано.