ditto/packages/transcode/transcode.test.ts
2025-02-27 21:22:19 -06:00

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);
});