I have created an application and in that i am using tweetinvi to upload video to twitter. I am using the following code to upload video:
var videoBinary = System.IO.File.ReadAllBytes(filePath);
var videoMedia = Upload.UploadVideo(videoBinary);
Tweet.PublishTweet("test", new PublishTweetOptionalParameters()
{
Medias = { videoMedia }
});
Video is uploaded successfully, you can see this from the following screenshot:

When publishing tweet the following exception is coming: