fixed encoder initialization with 0 FPS before constructor was called