有时候看网课的时候,很多网课没有PPT,听完老师讲了之后啥也没记住,于是决定试着做一下从视频抽帧实现pdf文档的功能,好几年前的时候是写了一个脚本,当时只是偶尔用一下,但是随着使用越来越多,随着自己也有了nas,顺便折腾了一下:把一堆课程视频自动抽关键帧、去重、拼成 PDF,方便回看和检索。现在做成了 Web + 后台任务版本,部署后可以长期挂着跑。欢迎各位朋友使用
yzmninglang/Video2pdf: A tool that can extract frames from video and convert them into pdf
使用如下docker compose即可
version: "3.9"
services:
video2pdf:
image: ghcr.io/yzmninglang/video2pdf:latest
container_name: video2pdf-batch
user: "0:0"
ports:
- "7862:7862"
volumes:
# 格式为 [宿主机路径]:[容器内路径]
- /vol1/1000/课程:/data
- ./state_data:/state
restart: always
command:
- "--server-name"
- "0.0.0.0"
- "--server-port"
- "7862"
- "--mapped-dir"
- "/data"
- "--state-dir"
- "/state"