mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
9 lines
396 B
TypeScript
9 lines
396 B
TypeScript
import { transcodeVideo } from './transcode.ts';
|
|
|
|
Deno.test('transcodeVideo', async () => {
|
|
await using file = await Deno.open(new URL('./buckbunny.mp4', import.meta.url));
|
|
const output = transcodeVideo(file.readable);
|
|
|
|
await Deno.mkdir(new URL('./tmp', import.meta.url), { recursive: true });
|
|
await Deno.writeFile(new URL('./tmp/buckbunny-transcoded.mp4', import.meta.url), output);
|
|
});
|