Hi All,
I'm trying to build a realtime decoder on Android, I have an issue that some of the Android hardware decoding have a buffer depth (what I call pipeline lenght) that is most of the time not equals to zero.
I was wondering if it was possible to fake p frames in the H264 stream to fix the decoder pipeline ?
Here an example of the problem:
[I (A)] -> [P (B)] -> [P (C)] -> [P (D)] -> [P (E)] -> [P (F)]
If decoder has a pipeline of 3, the last 2 pictures (E,F) will never be outputed to the screen (renderer).
Here an example of my idea:
[I (A)] -> [P (B)] -> [P (C)] -> [P (D)] -> [P (E)] -> [P (F)] -> [P (F')] -> [P (F'')]
Insert 2 fake P frames that represent no variation based on latest enqueued frame (F)
Sorry if i'm not super clear, I'm quite a beginner in video encoding;
Romain.