feat: generate video
This commit is contained in:
@@ -25,6 +25,7 @@ const mimeToExtensionMap: Record<string, string> = {
|
||||
'image/jpg': 'jpg',
|
||||
'image/webp': 'webp',
|
||||
'image/bmp': 'bmp',
|
||||
'image/avif': 'avif',
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -32,7 +32,8 @@ export async function compressPics(hostname: string, startTime: Date, endTime: D
|
||||
|
||||
const vBuffer = await compressImagesToAv1Video(picBuffers)
|
||||
|
||||
storeFile(vBuffer, 'test.mp4', 'video/mp4', 'other', hostname)
|
||||
return vBuffer
|
||||
// storeFile(vBuffer, 'test.mp4', 'video/mp4', 'other', hostname)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user