Wowza Community

Streamed HLS has wrong primary_pic_type of AUD.

Hello,

We stream HLS from mp4 file which has h.264 movie and AAC audio by using Wowza Streaming Engine 4.7.6.
It seems that streamed mpeg-ts has wrong primary_pic_type of AUD.
(source mp4 file does not have AUD)

According to H.264 specification, upper 3 bits of 6th bytes is primary_pic_type.

Here are captured AUD.
●Captured AUD from Wowza
・I-slice
0x00 0x00 0x00 0x01 0x09 0x10 primary_pic_type is 0
・P-slice
0x00 0x00 0x00 0x01 0x09 0x30 primary_pic_type is 1
・B-slice
0x00 0x00 0x00 0x01 0x09 0x30 primary_pic_type is 1

●Captured AUD from Another one
・I-slice
0x00 0x00 0x00 0x01 0x09 0x10 primary_pic_type is 0
・P-slice
0x00 0x00 0x00 0x01 0x09 0x30 primary_pic_type is 1
・B-slice
0x00 0x00 0x00 0x01 0x09 0x50 primary_pic_type is 2

●Captured AUD from FFmpeg
・I-slice
0x00 0x00 0x00 0x01 0x09 0xf0 primary_pic_type is 7
・P-slice
0x00 0x00 0x00 0x01 0x09 0xf0 primary_pic_type is 7
・B-slice
0x00 0x00 0x00 0x01 0x09 0xf0 primary_pic_type is 7

primary_pic_type means here.
0: I
1: I, P
2: I, P, B
3: SI
4: SI, SP
5: I, SI
6: I, SI, P, SP
7: I, SI, P, SP, B

It seems that B-slice of AUD should be primary_pic_type = 2. What do you think?

Because some of Japanese TV occur block noise. When I had modify all AUD as primary_pic_type = 7, it does not occur…
Could you please have a check and fix this? Thanks.

Hello,

Does anyone have any comment?