Question

is it possible to trigger the encoder to send i-frames when using a surface as the input ? I know its possible when when queuing input buffers, but I didnt find a way to do so when using createInputSurface .

Was it helpful?

Solution

You can't set flags on the buffers. This also affects BUFFER_FLAG_END_OF_STREAM, but for that you have the signalEndOfInputStream() call.

I frames will be sent every KEY_FRAME_RATE * KEY_I_FRAME_INTERVAL buffers. (I don't know how firm that is -- I suspect they might appear more or less often in practice.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top