[英]Vlc.DotNet NextFrame
I'm using the VlcControl
from the Vlc.DotNet
library, but I can't figure out how to use the NextFrame
function within the last version. 我使用的是VlcControl
从Vlc.DotNet
库,但我无法弄清楚如何使用NextFrame
的最后一个版本中的功能。
This command isn't available in the VlcControl
class, only within the Core.Interops.VlcManager
class, but I don't know how to call it from my VlcControl
. 此命令在VlcControl
类中不可用,仅在Core.Interops.VlcManager
类中Core.Interops.VlcManager
,但我不知道如何从我的VlcControl
调用它。
You can move to next frame by increase the time like this 您可以通过增加这样的时间来移动到下一帧
vlcControl1.Time += 1000/FPS;
previous frame : 上一帧:
vlcControl1.Time -= 1000/FPS;
FBS
can be from FBS
可以来自
ShellObject obj = ShellObject.FromParsingName(fileSource.getCurrentFile().FullName); FPS = obj.Properties.System.Video.FrameRate.Value != null ? (int)(obj.Properties.System.Video.FrameRate.Value / 1000) : 22;
Note that : 注意 :
ShellObject
from NuGet
"WindowsAPICodePack-Shell" 来自NuGet
ShellObject
“WindowsAPICodePack-Shell”
I have assigned 22 because there is some file return null in obj.Properties.System.Video.FrameRate.Value
我已经分配了22,因为在obj.Properties.System.Video.FrameRate.Value
有一些文件返回null
fileSource.getCurrentFile()
this is a FileInfo
Object that contains video file. fileSource.getCurrentFile()
这是一个包含视频文件的FileInfo
对象。
too late but maybe somebody find it helpful :) 太晚了但也许有人觉得有帮助:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.