作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
拜托,我需要以下帮助...
我想移动视频(肖像类型),但不拉伸(stretch)它......
使用 FFMPEG 创建 16:9 视频...
我有以下示例...ffmpeg -i video.mpg -filter:v "crop=in_w-100:in_h-100:0:(in_h-out_h)/2 +((in_h-out_h)/2)*sin(t)" -y out.mp4
最佳答案
哇,我不知道我在想什么……
答案很简单,指出输出视频的 HxW ...ffmpeg -i video.mpg -filter:v "crop=1280:720:0:(in_h-out_h)/2 +((in_h-out_h)/2)*sin(t)" -y out.mp4
但是:如果我想创建 640x360 视频,如何调整背景视频的大小?
我尝试包含“缩放”并进行一些测试,但我仍然无法制作背景视频,也无法缩放到 640x360。ffmpeg -i test.mp4 -filter:v "crop=640:360:0:(in_h-out_h)/2 +((in_h-out_h)/2)*sin(t),scale=640:360" out.mp4
.
视频输出:https://youtu.be/TCOLbbereQU
关于scroll - FFMPEG:如何在不拉伸(stretch)的情况下移动视频?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54526345/
我是一名优秀的程序员,十分优秀!