The snapshot is a user (external CPU) action which send a command to do it (it's asynchronous).
Your suggestion it's a good idea, but if I set set IDR interval to 300ms, it does not meet my need of asynchronous snapshot.
But, in the same kind of idea, I could use the dynamic command ENC_LINK_CMD_SET_CODEC_FORCEI to force the insertion of an IDR frame. Is true ?
The problem is, I think, that the quality of the IDR is directly linked with the encoder configuartion. If the bitrate is low the quality of the IDR picture is low too.
There is a lot of chance that the quality is less(for a bitrate at 4Mbit/s) than a jpeg with qpInit at 97.
I will test this solution to see.
If the quality of the IDR is good, what software can you view these images ? The IDR pictures are like uncompress (raw) pictures ?
thanks