ffmpeg - 需要创建电影大小 720 :-1 with a delay in it's 2 first seconds

标签 ffmpeg

我想使用比例过滤器并在电影的前 X 秒添加延迟。

我尝试使用此命令:

ffmpeg -i new1.mp4 -filter_complex 
"scale=720:-1[scale];tpad=start_duration=2;adelay=2s|2s" -map "[scale]" 
scaled720.mp4

我想要的是具有特定大小(720:-1 - 宽高比)的视频,在前 2 秒内也会有延迟。

最佳答案

ffmpeg -i new1.mp4 -filter_complex "[0:v]scale=720:-1,tpad=start_duration=2[v];[0:a]adelay=2s:all=true[a]" -map "[v]" -map "[a]" scaled720.mp4
过滤器输入和输出应正确标记以避免歧义。见 filtering introductionfiltergraph syntax了解更多信息。

关于ffmpeg - 需要创建电影大小 720 :-1 with a delay in it's 2 first seconds,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56719247/

相关文章:

c - avcodec_get_name 在 Ubuntu libavcodec 中不可用,我应该使用什么?

video - FFMPEG覆盖过滤器在特定时间/帧

无法播放 Libavcodec (ffmpeg) 编码示例的视频输出

ios - FFMpeg hls_time 精度

c++ - OpenCV编码为H264

Python 和 ffmpeg

video - 优化服务器上​​的视频存储/编码 (J2EE)

c++ - 使用自定义 AVIOContext 查找流信息时出现 FFMPEG 错误

php - ffmpeg mp4 视频无法在浏览器上的 html5 视频播放器上播放(格式损坏)

python - 处理可执行文件对 github 的依赖