我有一个交互式绘图通过matplotlib与点击功能。目前,点击功能给我时间t。现在,使用moviepy和pygame,我玩的视频我直接跳到那个时间实例。但在比赛中,我无法控制。我想有一个暂停和滚动条向前或向后的视频。类似于windows media player。 当按下键盘按钮时,是否有与剪辑相关的功能来暂停视频?你知道吗
print('Playing video from time :', (t - 5, "to :", t + 5)
clip = VideoFileClip(self.videofile).subclip(int(t) - 5, int(t) + 5)
clip.preview()
pygame.quit() # currently it is called at the end of the my plot
function
我想暂停函数。我找了一些函数,比如剪辑.显示()但没有帮助我。你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐