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.
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.
发布评论
评论(3)
ffmpeg
工具可以通过在视频中区分框架来做到这一点。但是,要使此工作,您需要只有一个由幻灯片组成的视频,或者如果视频具有移动对象(例如人的相机),则需要裁剪整个视频框架的一部分,因此只能看到幻灯片。否则,ffmpeg
可以捕获整个视频帧。安装FFMPEG:
然后,将差异化框架捕获到
extract_imgs
文件夹中,例如:在这里,您可以更改
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:
Then, capture differentiated frames into
extracted_imgs
folder, as an example:Here, you can change
0.01
to adjust how to difference the frames, more sensitively or more coarsely.您可能想看看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.
您可以给出 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