fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.96k stars 880 forks source link

Want to store video frames to memory #1187

Open Rajdeepc opened 2 years ago

Rajdeepc commented 2 years ago

Hi, Is they any way I can modify the output param to store the frames in memory instead of writing them to files? My use case is to extract the frames from video and transfer them to canvas ctx to porduce an apng.

alexhaha123 commented 2 years ago

also want to know, every time i use filter and output file to disk, then add watermark and create a new ffmpegcommand from disk, this is very cumbersome

tyutjohn commented 10 months ago

this is a example, https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/1144#issuecomment-1895508239

if you want to export to other image formats, you need to find Hex signature (https://en.wikipedia.org/wiki/List_of_file_signatures) and re-divide the memory chunks