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 .
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.)