移除"从素材提取尾帧"功能(上游已实现类似功能)

- 移除 ExtractFrame handler 和路由
- 移除 AssetService 中的 ExtractFrameFromAsset 方法
- 移除 FFmpeg 中的 ExtractFrame 方法
- 移除前端 extractFrame API 和相关 UI

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
empty
2026-01-23 16:27:30 +08:00
parent 72131e3add
commit 56356867ad
6 changed files with 0 additions and 267 deletions

View File

@@ -218,27 +218,3 @@ func (h *AssetHandler) ImportFromVideoGen(c *gin.Context) {
response.Success(c, asset)
}
// ExtractFrame 从视频素材中提取帧
func (h *AssetHandler) ExtractFrame(c *gin.Context) {
assetID, err := strconv.ParseUint(c.Param("id"), 10, 32)
if err != nil {
response.BadRequest(c, "无效的ID")
return
}
var req services.ExtractFrameRequest
if err := c.ShouldBindJSON(&req); err != nil {
response.BadRequest(c, err.Error())
return
}
imageGen, err := h.assetService.ExtractFrameFromAsset(uint(assetID), &req)
if err != nil {
h.log.Errorw("Failed to extract frame", "error", err, "asset_id", assetID)
response.InternalError(c, err.Error())
return
}
response.Success(c, imageGen)
}