I use the encode application of the DM6467 DVEVM for encoding a 720p clip captured on the component video input and save the encoded data to a file.
The encoder is set to output an I-frame every 30 frames.
I created a file after capturing the above input for 20 seconds. I expected to see more than 1 I-frame in the created file since the capture time is more than enough.
After investigating the file, I found out that it has only 1 I-frame at the beginning of the file (marked by the hex sequence 00 00 00 01 65) and the rest of the file frames are P-frames. I made a search with hex editor to find more of the above hex sequence, but no I-frames were found.
I made the test once more and for every frame sent to the encoder I printed the returned frame type from the encoder (one of the fields of outArgs - Venc1.c file in DMAI) and when I printed it I found out that every 30 frames it reports that it encoded an I-frame which is what is expected. But again, the file contained only 1 I-frame and the rest are P-frames.
What is the reason for this?