ffmpeg_encoder with new register_event