We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
另一种选择是在服务器端,将每个帧转储为图像,然后通过图像逐步浏览视频,而不是尝试让视频播放器逐帧工作。
下面是一个用于从视频中转储帧的
ffmpeg
命令行,以帮助您入门:如果你想变得更奇特,你可以尝试使用视频播放器来播放视频,然后当你停下来并想要逐帧播放时,将其替换为使用图像实现的逐帧视图。当您暂停视频时,这需要更多的工作才能将视频时间转换为帧数,但可能会满足您的需要。
An alternative would be on the server side, dumping each frame out as an image, and then just stepping through the video via images rather than trying to get a video player to work frame by frame.
Here's an
ffmpeg
command line to dump frames out of a video, to get you started:If you wanted to get fancy, you could try using a video player for playing the video, and then when you stop and want to step by frames, replace it with a frame-by-frame view implemented using images. This would take a bit more work to convert video times to frame numbers when you pause the video, but may give you what you need.