Commit c8f64ad7 authored by Jerome Wu's avatar Jerome Wu

Remove file output in libass.test.js

parent 50aaa854
...@@ -42,7 +42,6 @@ test('transcode avi to x264 mp4 with *.srt subtitle', async () => { ...@@ -42,7 +42,6 @@ test('transcode avi to x264 mp4 with *.srt subtitle', async () => {
test('transcode avi to x264 mp4 with *.ass subtitle', async () => { test('transcode avi to x264 mp4 with *.ass subtitle', async () => {
const args = ['-i', IN_FILE_NAME, '-vf', 'ass=test.ass:fontsdir=/fonts', OUT_FILE_NAME]; const args = ['-i', IN_FILE_NAME, '-vf', 'ass=test.ass:fontsdir=/fonts', OUT_FILE_NAME];
const { fileSize, file } = await runFFmpeg(IN_FILE_NAME, aviData, args, OUT_FILE_NAME, [{ name: '/fonts/arial.ttf', data: b64ToUint8Array(ARIAL_TTF) }, { name: 'test.ass', data: ASS_FILE }], ['/fonts']); const { fileSize } = await runFFmpeg(IN_FILE_NAME, aviData, args, OUT_FILE_NAME, [{ name: '/fonts/arial.ttf', data: b64ToUint8Array(ARIAL_TTF) }, { name: 'test.ass', data: ASS_FILE }], ['/fonts']);
fs.writeFileSync('subtitle.mp4', file);
expect(fileSize).toBe(MP4_WITH_ASS_FILE_SIZE); expect(fileSize).toBe(MP4_WITH_ASS_FILE_SIZE);
}, TIMEOUT); }, TIMEOUT);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment