ffmpeg encoder optimization
2016-04-12 17:27
1281 查看
//Added by Ken on April 12,2016
av_dict_set(&opt, "preset", "veryfast", 0);
av_dict_set(&opt, "crf", "25", 0);
//The range of the quantizer scale is 0-51: where 0 is lossless, 23 is default, and 51 is worst possible. A lower value is a higher
//quality and a subjectively sane range is 18-28. Consider 18 to be visually lossless or nearly so: it should look the same or nearly
//the same as the input but it isn't technically lossless.
av_dict_set(&opt, "movflags", "faststart", 0);
av_dict_set(&opt, "tune", "zerolatency", 0);
av_dict_set(&opt, "pixfmt", "yuv420p", 0);
av_dict_set(&opt, "x264opts", "bframes0:keyint_min=25:keyint=100", 0);
av_dict_set(&opt, "c:v", "libx264", 0);
av_dict_set(&opt, "subq", "1", 0);
//av_dict_set(&opt, "s", std::to_string(dst_width)+"x"+std::to_string(dst_height), 0);
av_dict_set(&opt, "preset", "veryfast", 0);
av_dict_set(&opt, "crf", "25", 0);
//The range of the quantizer scale is 0-51: where 0 is lossless, 23 is default, and 51 is worst possible. A lower value is a higher
//quality and a subjectively sane range is 18-28. Consider 18 to be visually lossless or nearly so: it should look the same or nearly
//the same as the input but it isn't technically lossless.
av_dict_set(&opt, "movflags", "faststart", 0);
av_dict_set(&opt, "tune", "zerolatency", 0);
av_dict_set(&opt, "pixfmt", "yuv420p", 0);
av_dict_set(&opt, "x264opts", "bframes0:keyint_min=25:keyint=100", 0);
av_dict_set(&opt, "c:v", "libx264", 0);
av_dict_set(&opt, "subq", "1", 0);
//av_dict_set(&opt, "s", std::to_string(dst_width)+"x"+std::to_string(dst_height), 0);
相关文章推荐
- tomcat7用jndi配置数据源出现java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addResourceRef
- Frozen your python script with PyInstaller - Linux Instance
- Rsync初步实践
- tomcat内存溢出java.lang.OutOfMemoryError: Java heap space 的解决
- linux命令之mkdir touch
- linux下elasticsearch 安装、配置及示例
- Makefile常用语法汇总
- powershell 参数 [String]Service
- 在windows下搭建hadoop工程(二)之 WordCount 作业测试
- 每天一个linux命令(48):watch命令
- Zookeeper基础—Zookeeper安装与配制(Window版本)
- Tomcat项目部署方式
- linux 静、动态库笔记
- 【top】动态查看进程列表
- tomcat(6)生命周期
- 利用PowerBI结合SCOM展示数据报表
- android studio windows Mac linux下载地址
- 网站首页添加缓存--------ehcache的简单使用
- Centos 6.5 装机后安装设置,含脚本
- Linux进程创建fork()与vfork()