ffmpeg.wasm icon indicating copy to clipboard operation
ffmpeg.wasm copied to clipboard

Using a ReadStream as input

Open Grasscropper opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. I want to be able to cut clips from one or more large videos and concat them (something like a highlight video). To do so I have to copy the whole video to FS and then run ffmpeg on it. I've implemented a version of this nodejs (not a wasm version) and wanted to move towards client side editing. There you could create a readstream and use that as input for ffmpeg. Unfortunately it seems this is not possible in ffmpeg wasm (unless I'm missing something).

Describe the solution you'd like I'd like some way to use a readstream as input for ffmpeg.

Describe alternatives you've considered I'd have to go back to my old implementation or accept load 2Gb+ into memory.

Grasscropper avatar Jul 12 '21 10:07 Grasscropper

I would like to stream input as well. I have very large video files on a backend that I'd like to stream to ffmpeg on the client. Loading the entire video isn't feasible.

altano avatar Nov 14 '21 22:11 altano

Same here. I have large video files (>2gb) that I need to extract the audio as mp3. Using files beyond 2gb keeps the browser crashing, so streams would be the only option I guess.

Any news on this?

Chris1234567899 avatar May 11 '22 19:05 Chris1234567899