H.264编码实验

本文介绍了H.264编码的实验原理,包括变换、运动补偿预测和熵编码等技术。实验流程中,重点分析了影响编码的关键代码,如输入文件、源和输出帧宽高、重建文件、位流输出以及I帧、IDR帧的周期设置。此外,还探讨了B帧数量、分层编码模式以及码率控制的启用和比特率设置。
摘要由CSDN通过智能技术生成

实验原理

三种主要技术: 变换,去除空间冗余 基于运动补偿的帧间预测,去除时间冗余 熵编码,去除统计冗余

实验流程

关键代码分析

需要修改的参数

13行 InputFile
30行 SourceWidth = 480 # Source frame width
31行 SourceHeight = 272 # Source frame height
33行 OutputWidth = 480 # Output frame width
34行 OutputHeight = 272 # Output frame height
57行 ReconFile = # Reconstruction YUV file
58行 OutputFile = # Bitstream
72行 IntraPeriod = 0 # Period of I-pictures (0=only first)
73行 IDRPeriod = 15 # Period of IDR pictures (0=only first)
180行 NumberBFrames = 2 # Number of B coded frames inserted (0=not used)
194行 HierarchicalCoding = 0 # B hierarchical coding (0= off, 1= 2 layers, 2= 2 full hierarchy, 3 = explicit)
444行 RateControlEnable = 1 # 0 Disable, 1 Enable
445行 Bitrate = 100000 # Bitrate(bps

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值