Downloading video from SWF

swf

If I am seeing a SWF video in my web browser (sample: http://www.somename.com/swf/x92154) how can I download the video to disk? If I use Save As it is saving .swf, not the video.

Best Answer

Although the URL for the SWF will be in the page source, in most cases this will not help you.

The SWF is usually streaming the video, alternatively it could have the video embedded in it. Most flash swf container have their video encoded as an flv or f4v. The link will explain the various encoding that may be in play (H.263, H264, On2...). The best thing to do is to use a browser plugin like tamper-data, fire-bug, safari's web-inspector resources, or a proxy to watch all the requests made while it is running the SWF. FLVs are often streamed over plain HTTP, and can therefore, once you find the url with the aforementioned inspection, be downloaded simply. They can be played back with an FLV player (there's a couple, most are iffy), or in a container built with flash, or Adobe Air. You probably want to convert them, which is trickier, but there's some ffmpeg guides with parameters to be found online. In the rare case that the SWF contains the video embedded in itself, you can use a tool to extract it, oddly enough some versions of ffmpeg do this.

Related Question