I have a SWF movie (only animation, no Actionscript) and I would like to programatically extract the resulting video and audio and whatever resolution.
What me开发者_JAVA技巧thod would be the best way of going about this. Any language, any technique is accepted.
Check out SWFTools. It has the building blocks that should let you complete such a task, although I've not done it myself. swfrender and swfextract specifically should be of interest. I could see it working like this:
- extract rendered frames with swfrender
- combine frames into a video with FFmpeg
- extract audio with swfextract
- mux audio and video into a single result
Running gnash
to dump each frame to a file and then running gnash again to dump all audio to a file worked for my purpose. Check the man pages for more details.
However, it won't work very everyone because gnash doesn't work very well on windows and doesn't handle newer flash stuff very well.
精彩评论