设置视频位置问题的反应速度 [英] Reaction Speed of Setting Video Position Problem
问题描述
嗨所有,
我们发现[设置视频位置]的反应速度与[video-source-比[video-source-1]更慢
。
有人知道如何通过录制的视频加快设置视频位置的反应速度by oursleves([video-source-2]) ?
We found that the reaction speed of [setting video position] with [video-source-2] is slower
than with [video-source-1].
Does anybody knows how to accelerate the reaction speed of setting video position with the video recorded by oursleves ([video-source-2])?
===
[设置视频位置]:
参考示例:"XAML媒体播放示例" ( http://code.msdn.microsoft.com/windowsapps/Basic-Media-Playback-003619be )
示例代码:MediaElement.Position
MediaElement.Position= TimeSpan(Value);
===
[video-source-1]:
视频大小= 1920x1080 ,由MSFT Camera app录制。
===
[video-source-2]:
视频大小= 1920x1080 ,由以下示例代码记录:
===
[video-source-1]:
video size = 1920x1080, recorded by MSFT Camera app
===
[video-source-2]:
video size = 1920x1080, recorded by the following sample code:
StorageFile recordStorageFile = await ApplicationData.Current.LocalFolder.CreateFileAsync(videoFileName, CreationCollisionOption.GenerateUniqueName);
Windows.Media.MediaProperties.MediaEncodingProfile recordProfile = Windows.Media.MediaProperties.MediaEncodingProfile.CreateMp4(Windows.Media.MediaProperties.VideoEncodingQuality.Auto);
await MediaCaptureMgr.StartRecordToStorageFileAsync(recordProfile, recordStorageFile);
推荐答案
您好,
我需要访问已保存的视频文件才能准确地告诉您发生了什么。也就是说关键帧间距可能是导致问题的原因。在内部,我们解析回最近的关键帧,以确保我们有足够的数据
来生成选定的帧。如果关键帧距搜索位置15-20秒,则可能需要一些时间来解析所有这些帧并在当前搜索点生成帧。我总是建议关键帧间距约为5秒。
I would need to have access to the saved video files to be able to tell you exactly what is happening. That said the key-frame spacing is likely what is causing the problem. Internally we parse back to the closest key-frame to make sure we have enough data to generate the selected frame. If the key frame is 15 - 20 seconds away from the seek location it can take some time to parse all of those frames and generate the frame at the current seek point. I always recommend a key-frame spacing of about 5 seconds.
我希望这有帮助,
James
这篇关于设置视频位置问题的反应速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!