Skip to content

Stdin Support #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
HamptonMakes opened this issue Jan 5, 2021 · 5 comments
Open

Stdin Support #141

HamptonMakes opened this issue Jan 5, 2021 · 5 comments

Comments

@HamptonMakes
Copy link

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
Copy link

mbalc commented Jan 13, 2021

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

@yaakov123
Copy link

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

@tlecoz
Copy link

tlecoz commented May 9, 2021

same here

@martyniukigor
Copy link

martyniukigor commented Aug 13, 2021

I`m also join to this request

@Bessonov
Copy link

This should be closed as duplicate of #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants