ffmpeg使用参数说明

摘要:
-Lshowlicense显示许可htopicshowhelp显示帮助-?
-L                  show license显示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显示可用的格式
-muxers             show available muxers显示可用的封装器
-demuxers           show available demuxers显示可用的解封装器
-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列出输出设备
-hwaccels           show available HW acceleration methods显示可用的硬件加速方法
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不覆盖输出
-ignore_unknown     Ignore unknown stream types忽略未知的流类型
-filter_threads     number of non-complex filter threads简单滤镜的线程的数量(滤镜分为non-complex和complex两种)
-filter_complex_threads  number of threads for -filter_complex复合滤镜线程的数量
-stats              print progress report during encoding打印编码过程的进度报告
-max_error_rate ratio of errors (0.0: no errors, 1.0: 100% error  maximum error rate最大的错误率比例,0.0表示没有错误,1.0表示错误率100%
-bits_per_raw_sample number  set the number of bits per raw sample设置每个原生采样的比特数
-vol volume         change audio volume (256=normal)设置音频音量,正常情况一般为256
Per-file main options:每一个文件的主要选项
-f fmt              force format设置格式
-c codec            codec name设置编解码器
-codec codec        codec name设置编解码器
-pre preset         preset name设置预处理集
-map_metadata outfile[,metadata]:infile[,metadata]  set metadata information of outfile from infile设置输出文件的元数据信息
-t duration         record or transcode "duration" seconds of audio/video设置录制或转码的时间(多久),单位秒(时间段)
-to time_stop       record or transcode stop time设置录制或转码的停止时间点(时间点)
-fs limit_size      set the limit file size in bytes设置文件最大值,单位字节
-ss time_off        set the start time offset设置开始时间偏移量,也就是开始点后多久才正常工作
-sseof time_off     set the start time offset relative to EOF也是设置偏移量,不过参考点是结束时间点,不是开始时间点
-seek_timestamp     enable/disable seeking by timestamp with -ss启用或禁止使用-ss参数去根据时间戳拖动
-timestamp time     set the recording timestamp ('now' to set the current time)设置录制的时间戳(now表示现在、当前时间)
-metadata string=string  add metadata添加元数据
-program title=string:st=number...  add program with specified streams给指定的流添加节目
-target type        specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-")指定目标文件的类型
-apad               audio pad音频补齐
-frames number      set the number of frames to output设置输出多少帧
-filter filter_graph  set stream filtergraph设置流的滤镜图
-filter_script filename  read stream filtergraph description from a file从一个文件读取流的滤镜图的描述(就是以文件的形式添加滤镜图了)
-reinit_filter      reinit filtergraph on input parameter changes当输入参数变化时重新初始化滤镜图
-discard            discard丢弃
-disposition        disposition配置
Video options:视频选项
-vframes number     set the number of video frames to output设置输出多少视频帧
-r rate             set frame rate (Hz value, fraction or abbreviation)设置帧率,单位Hz
-s size             set frame size (WxH or abbreviation)设置帧的大小
-aspect aspect      set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)设置视频画面的宽高比
-bits_per_raw_sample number  set the number of bits per raw sample设置每个原生样本的比特数
-vn                 disable video禁止视频,即视频不可用了
-vcodec codec       force video codec ('copy' to copy stream)设置视频编解码器,copy表示使用输入源的
-timecode hh:mm:ss[:;.]ff  set initial TimeCode value.设置初始TimeCode 
-pass n             select the pass number (1 to 3)选择通道
-vf filter_graph    set video filters设置视频滤镜
-ab bitrate         audio bitrate (please use -b:a)设置音频比特率
-b bitrate          video bitrate (please use -b:v)设置视频比特率
-dn                 disable data禁止数据缓存
Audio options:音频选项
-aframes number     set the number of audio frames to output设置输出多少帧音频
-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)设置音频编解码器,copy表示使用输入源的
-vol volume         change audio volume (256=normal)改变音量
-af filter_graph    set audio filters设置音频滤镜
Subtitle options:字幕选项
-s size             set frame size (WxH or abbreviation)设置帧的大小
-sn                 disable subtitle禁止字幕
-scodec codec       force subtitle codec ('copy' to copy stream)设置字幕的编解码器,copy表示使用输入源的
-stag fourcc/tag    force subtitle tag/fourcc设置字幕tag
-fix_sub_duration   fix subtitles duration修改、纠正字幕的时间
-canvas_size size   set canvas size (WxH or abbreviation)设置画布大小
-spre preset        set the subtitle options to the indicated preset设置字幕选项的预设(预处理集)


免责声明:文章转载自《ffmpeg使用参数说明》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇大小字节序的深入理解和鉴定系统字节序方法调用webservice接口,报错:(十六进制值0x01)是无效的字符下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

(转载)音频编解码基础(wav/aac/pcma/pcmu)

原文:https://blog.csdn.net/hiwubihe/article/details/81258879 [音频编解码系列文章] 音频编解码基础FFMPEG实现音频重采样FFMPEG实现PCM编码(采用封装格式实现)FFMPEG实现PCM编码(不采用封装格式实现)FAAC库实现PCM编码FAAD库实现RAW格式AAC解码FAAD库实现RAW格式...

linux下FFmpeg编译生成ffplay

1、确认Makefile中指定的config.mak(在ffmpeg根目录下)中:CONFIG_FFPLAY=yes,如果不是需要重新./configure 该处还有ffmpeg、ffprobe、ffserver可以打开。 2、编译时需要安装libsdl1.2-dev,命令为sudo apt-get install libsdl1.2-dev,如果安装失败...

Ffmpeg解码获取一帧图像

Opening a Video File First things first - let's look at how to open a video file and get at the streams contained in it. The first thing we need to do is to initialize libavformat...

加密的m3u8、ts文件合并

加密后的ts文件不能直接合并或播放,需要使用key对每个ts文件进行解密。 分为两种情况: (1).如果ts文件已经全部下载好,则可以直接在本地通过ffmpeg快速解密合并。 (2).如果ts文件没有下载好,则可以通过vlc直接下载整个视频,或者通过ffmpeg下载并转换。 无论是哪种情况,都要去视频源地址下载m3u8文件。如果可以下载key(有些网站加密...

ffmpeg基本功能使用

任务描述:由给定图像序列合成 24fps 视频 方案一 直接对图像进行操作,适用于图像名比较规范且默认即为所需顺序 ffmpeg -f image2 -i ./images_crop_%d.png -pix_fmt yuv420p -vcodec libx264 -r 24 -y output.mp4 方案二 将图像顺序写入一个文件列表,让ffmpeg从...

linux下使用ffmpeg将amr转成mp3

系统环境: CentOS Linux release 8.2.2004 (Core) 1. 首先安装系统编译环境 yum install -y automake autoconf libtool gcc gcc-c++ 2. 编译所需源码包 #yasm:汇编器,新版本的ffmpeg增加了汇编代码 wget http://www.tortall.net/pr...