ffmpeg压缩视频指令
date
Feb 5, 2022
slug
10052
status
Published
tags
misc
summary
type
Post
ffmpeg.exe -i 2-VID20211103172851-test.mp4 -vcodec libx265 -crf 28 -vf "transpose=2, scale=480:-1" -b:a 64k output_video2.mp4
-vcodec libx265
解码器
-crf 28
,数越大越模糊
-vf "scale=480:-1"
,scale视频尺寸, The -1
will tell ffmpeg to automatically choose the correct height in relation to the provided width to preserve the aspect ratio. -1
can also be used for width if you provide a given height.
-b:a audio
压缩-vf "tranpose=2"
旋转图像0 = 90CounterCLockwise and Vertical Flip (default)
1 = 90Clockwise
2 = 90CounterClockwise
3 = 90Clockwise and Vertical Flip
Use
-vf "transpose=2,transpose=2"
for 180 degrees.