ComputerScienceHouse / ComputerScienceHouse/gallery

Allow Users to Choose (override) Video Thumbnails

未关闭
#33 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

enhancement good first issue
主要语言
Python
星标
22
派生
30
平均合并
2 小时 26 分钟
30 天内合并 PR
1

描述

Right now Gallery selects the video thumbnail automatically by capturing the frame 5% into the duration of the video. While this works in most cases it isn't ideal for every case, and allowing for users to choose their own thumbnail for videos isn't too difficult of a feat. Especially if we still auto-generate a thumbnail on upload, and then give users the ability to select a thumbnail.

Since Gallery uses the HTML5 Video Element this feature can take use of that API. It could be as simple as providing a button on the video playback page that would take the current playback position of the video and then use that frame for the newly generated thumbnail.

On the backend this would probably include downloading the video from S3 and then running the thumbnail generation function. We'll need to change that function so we can plumb the playback position to it somehow, but that can be left up as an implementation detail.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先定位 issue 中描述的视频播放页面、上传流程和缩略图生成函数。跟踪当前 5% 时长处的缩略图是如何创建的,以及视频是如何存储在 S3 中的。完成的标准是用户可以选择当前播放帧作为缩略图,同时上传时的自动缩略图生成仍然正常工作。

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, flask, html, python
领域
backend, cloud, frontend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。