通过帧数设置Flash视频的大小?
是否可以在 Flash BUilder 4 中手动设置视频的帧数? Flash Builder 4 中如何确定视频的帧长度?我需要这样做是为了欺骗视频格式转换器,让他们认为我的视频实际上是 x 帧长,而不是只有 1 帧(我的 swf 视频完全通过 as3 代码控制,因此仅驻留在第一帧上)。这样,视频格式转换器将能够自动(并正确)将我的视频转换为另一种格式(需要 flv)。另一种解决方案是一个转换器,它实际上根据视频长度而不是帧数自动转换,但我已经彻底搜索了一个,但似乎不存在。
Is it possible to set the frame count of a video manually in Flash BUilder 4? How is the frame length of a video determined in Flash Builder 4? I need to do this in order to trick video format converters into thinking that my video is actually x frames long instead of just 1 (my swf video is controlled completely through as3 code and thus resided on just the 1st frame). This way, the video format converters will be able to automatically (and correctly) convert my videos to another format (flv is desired). Another solution to this would be a converter that actually automatically converts based on video length rather than frame count, but I have already thoroughly searched for one and one doesn't seem to exist.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不是视频转换方面的专家,但我假设转换器只会在 SWF 帧和视频帧之间进行一对一匹配。向 SWF 添加更多帧只会导致视频在第 1 帧之后出现空帧。
我能想到的最佳解决方案是自行导出帧。您可以将 Flash 中的任何 MovieClip 逐帧绘制到 BitmapData 对象,因此创建一个新应用程序来加载 SWF 并绘制每个帧,然后将其作为 PNG/JPG 保存到本地磁盘。然后,您的 MovieClip 可以调度一个事件来表示视频结束,并且您可以将每个帧保存为单独的文件。之后,您可以使用免费的动画包获取所有帧文件并创建视频。
这听起来像是一项艰巨的工作,但我怀疑您是否会找到任何可以自动完成此操作的软件。
I'm not an expert on video conversion but I'd assume the converter will simply make a one-to-one match between the frames of the SWF and the frames of the video. Adding more frames to your SWF will only result in a video with empty frames after frame 1.
The best solution I can think of is to export the frames yourself. You can draw any MovieClip in flash to a BitmapData object frame-by-frame, so make a new app that loads your SWF and draws each frame before saving it as a PNG/JPG to the local disk. Your MovieClip can then dispatch an event to signal the end of the video and you have each frame saved as a separate file. After that you can use a free animation package to take all of the frame files and create a video.
It sounds like a lot of hard work but I doubt you'll find any software that can do this automatically.