开发者

Convert Snapshot sequence to flv as3

I am开发者_运维百科 taking a serie of shapshot in Flex using :

var imageSnap:ImageSnapshot =  ImageSnapshot.captureImage(VisuModel.getInstance().mainApiContainer.mp);
var imageByteArray:ByteArray = imageSnap.data as ByteArray;

I would like to convert this sequence to a flash video file. How can I achieve that using Red5 ?

All the best to ActionScript & Java developers !


I used to following workflow : 1 - Capture my screen in AS3

//this is just a constant
var snapshotDpi:Number=VisuModel.getInstance().snapshotDpi;
// Capture and convert to base64
var imageSnap:ImageSnapshot=
ImageSnapshot.captureImage(VisuModel.getInstance().mainApiContainer.mp,snapshotDpi);
var con:String=ImageSnapshot.encodeImageAsBase64(imageSnap)
// Save to img using amfphp
VisuModel.getInstance().gateway.call( "visumars.NewServices.SaveAsJPEG",
            new Responder(onResult_writeScript, onFault),con,imageName.getImageName())

2 - I then use mmpeg to save my jpeg sequence as flv

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜