printf("\n h->fenc->i_poc = %d \n \n ",h->fenc->i_poc);

本文详细解析了音视频编解码过程中的关键参数及其应用,通过实例展示了如何使用x264命令进行高效编码,并深入探讨了编码过程中POC(Picture Order Count)与帧间预测的关系。同时,提供了编码命令的使用技巧,帮助开发者优化视频文件大小与质量。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

    h->fdec->i_poc =
    h->fenc->i_poc = 2 * (h->fenc->i_frame - h->frames.i_last_idr);

 printf("\n h->fenc->i_poc = %d \n \n ",h->fenc->i_poc);//zjh

    h->fdec->i_type = h->fenc->i_type;
    h->fdec->i_frame = h->fenc->i_frame;
    h->fenc->b_kept_as_ref =
    h->fdec->b_kept_as_ref = i_nal_ref_idc != NAL_PRIORITY_DISPOSABLE;

 

 

用命令编码一序列,命令中用到了选项keyint

x264 --crf 22 --keyint 20 -o test.264 hall_cif.yuv 352x288

printf(n h-fenc-i_poc = d n n ,h-fenc-i_poc); - 加菲 -  .

 

printf(n h-fenc-i_poc = d n n ,h-fenc-i_poc); - 加菲 -  .
 
 

 
D:\>x264 --crf 22 --keyint 20 -o test.264 hall_cif.yuv 352x288

************************************
**   http://wmnmtm.blog.163.com   **
************************************
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2

 h->fenc->i_poc = 0
 h->fenc->i_poc = 2
 h->fenc->i_poc = 4
 h->fenc->i_poc = 6
 h->fenc->i_poc = 8
 h->fenc->i_poc = 10
 h->fenc->i_poc = 12
 h->fenc->i_poc = 14
 h->fenc->i_poc = 16
 h->fenc->i_poc = 18
 h->fenc->i_poc = 20
 h->fenc->i_poc = 22
 h->fenc->i_poc = 24
 h->fenc->i_poc = 26
 h->fenc->i_poc = 28
 h->fenc->i_poc = 30
 h->fenc->i_poc = 32
 h->fenc->i_poc = 34
 h->fenc->i_poc = 36
 h->fenc->i_poc = 38

 h->fenc->i_poc = 0
 h->fenc->i_poc = 2
 h->fenc->i_poc = 4
 h->fenc->i_poc = 6
 h->fenc->i_poc = 8
 h->fenc->i_poc = 10
 h->fenc->i_poc = 12
 h->fenc->i_poc = 14
 h->fenc->i_poc = 16
 h->fenc->i_poc = 18
 h->fenc->i_poc = 20
 h->fenc->i_poc = 22
 h->fenc->i_poc = 24
 h->fenc->i_poc = 26
 h->fenc->i_poc = 28
 h->fenc->i_poc = 30
 h->fenc->i_poc = 32
 h->fenc->i_poc = 34
 h->fenc->i_poc = 36
 h->fenc->i_poc = 38


 h->fenc->i_poc = 0
 h->fenc->i_poc = 2
 h->fenc->i_poc = 4
 h->fenc->i_poc = 6
 h->fenc->i_poc = 8
 h->fenc->i_poc = 10

... ...不断的重复

   

 

h->fenc->i_poc = 2 * (h->fenc->i_frame - h->frames.i_last_idr);计算的结果就是0、2、4、6、8.......

 

上面的帖子里也查看过i_last_idr,是0、20、40、60、80、。。。。。,取决于keyint的值

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值