
音视频
文章平均质量分 66
DarwinLong
我是程序员,为未来努力!
展开
-
视频压缩的流程
初始化:av_register_allavformat_alloc_output_context2avcodec_find_encoderavcodec_alloc_context3av_dict_set//打开编码器avcodec_open2//Add a new stream to output,should be原创 2017-12-25 18:14:47 · 839 阅读 · 0 评论 -
FFMPEG入门 基础知识笔记一
官方文档:http://ffmpeg.org/doxygen/2.0/index.htmlAVCodecContext配置参数1.基本API AVFormatContex * pFormatCtxEnc; AVCodecContext * pCodecCtxEnc; AVStream * video_st; AVOutputFo原创 2017-12-25 18:08:44 · 940 阅读 · 0 评论 -
Android色彩空间像素格式定义及设定
Android Camera默认输出的就是NV21格式。对android的像素格式进行了整理,有利于加深了对色彩空间的理解。android 像素格式定义:/system/core/include/system/graphics.h45typedef enum android_pixel_format {46 /*47 * "linear" color pixel原创 2017-12-23 12:12:31 · 9975 阅读 · 0 评论 -
FFPMEG中音频采样格式
FFPMEG中音频采样格式分为 :平面样本格式和打包样本格式。平面样本格式:每一个音频通道是一个独立的数据平面,linesize线宽就是是缓冲区的大小,以字节为单位,一个单一的平面。所有数据平面必须是相同的大小。对于打包的样本格式,只使用第一个数据平面,每个通道的样本是交错的。在这种情况下,linesize线宽是字节缓冲区大小,为一个平面。/* For planar sampl原创 2017-12-30 10:54:59 · 1346 阅读 · 0 评论