Streampunk / beamcoder

Node.js native bindings to FFmpeg.
GNU General Public License v3.0
397 stars 76 forks source link

-re equivalent in beamcoder #55

Closed felicemarra closed 3 years ago

felicemarra commented 3 years ago

In FFMPEG I use -re parameter to read in real time a mp4 file, extract frame and play in un my system Something like this

ffmpeg -re -i http://example.com/video,mp4 -ar 48000 -ac 1 -f f32le -c:a pcm_f32le pipe:0 -map 0:v:0 -pix_fmt rgb0 -f rawvideo -vcodec rawvideo -r 30 pipe:1

How can I do the same with Beamcoder? Without this parameters, libav read as fast as it can the file but I cant' store the converted rawvideo in a buffer beacuse it's too big.. I need to read frame by frame in real time.. is it possible?

felicemarra commented 3 years ago

Sorry.. "-re" is a emulation of ffmpeg not libav. Ignore this issue