/2014/05/24/Win32--Creating-an-AVI-for-ANIMATE_CLASS/
{"item":{"status":"visible","url":"\/2014\/05\/24\/Win32--Creating-an-AVI-for-ANIMATE_CLASS\/","trash":"","name":"Win32--Creating-an-AVI-for-ANIMATE_CLASS","parent":"","title":"Win32: Creating an AVI for ANIMATE_CLASS","date":"2014-05-24 00:42:13","filepath":"posts\/20140524_Win32--Creating-an-AVI-for-ANIMATE_CLASS.xml.json","type":"post","content":"<p><br \/><img style=\"margin-left: 10px; margin-right: 10px; float: left;\" src=\"http:\/\/www.8bitrobot.com\/media\/uploads\/2012\/01\/gear.png\" alt=\"\" width=\"60\" height=\"64\" \/>I've spent far... far... too much time trying to get an AVI format that will actually work in the <a href=\"http:\/\/code.msdn.microsoft.com\/windowsdesktop\/CppWindowsCommonControls-9ea0de64\">ANIMATE_CLASS<\/a> common control. The usual tools were tried: <a href=\"http:\/\/www.imagemagick.org\/\">ImageMagick<\/a>, <a href=\"http:\/\/ffmpeg.org\/\">ffmpeg<\/a>, and <a href=\"http:\/\/www.mplayerhq.hu\/\">mplayer<\/a>. But, nothing worked.<\/p>\n<p>The windows API wouldn't complain about a bad format. It would just not display the AVI in the window.<\/p>\n<p>So, after some digging, I realized I needed an <a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2009\/04\/18\/9553626.aspx?Redirected=true\">RLE-8 compressed AVI<\/a>. All the other tools would use an unsupported codec or they would produce a raw format codec that wouldn't be viewed in Windows Explorer or play in Windows Media Player.<\/p>\n<p>After a bunch of trial and error, I came across <a href=\"http:\/\/makeavi.sourceforge.net\/\">MakeAVI<\/a>. It's a super simple interface and gives you the choice of RLE compression or uncompressed video.<\/p>\n<p>So, save your time and use <a href=\"http:\/\/makeavi.sourceforge.net\/\">MakeAVI<\/a> when you want to mess around with archaic Win32 animation API's.<\/p>\n<p><strong>Update:<\/strong> Also see <a href=\"http:\/\/www.8bitrobot.com\/2014\/06\/21\/Win32--Revisited---Creating-an-AVI-from-a-GIF-that-works-with-ANIMATE_CLASS\/\">Creating an AVI from a GIF that works with ANIMATE_CLASS<\/a><\/p>"}}