ffmpeg基本用法

一、用法

ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

说明:

global options:全局选项,应用于整个 FFmpeg 进程,它们通常不受输入或输出部分的限制。

infile options:输入选项,用于指定如何处理输入文件,需要放到 -i 的前面

infile:输入文件

outfile options:输出选项,用于指定如何处理输出文件,需要放到输出文件前面

outfile:输出文件

二、查看基础信息

-L                          显示许可信息

-h topic                  显示帮助信息

-? topic                  显示帮助信息

-help topic             显示帮助信息

--help topic            显示帮助信息

-version             显示版本

-buildconf           显示编译配置信息

-formats             显示可用的格式

-muxers             显示可用的复用器

-demuxers           显示可用的解复用器

-devices             显示可用的设备

-codecs             显示可用的编解码器

-decoders           显示可用的解码器

-encoders           显示可用的编码器

-bsfs               显示可用的比特流过滤器

-protocols           显示可用的协议

-filters             显示可用的过滤器

-pix_fmts           显示可用的像素格式

-layouts             show standard channel layouts

-sample_fmts         显示可用的音频采样格式

-colors             显示可用的颜色名称

-sources device     list sources of the input device

-sinks device       list sinks of the output device

-hwaccels           显示可用的硬件加速方式

Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Getting help: -h -- print basic options -h long -- print more options -h full -- print all options (including all format and codec specific options, very long) See man ffmpeg for detailed description of the options. Print help / information / capabilities: -L show license -h topic show help -? topic show help -help topic show help --help topic show help -version show version -buildconf show build configuration -formats show available formats -devices show available devices -codecs show available codecs -decoders show available decoders -encoders show available encoders -bsfs show available bit stream filters -protocols show available protocols -filters show available filters -pix_fmts show available pixel formats -layouts show standard channel layouts -sample_fmts show available audio sample formats -colors show available color names -sources device list sources of the input device -sinks device list sinks of the output device Global options (affect whole program instead of just one file: -loglevel loglevel set logging level -v loglevel set logging level -report generate a report -max_alloc bytes set maximum size of a single allocated block -y overwrite output files -n never overwrite output files -stats print progress report during encoding -max_error_rate ratio of errors (0.0: no errors, 1.0: 100% error maximum error rate -bits_per_raw_sample number set the number of bits per raw sample -vol volume change audio volume (256=normal) Per-file main options: -f fmt force format -c codec codec name -codec codec
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值