Hi, I have issue with decoding h.264 stream in Jetson TX2 in L4T 32.6.1, Jetpack
I have 2 cameras with diffrent manufacture, and I modified 00_video_decode code and applied to my application to decode stream.
When I decode h.265 stream I can receive frame normally.
But, when I decode h.264 stream, from one camera give frame in same interval but the other one gives strange interval. (for example, normal one is decode frame every 200ms, strange interval is like 800ms, 2ms, 2ms, 100ms, 100ms I decode 5 frame in every channel)
Hi, disableDPB() can reduce latency in decoding but certain streams(certain streams which have B frames) cannot be correctly decoded. If your input stream can be correctly decoded, please call it to have less latency.
I understand that disableDPB is reduce decoding latency.
But my Issue was
2 different manufacture cameras with same codec(h.264), same environmnet
time it takes to decode from one camera is constant. but the other camera is not constant (some frames is take too long like 800ms, some frames take very short time like 2ms).
disableDPB was solution to make decode time constantly.
But, I don’t want to use disableDPB.
Do you think the encoded stream for camera is problem?
Is there any way to solve this problem without using disableDPB()?
Hi, I parsed the h264 stream and found that It decode same YUVs in both camera.
Both Strange and normal stream is Main@3.0 (640 x 360 resolution in 30fps)
I receive only I frame and P frame in both streams. (P frame has one nActiveRefFrame)
Difference in those two camera is normal stream camera uses hisilicon chip and strange stream camera uses ambarella chip.
When I print v4l2_ctrl_videodec_outputbuf_metadata’s frameType after dqBuffer from capture_plane received from strange stream
[I, P Frames (* 29) (stop while)], [I, P Frames (* 29), (stop while)], [I, PPP…] → This situation continues. (I think decoding I frame takes long time)
I understand I can call disableDPB if stream has one reference frame.
But I think those two streams need to work same regardless of chip manufacturer.
Do you think this is problem of camera side?
What happens to decoding I frame If I call disableDPB()?
num_ref_frames (max_num_ref_frames) value is same. but the value of constraint_set1_flag, log2_max_frame_num_mins4 value is different and strange stream has hrd_parameters.