int???? block_x???? = 8*(b8 & 0x01)+4*(b4 & 0x01);
int???? block_y???? = 8*(b8 >> 1)+4*(b4 >> 1);
請問下老大 這兩句定義是什么意思啊?
帶些值進去算一下就知道了 b8 = 0 1 2 3
b4 = 0 1 2 3
A:0??????????????????????? ........Err Concealment(0:Off,1:Frame Copy,2:Motion Copy)
老大 這是差錯隱藏的開關吧?
是
A:老大,那你如何把差錯隱藏關掉啊?注釋代碼嗎?在哪里啊?
ercConcealIntraFrame 和 ercConcealInterFrame
A:采用RDO技術比非RDO編碼后,碼率居然要高
碼率要看總體情況
//++ FFMPEG 初始化
??? avcodec_init();
??? avcodec_register_all();
codec = avcodec_find_decoder(CODEC_ID_H264);
??? context = avcodec_alloc_context();
??? picture = avcodec_alloc_frame();
??? if(codec->capabilities & CODEC_CAP_TRUNCATED)
??? {
??????? context->flags |= CODEC_FLAG_TRUNCATED;
??? }
??? avcodec_open(context, codec);
自己看看 FFMPEG 源碼里的 apiexample.c 文件就知道怎么用了