• ffmpeg使用参数说明


    -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 设置字幕选项的预设(预处理集)


  • 相关阅读:
    windows,linux,esxi系统判断当前主机是物理机还是虚拟机?查询主机序列号命令 风行天下
    zabbix监控网络的出入口流量 风行天下
    python 编写远程连接服务器脚本 风行天下
    zabbix 监控windows端cpu使用率百分比 风行天下
    linux计划任务crontab的使用 风行天下
    cd
    rm
    cp
    Windows XP和Windows 7双系统安装和启动菜单修复
    MapInfo、ArcGIS 狙击战 1
  • 原文地址:https://www.cnblogs.com/yongfengnice/p/6778019.html
Copyright © 2020-2023  润新知