Call av_register_all in the constructor of VideoWriter