[请问] h264 decode破图

楼主: wong0101 (wong0101)   2017-04-12 19:41:15
想请教版上的大大
我在android上面decode rtp封包传来的 h264 影片,
发现会有破图的现象, 我把start code后面的几个byte log下来,
发现好像是有一些规律, 可是网络可以查到的资料大部分都是说start code后面那一个
byte是什么type的nalu, 还是不太清楚里面的资料是怎么编码的
虽然破图的原因有很多, 但还是想请教版对编码较熟的大大,
这段log是否可以看出来是有顺序不对的问题, 又或者是有什么样的问题存在?
先感谢各位了, log如下
(红色字体出现时, 就会开始破图) (但nalu type为67时却不一定会破图)
found somethings resembling an h.264/mpeg syncword at offset 18332
00000001 21 fd e8 07 5e
found somethings resembling an h.264/mpeg syncword at offset 18400
00000001 21 fe f0 07 5e
found somethings resembling an h.264/mpeg syncword at offset 18520
00000001 21 ff f8 07 5e
found somethings resembling an h.264/mpeg syncword at offset 18544
00000001 21 e0 00 07 5e
found somethings resembling an h.264/mpeg syncword at offset 18792
00000001 21 e1 08 07 5e
found somethings resembling an h.264/mpeg syncword at offset 18760
00000001 21 e2 10 07 5f
syncword at offset 0, 00000001 67 42 e0 1f ab
syncword at offset 0, 00000001 21 e1 08 0d 78
syncword at offset 0, 00000001 21 e2 10 07 5e
syncword at offset 0, 00000001 21 e3 18 07 5e
syncword at offset 0, 00000001 21 e4 20 07 5e
syncword at offset 0, 00000001 21 e5 28 07 5e
found somethings resembling an h.264/mpeg syncword at offset 7432
00000001 21 e6 30 07 5e
found somethings resembling an h.264/mpeg syncword at offset 19124
00000001 21 e7 38 07 5e
作者: kevingwn (如云如风的人生)   2017-04-12 22:16:00
用"found something..."去估狗到的是ESQueue.cpp第267行这边应该是说你的startcode不在data的起始
楼主: wong0101 (wong0101)   2017-04-20 21:14:00
K大 不太懂你的意思,可否在说明一下~thx我看他会从start code后面才开始decode?
作者: kevingwn (如云如风的人生)   2017-04-21 12:44:00
你的log可以在ESQueue.cpp这个档案里找到,对照log之前的程式码是说在你喂入appendData()的参数data当中不是开头的位置找到startcode,对照之后的程式码它会忽略掉start-code前的资料,所以有可能破图

Links booklink

Contact Us: admin [ a t ] ucptt.com