博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ffmpeg vsync参数分析
阅读量:4200 次
发布时间:2019-05-26

本文共 1178 字,大约阅读时间需要 3 分钟。

ffmpeg官方文档说明

-vsync parameterVideo sync method. For compatibility reasons old values can be specified as numbers. Newly added values will have to be specified as strings always.0, passthroughEach frame is passed with its timestamp from the demuxer to the muxer.1, cfrFrames will be duplicated and dropped to achieve exactly the requested constant frame rate.2, vfrFrames are passed through with their timestamp or dropped so as to prevent 2 frames from having the same timestamp.dropAs passthrough but destroys all timestamps, making the muxer generate fresh timestamps based on frame-rate.-1, autoChooses between 1 and 2 depending on muxer capabilities. This is the default method.Note that the timestamps may be further modified by the muxer, after this. For example, in the case that the format option avoid_negative_ts is enabled.With -map you can select from which stream the timestamps should be taken. You can leave either video or audio unchanged and sync the remaining stream(s) to the unchanged one.

理解:

  • passthrough 每一帧从解码器到编码器,时间戳保持不变
  • cfr 如果指定了输出帧率,输入帧会按照需要进行复制(如果输出帧率大于输入帧率)或丢弃(如果输出帧率小于输入帧率)
  • vfr 输入帧从解码器到编码器,时间戳保持不变;如果出现相同时间戳的帧,则丢弃之
  • drop 同 passthrough,但将所有帧的时间戳清空

参考

转载地址:http://hlfli.baihongyu.com/

你可能感兴趣的文章
谷歌获取货币汇率代码
查看>>
安装nginx
查看>>
手动6 - 隐藏Nginx版本号
查看>>
手动7 - nginx 日志切割
查看>>
magento - 使用后台设置的时间用法
查看>>
Linux常用命令
查看>>
清除文件中的.svn文件
查看>>
手动11 -nginx 优化配置
查看>>
php加速器 - zendopcache
查看>>
手动12 - 安装php加速器 Zend OPcache
查看>>
set theme -yii2
查看>>
yii2 - 模块(modules)的view 映射到theme里面
查看>>
yii2 - controller
查看>>
yii2 - 增加actions
查看>>
网站加载代码
查看>>
php图像处理函数大全(缩放、剪裁、缩放、翻转、旋转、透明、锐化的实例总结)
查看>>
magento url中 uenc 一坨编码 base64
查看>>
强大的jQuery焦点图无缝滚动走马灯特效插件cxScroll
查看>>
Yii2.0 数据库查询
查看>>
yii2 db 操作
查看>>