
{"id":370,"date":"2007-12-24T18:40:08","date_gmt":"2007-12-24T17:40:08","guid":{"rendered":"http:\/\/www.matthijskamstra.nl\/blog\/index.php\/2007\/12\/24\/convert-swf-to-avi-part2\/"},"modified":"2007-12-24T17:16:04","modified_gmt":"2007-12-24T16:16:04","slug":"convert-swf-to-avi-part2","status":"publish","type":"post","link":"https:\/\/www.matthijskamstra.nl\/blog\/2007\/12\/24\/convert-swf-to-avi-part2\/","title":{"rendered":"Convert SWF to AVI &#8211; part2"},"content":{"rendered":"<p>How to convert a SWF to an AVI (without spending any cash)? I have written about this question before [<a href=\"http:\/\/www.matthijskamstra.nl\/blog\/index.php\/2006\/05\/12\/convert-swf-to-avi-swf2avi-or-swftoavi\/\">Covert SWF to AVI (SWF2AVI or SWFtoAVI)<\/a>] and my answer was back then: <a href=\"http:\/\/www.pizzinini.net\/projects\/swf2avi\/\">swf2avi<\/a>, a freeware project by Mario Pizzinini.<br \/>\nSWF2AVI is not an active project (last update from 2002-08-27), but does the job very well.<br \/>\nI&#8217;ve used it a couple of times, and when you know who this program works, you get the result you need.<\/p>\n<p>Back then I didn&#8217;t have an alternative, but I do now! <\/p>\n<p>And the alternative, in my opinion, is better and more user friendly: <a href=\"http:\/\/www.avi-swf-convert.com\/\">http:\/\/www.avi-swf-convert.com\/<\/a><br \/>\n<a href=\"http:\/\/www.avi-swf-convert.com\/gfx\/swf-avi-convert-screenshot.gif\" rel=\"flashbox\" title=\"Screenshot swf avi convert\"><img decoding=\"async\" src=\"http:\/\/www.avi-swf-convert.com\/gfx\/swf-avi-convert-small-screenshot.gif\" alt=\"swf avi convert screenshot\" \/><\/a><\/p>\n<h3>SWF>>AVI<\/h3>\n<p>is a more recent project (the last update is from 2005-07-20), and does the same thing as swf2avi but has some extra very handy features:<\/p>\n<ul>\n<li>Drag and drop files in the converter<\/li>\n<li>Play the file in a small popup<\/li>\n<li>Select an output folder<\/li>\n<li>Set output frame rate<\/li>\n<li>Batch Convert: convert more then one SWF to AVI<\/li>\n<li>Profiles: you can create custom conversion profiles whereto the SWF can be exported (captures size, output size, frame rate and rotation)<\/li>\n<\/ul>\n<p><strong>But it doesn&#8217;t convert sound and interactive animations may not be properly converted<\/strong><\/p>\n<p>It&#8217;s an freeware program, which does what it says: it converts SWF to (uncompressed) AVI. So if you need a compressed version of your animation you need another program to do that (something to write about in another post). SWF>>AVI is a Windows program which needs Microsoft .Net Framework (it will be automatically downloaded and installed if required).<\/p>\n<p>The same rules (code) apply to SWF>>AVI as it did with SWF2AVI<br \/>\nIt&#8217;s smart to use frame based animation, although it seems that SWF>>AVI is faster in grabbing the images, so timebased animation is can be an option if you don&#8217;t care for an exact export.<br \/>\nOtherwise use the code posted here for you convenience:<\/p>\n<p><!--more--><br \/>\nThe only thing you have to remember that your script should be based upon frame-rate (fps) and not on time (milli-seconds).<br \/>\nThe next examples are based on a FLA with framerate of 25 fps, there is a movieClip with the name <code>ball_mc<\/code> in the root and a dynamic text field named <code>time_txt<\/code> also in the root.<\/p>\n<p><strong>Example 1:<\/strong><\/p>\n<div class=\"showcode\">\n<pre>import mx.transitions.Tween;\r\n\/*\r\n\/\/ this code doesn't work (very well) because it is based on time (seconds)\r\nvar myTween:Tween = new Tween (this.ball_mc, '_x', mx.transitions.easing.Elastic.easeOut, 0, 300, 5, true);\r\n*\/\r\n\/\/ this code will work: it's based on frames\r\nvar myTween:Tween = new Tween (this.ball_mc, '_x', mx.transitions.easing.Elastic.easeOut, 0, 300, (5 * 25), false);\r\n<\/pre>\n<\/div>\n<p><strong>Example 2:<\/strong><\/p>\n<pre><code>\/*\r\n\/\/ timebased: doesn't work\r\nthis.onEnterFrame = function () {\r\n\tthis.time_txt.text = (getTimer ()\/1000) +  \" sec.\";\r\n};\r\n*\/ \r\n\/\/ based on framerate\r\nthis.onEnterFrame = function () {\r\n\tthis.time_txt.text = (_root._currentframe \/ 25) + \" sec.\";\r\n};\r\n<\/code><\/pre>\n<p>more information about mx.transitions: <a target=\"_blank\" href=\"http:\/\/livedocs.macromedia.com\/flash\/8\/main\/wwhelp\/wwhimpl\/common\/html\/wwhelp.htm?context=LiveDocs_Parts&#038;file=00004143.html\">macromedia<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to convert a SWF to an AVI (without spending any cash)? I have written about this question before [Covert SWF to AVI (SWF2AVI or SWFtoAVI)] and my answer was back then: swf2avi, a freeware project by Mario Pizzinini. SWF2AVI is not an active project (last update from 2002-08-27), but does the job very well. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,3,6,12],"tags":[407,74,41,53,73,72],"class_list":["post-370","post","type-post","status-publish","format-standard","hentry","category-animation","category-flash","category-open-source-freeware","category-tools-of-the-trade","tag-animation","tag-frame-by-frame","tag-freeware","tag-swf-to-avi","tag-swf2avi","tag-video"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/comments?post=370"}],"version-history":[{"count":0,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/370\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/media?parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/categories?post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/tags?post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}