简体   繁体   中英

AIR save .h264 video locally

I made an app that saves a video to the users desktop directory, but the encoder I'm using writes flv files. These get to be huge really quickly. At 640x360, a 20 second clip is about 20mb.

I'm using this encoder: http://flasheng.blogspot.com/2011/03/updated-flv-encoder-35x-faster-with.html

The alchemy option is super fast for writing files, but I think that means that it won't work on Macs. Is that right?

Anyway, I'd like to find a way to write compressed video files (to h264 or whatever). I tried running all of the frames through jpg encoding before writing them to the file, but that didn't make a dent in the file size.

I noticed that the NetStream class can save videos as .h264, but it requires them to be streamed to a server, and I need it to save locally.

如果您了解C,则可以制作一个使用x264库对视频进行编码的Actionscript本机扩展

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM