简体   繁体   English

Vlc.DotNet NextFrame

[英]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. 我使用的是VlcControlVlc.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 : 注意 :

  1. ShellObject from NuGet "WindowsAPICodePack-Shell" 来自NuGet ShellObject “WindowsAPICodePack-Shell”

  2. 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

  3. 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM