cleanup interface parameters
Merge pull request #969 from ruil2/cleanup_encoder

    cleanup interface parameters
    add bitrate validation
Merge pull request #973 from ruil2/bitrate

    add bitrate validation
Merge remote-tracking branch 'upstream/master' into travis.osx