Hi,
Does the h264 decoder need an IDR to start decoding or it can start decoding from any random point?
I need the h264 codec can decode from any random point,but when my palyer work on this way,the h264 codec vdec _process always return -1.
And I have use the decode demo made a test,that if the h264 video start from IDR frame,the decode demo work very well,but if I delete the first IDR frame,and then use the decode demo to have a test,it exit abnormally.Bellow is the demo's trace:
./decode -v video1.264 (delete the first IDR frame)
Decode demo started.
Error: Failed to decode video buffer
./decode -v video2.264 (etrire video)
Decode demo started.
Decode demo ARM Load: 57% DSP Load: 14% Display Type: D1 NTSC Video Codec: H.264 BP Video fps: 21 fps Video bit rate: 275 kbps Video resolution: 720x576 Sound codec: N/A Sound bit rate: 0 kbps Sampling freq: 0 Time: 00:00:01
Decode demo ARM Load: 3% DSP Load: 12% Display Type: D1 NTSC Video Codec: H.264 BP Video fps: 30 fps Video bit rate: 8 kbps Video resolution: 720x576 Sound codec: N/A Sound bit rate: 0 kbps Sampling freq: 0 Time: 00:00:02
My environment:
DVSDK-version:dvsdk_2_00_00_22
h264 dec-version:1.00.018
platform:dm6467
David