Is it possible to create video file from BitmapDatas in Flash?

筅森魡賤 提交于 2020-01-22 02:21:06

问题


Basically I'd like to know if there are any libraries out there that lets me create a video file in the flash runtime. I know such a process would take a lot of resources, but I would still like to know if it was possible?

I would guess it could work like just passing it a bitmapdata for each frame.


回答1:


Try this. Usage:

var myWriter:SimpleFlvWriter = SimpleFlvWriter.getInstance();
myWriter.createFile(myFile, 320,240, 30, 120);
myWriter.saveFrame( myBitmapData1 );
myWriter.saveFrame( myBitmapData2 );
myWriter.saveFrame( myBitmapData3 ); // etc.
myWriter.closeFile();


来源:https://stackoverflow.com/questions/6194278/is-it-possible-to-create-video-file-from-bitmapdatas-in-flash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!