tnfe / FFCreator

A fast video processing library based on node.js (一个基于node.js的高速视频制作库)
http://tnfe.github.io/FFCreator/
MIT License
2.86k stars 407 forks source link

Fixing node/video.js to support transparent mov files #442

Open webtonicAI opened 2 months ago

webtonicAI commented 2 months ago

I had to make a patch to get a transparent mov file to not show the alpha channel as black. In the video.js file I changed:

Line 53 - this.voImageExtra = conf.voImageExtra === undefined ? 'png' : conf.voImageExtra; //jpg to png

Line 318 - let opts = -loglevel info -start_number 0 -vf fps=${fps},format=rgba -qscale:v ${qscale}.split(' '); //added format=rgba

I'd appreciate if you added this fix to the core project.

drawcall commented 2 months ago

Oh, you can submit PR thanks