ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Get output as File object from ffmpeg.FS

Open
#164 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
17.8k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
I want to input this into a JS library/plugin that only accepts File objects. Is there a way to do this? Currently I figured I can do it through this inefficient way:

```
const data = ffmpeg.FS('readFile', 'output.mp4');
var files = [new File(data, "output2.mp4")];
```

**Describe the solution you'd like**
Essentially get a File object directly.

**Describe alternatives you've considered**
Already mentioned above:
```
const data = ffmpeg.FS('readFile', 'output.mp4');
var files = [new File(data, "output2.mp4")];
```

**Additional context**
No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.