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

Stdin Support

Open HamptonMakes opened this issue 5 years ago • 5 comments

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.

HamptonMakes avatar Jan 05 '21 13:01 HamptonMakes

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

mbalc avatar Jan 13 '21 16:01 mbalc

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

yaakov123 avatar Feb 08 '21 16:02 yaakov123

same here

tlecoz avatar May 09 '21 15:05 tlecoz

I`m also join to this request

martyniukigor avatar Aug 13 '21 15:08 martyniukigor

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

Bessonov avatar Nov 17 '23 13:11 Bessonov