ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
14.09k stars 826 forks source link

Stdin Support #141

Open HamptonMakes opened 3 years ago

HamptonMakes commented 3 years ago

Ideally, I'd like to be able to use ffmpeg.wasm with the MediaRecorder API, which supplies "chunks" of video. Currently, I use this API in conjunction with ffmpeg via a node child_process and using the stdin pipe to "feed" data to ffmpeg while it's running.

I'd love to be able to do something like the following:

let instance = ffmpeg.start('-i - -f hls -hls_time 2 -hls_playlist_type event stream.m3u8');
instance.stdin.write(new Uint8Array(arrayBuffer));

Currently doing something similar in a node environment, but would love to give WASM a try instead of needing an Electron app.

mbalc commented 3 years ago

I'm in the same situation - is there possibly any way to do this that I missed?

yaakov123 commented 3 years ago

It doesn't seem like @jeromewu is planning on implementing stdin support as mention in #58 .

tlecoz commented 3 years ago

same here

martyniukigor commented 3 years ago

I`m also join to this request

Bessonov commented 10 months ago

This should be closed as duplicate of https://github.com/ffmpegwasm/ffmpeg.wasm/issues/58