I am using MediaComposition to scale the video. I am creating a MediaEncodingProfile:
var mediaEncodingProfile = mediaComposition.CreateDefaultEncodingProfile();
I am creating a MediaClip and adding it to MediaComposition
var video = await MediaClip.CreateFromFileAsync(videoFile);
this.mediaComposition.Clips.Add(video);
And I set the height and width of the video in mediaEncodingProfile.
mediaEncodingProfile.Video.Width = newWidth
mediaEncodingProfile.Video.Height = newHeight
When newWidth and newHeight are larger than the height and width of the video, the colors are lighter than they should be
mediaComposition.GenerateMediaStreamSource(this.mediaEncodingProfile)
Can I somehow turn off automatic color changing?