开发者

Get the raw video and audio dump from a SWF video

开发者 https://www.devze.com 2023-02-15 08:57 出处:网络
I have a SWF movie (only animation, no Actionscript) and I would like to programatically extract the resulting video and audio and whatever resolution.

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:

  1. extract rendered frames with swfrender
  2. combine frames into a video with FFmpeg
  3. extract audio with swfextract
  4. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消