使用 Melt 将 SWF 编码为视频
我正在做一个项目,需要在服务器端将 SWF
电影转换为 H.264
视频,以便能够在 Flash 播放器和 iPhone/iPad 上播放它们。我真的被困住了。
我正在使用 http://www.mltframework.org/ 中的 Melt,这是我的命令行:
melt movie.swf -consumer avformat:video.mp4 r=30 s=640x360 f=mp4 acodec=aac ab=128k ar=48000 vcodec=libx264 b=1000k an=1
它可以在 Flash 播放器中播放,但无法在 iDevices 上播放。我在 google 上搜索了 iPhone 视频要求,看来我的视频文件确实满足这些要求(帧大小、帧速率和比特率)。我应该更改哪些设置才能使其播放?
I'm doing a project which requires converting SWF
movies to H.264
video on server-side, to be able to play them both in Flash player and on iPhone/iPad. And I really got stuck.
I'm using Melt from http://www.mltframework.org/ and this is my command-line:
melt movie.swf -consumer avformat:video.mp4 r=30 s=640x360 f=mp4 acodec=aac ab=128k ar=48000 vcodec=libx264 b=1000k an=1
It does play in Flash player, but fails to play on iDevices. I googled for iPhone video requirements and it seems my video files do satisfy them(frame size, framerate and bitrate). What settings should I change to make it play?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在谷歌上花了很多时间,但设法收集了所有的信息,所以这些是适用于 iPhone 的参数:
另外,我使用 faac -w 将音频转换为适当的格式,并使用>MP4Box 连接视频和声音。
I've spent a lot of time in google but managed to gather all the pieces, so these are parameters that work for iPhone:
Also, I use
faac -w
to convert audio to appropriate format andMP4Box
to join video and sound.