handle random access point with libavformat
add options to maks/unmask events to log