feat(db): add custom migration to backfill totalFrames and startTimecode

This commit is contained in:
yiling
2026-06-29 11:27:32 +08:00
parent bb65c5a0d3
commit 95f91cd4de
48 changed files with 12450 additions and 26333 deletions
@@ -91,7 +91,7 @@ export async function getMediaInfoActivity(params: {
bitRate: info.bitRate,
frameRate: info.frameRate,
totalFrames: info.totalFrames,
startTimecode: info.startTimecode,
startTimecode: info.startTimecode || '00:00:00:00',
hasAudio: info.hasAudio,
videoCodec: info.videoCodec,
audioCodec: info.audioCodec,
@@ -123,6 +123,8 @@ export async function getMediaInfoActivity(params: {
duration: 0,
bitRate: 0,
frameRate: 0,
totalFrames: 0,
startTimecode: '00:00:00:00',
hasAudio: false,
format: {},
}