运行时高压缩的 AS3 视频编码 (H.264?) [英] AS3 Video Encoding at runtime with high compression (H.264?)

查看:35
本文介绍了运行时高压缩的 AS3 视频编码 (H.264?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在运行时将 AS3 中的视频图像数据(比如显示对象)压缩为具有高压缩率的字节数组.帧率只需要在 5 左右,但 1024x768 视频需要转到 <每秒 40 千字节,质量不会太差.我编写了一个自定义编码器,并在 1024*768 的情况下将其提高到每秒 80-100 千字节左右,这仍然太多了,而且我没有看到对我的编码器发狂的很多改进.

I need to compress video image data (lets say a display object) in AS3 to a Byte Array with high compression at runtime. Framerate only needs to be around 5 but 1024x768 video needs to go to < 40 Kilobyte per Second without the quality beeing tooo bad. I wrote a custom encoder and got it to around 80-100 Kilobyte per Second for 1024*768 which still is too much and i dont see a lot of improvements to be mad to my encoder.

使用 JPG 或 PNG 编码器会获得更高的 KB/s.是否有任何开源方法可以在运行时对 as3 中的视频进行解码和编码?例如.H.264 as3 编码器和解码器?或其他编解码器?

Using JPG or PNG Encoder gives way higher KB/s. Is there any open source way to to decode and encode video in as3 at runtime ? E.g. a H.264 as3 encoder and decoder ? Or other codecs ?

或者可能是 h.264 编码器和解码器的 C# 源代码?我想我可以将它移植到 as3 ...

Or maybe a C# source code of h.264 encoder and decoder ? I think i could port it to as3...

不需要是 h.264,只需在以 5 帧/秒和 40 KB 运行时质量好的东西...

Doesnt need to be h.264, just something with good quality when running at 5 Frames/Sec and 40 Kilobyte...

推荐答案

Flash Player 11(测试版)) 具有 H.264 编码:

H.264/AVC SW 编码 — 使用 H.264 视频在本地编码更高质量的视频.

H.264/AVC SW Encoding — Encode higher quality video locally using H.264 video.

Flash Player 11 不再是测试版

Flash Player 11 is no longer beta

这篇关于运行时高压缩的 AS3 视频编码 (H.264?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆