You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This post was originally created at 2020-03-22T07:56:57+08:00
Basic
Get help from command line
ffmpeg -h
Some useful help here
Global options (affect whole program instead of just one file:
-loglevel loglevel set logging level
-v loglevel set logging level
-y overwrite output files
-n never overwrite output files
Video options:
-r rate set frame rate (Hz value, fraction or abbreviation)
-s size set frame size (WxH or abbreviation)
-aspect aspect set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
-vn disable video
-vcodec codec force video codec ('copy' to copy stream)
-vf filter_graph set video filters
-ab bitrate audio bitrate (please use -b:a)
-b bitrate video bitrate (please use -b:v)
Audio options:
-aq quality set audio quality (codec-specific)
-ar rate set audio sampling rate (in Hz)
-ac channels set number of audio channels
-an disable audio
-acodec codec force audio codec ('copy' to copy stream)
-vol volume change audio volume (256=normal)
-af filter_graph set audio filters
View Post on Blog
This post was originally created at 2020-03-22T07:56:57+08:00
Basic
Get help from command line
Some useful help here
Examples
去除和取出声音
裁剪
HH:MM:SS.xxx
拼接
list.txt 内容为:
生成静音的音频
把视频和音频合起来
合理转成 GIF
The standard way to use ffmpeg for GIFs is
Generate a palette from the video
Then,
More options documented here.
所以使用我的
ffmpegroup
脚本,第二步就是ffmpegroup mp4/gif -z"-i palette.png -filter_complex paletteuse -r 10 -s 200x200 -y"
直接倍速
ffmpeg -i input.mkv -filter:v "setpts=PTS/60" output.mkv
或者更快的,但是会有音频问题,而且转出来帧率吓死人,并没有多少压缩作用,请慎用:
The text was updated successfully, but these errors were encountered: