mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
9 lines
369 B
TypeScript
9 lines
369 B
TypeScript
import { extractVideoFrame } from './frame.ts';
|
|
|
|
Deno.test('extractVideoFrame', async () => {
|
|
const uri = new URL('./buckbunny.mp4', import.meta.url);
|
|
const result = await extractVideoFrame(uri);
|
|
|
|
await Deno.mkdir(new URL('./tmp', import.meta.url), { recursive: true });
|
|
await Deno.writeFile(new URL('./tmp/buckbunny-poster.jpg', import.meta.url), result);
|
|
});
|