Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

视频分析平台(前后端已生成)

这是一个最小可用的“视频分析平台”脚手架:

  • 后端:Spring Boot 4(Maven)
    • 上传视频(落盘到 storage/)
    • 异步分析任务(可选调用本机 ffprobe/ffmpeg,没有也能运行:会回退到仅输出元数据/哈希)
    • 分析结果入库(H2 文件库:storage/db/)
  • 前端:Vue3 + Vite + TypeScript + Element Plus(目录:web/)
    • 上传、列表、在线播放、触发分析、查看分析 JSON

运行方式

后端(Spring Boot)

  1. 安装 Java 17+(建议 17)。

  2. 启动:

./mvnw spring-boot:run

后端默认端口:8080

可选:安装 ffprobe/ffmpeg(用于更丰富的分析输出)。macOS 可用 Homebrew:

brew install ffmpeg

前端(Vue)

cd web
npm install
npm run dev

前端默认端口:5173。已配置开发代理:前端访问 /api/* 会转发到 http://localhost:8080。


主要接口(后端)

  • 上传:POST /api/videos(multipart,字段名 file)
  • 列表:GET /api/videos
  • 详情:GET /api/videos/{id}
  • 在线播放:GET /api/videos/{id}/file
  • 触发分析:POST /api/videos/{id}/analyze(异步,返回 202)
  • 查询分析结果:GET /api/videos/{id}/analysis

存储目录

  • storage/videos/{id}/original:原始视频文件
  • storage/db/:H2 数据库文件

可在 src/main/resources/application.properties 修改 app.storage.root。

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages