feat(v1.4.0): 视频功能 — 目录导入+MP4徽标时长角标+单击弹窗播放+右键视频编辑(加/去水印,加/去字幕声音)+多选图片AI一键生成视频(标题+KEY+音色+画幅,分镜-朗读-字幕-拼接入库)

This commit is contained in:
jinghui committed 2026-11-18 11:59:02 +08:00
1 parent 94ac94436c
commit 5965d33aca
15 files changed
+1501 -14

No files matched your search

+4 -2
View File
@@ -319,8 +319,9 @@ async function processImage(imagePath, libraryPath, db, dryRun = false) {
const actualHeight = thumbnails.height || metadata.height;
// OCR 文字识别(可选:tesseract 失败时返回空字符串,不影响主流程)
// 仅图片做 OCR——视频/文档跑 tesseract 纯属浪费,线上识别还会把文件发给视觉模型
stepStart = Date.now();
const ocrText = await extractText(imagePath);
const ocrText = fileType === 'image' ? await extractText(imagePath) : '';
stepTimes.ocr = Date.now() - stepStart;
const imageData = {
@@ -338,7 +339,8 @@ async function processImage(imagePath, libraryPath, db, dryRun = false) {
thumbnail_path: thumbnails.thumbnail_path,
thumbnail_size: thumbnails.thumbnail_size,
ocr_text: ocrText,
ocr_done: 1 // 新/变化文件已执行过 OCR(extractText 失败返回空串,也算已尝试)
ocr_done: 1, // 新/变化文件已执行过 OCR(extractText 失败返回空串,也算已尝试)
duration: metadata.duration || 0 // 视频时长(秒),图片为 0
};
if (dryRun) {