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