有没有一种方法可以自动从视频中提取幻灯片?

发布于 2025-01-25 12:59:23 字数 1551 浏览 4 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

无所的.畏惧 2025-02-01 12:59:23

ffmpeg 工具可以通过在视频中区分框架来做到这一点。但是,要使此工作,您需要只有一个由幻灯片组成的视频,或者如果视频具有移动对象(例如人的相机),则需要裁剪整个视频框架的一部分,因此只能看到幻灯片。否则, ffmpeg 可以捕获整个视频帧。

安装FFMPEG:

sudo apt install ffmpeg

然后,将差异化框架捕获到 extract_imgs 文件夹中,例如:

ffmpeg -i my_video.mp4 -filter_complex "select=gt(scene\,0.01)" "extracted_imgs/%04d.jpg" -vsync drop -vb 20M

在这里,您可以更改 0.01 调整如何更敏感或更加粗略的框架。

ffmpeg tool can do this by differencing frames in the video. However, for this to work, you need to have a video consisting only of slides, or you need to crop a part of whole video frame if the video has a moving object, like a person's camera, so only the slide is visible. Otherwise, ffmpeg can capture the whole video frames.

Install ffmpeg:

sudo apt install ffmpeg

Then, capture differentiated frames into extracted_imgs folder, as an example:

ffmpeg -i my_video.mp4 -filter_complex "select=gt(scene\,0.01)" "extracted_imgs/%04d.jpg" -vsync drop -vb 20M

Here, you can change 0.01 to adjust how to difference the frames, more sensitively or more coarsely.

所有深爱都是秘密 2025-02-01 12:59:23

您可能想看看U2Docs。 https://www.u2docs.com 它是通过比较视频框架并捕获它们来实现的。

You might want to take a look at u2Docs. https://www.u2docs.com It was implemented by comparing frames from video and capturing them.

你怎么这么可爱啊 2025-02-01 12:59:23

您可以给出 https://reccap.it 它不会直接输出幻灯片甲板文件。但这非常擅长检测每张幻灯片并捕捉它。

这是一个示例:

You can give https://reccap.it a shot. It doesn't directly output a slide deck file. But it's pretty good at detecting every slide and snapshotting it.

Here is an example: https://reccap.it/recaps/open-pretrained-transformers-susan-zhang-stanford-mlsys-77-fd41161abaed477787bff4393c4d98b5

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文