private async Task CalculateFrameRateFromStreamAsync(IRandomAccessStream stream) { MediaEncodingProfile profile = await MediaEncodingProfile.CreateFromStreamAsync(stream); FrameRate = (double)profile.Video.FrameRate.Numerator / profile.Video.FrameRate.Denominator; }