Fixes default values and encoder initialization. Also now sets the framerate parameter for the encoder.