Updated VideoWriter sample