{"id":74,"date":"2006-01-07T14:35:10","date_gmt":"2006-01-07T21:35:10","guid":{"rendered":"http:\/\/outflux.net\/blog\/?p=74"},"modified":"2015-05-05T17:28:45","modified_gmt":"2015-05-06T01:28:45","slug":"cheap-auto-rotoscoping","status":"publish","type":"post","link":"https:\/\/outflux.net\/blog\/archives\/2006\/01\/07\/cheap-auto-rotoscoping\/","title":{"rendered":"cheap auto-rotoscoping"},"content":{"rendered":"<p>In the back of my head, I&#8217;ve been wondering about various ways I could use my <a href=\"\/blog\/archives\/2005\/08\/28\/cvs-camcorder\/\">$20 camcorder<\/a>.  Making cheap movie shorts, like SNL&#8217;s &#8220;<a href=\"http:\/\/www.youtube.com\/watch.php?v=IggTu7kV7No\">Lazy Sunday<\/a>&#8221; come to mind.  There are no fancy zooms or special effects.  It&#8217;s all editing and audio.  <a href=\"http:\/\/www.bryceharrington.org\/blosxom.cgi\">Bryce<\/a> kicked some ideas my way, most of which include using the dogs and\/or cats as the primary actors (I can pay them in kibble).  He also suggested renewing my father&#8217;s <a href=\"http:\/\/jnocook.net\/cameras\/scary.htm\">Rottweiler Camcorder<\/a> with a much smaller device.  I think the images would be mostly obscured by my dog&#8217;s chin.  We&#8217;ll see.  I also worry it may suffer from being summarily ingested.<\/p>\n<p>While playing <a href=\"http:\/\/www.boardgames.com\/nathtudvdga8.html\">Name that Tune <em>80s DVD Edition<\/em><\/a>, the a-ha video for &#8220;<a href=\"http:\/\/en.wikipedia.org\/wiki\/Take_On_Me\">Take On Me<\/a>&#8221; came on.  The rotoscoping used to create the animated parts made me think of <a href=\"http:\/\/inkscape.org\/\">Inkscape<\/a>&#8216;s autotracing function, and I lept up to go investigate the possibilities.<\/p>\n<p>So far, I&#8217;ve played with two styles.  One leaves the autotraced fill areas (which makes a video look like a really freaky cartoon), and one that reduces the fill opacity, and adds line density so it looks more like a regular outlined cartoon.  That one tends to be distracting, though, since the edges keep jumping all over the place.<\/p>\n<p>The <a href=\"\/videos\/roto-example\/script.sh\">autorotoscope script<\/a> requires <a href=\"http:\/\/www.mplayerhq.hu\/\">mplayer<\/a>, <a href=\"http:\/\/www.imagemagick.org\/\">ImageMagick<\/a>, <a href=\"http:\/\/autotrace.sourceforge.net\/\">autotrace<\/a>, and <a href=\"http:\/\/ffmpeg.sourceforge.net\/\">ffmpeg<\/a>.<\/p>\n<p>Here are the results:<\/p>\n<ul>\n<li><a href=\"\/videos\/roto-example\/original.avi\">Original<\/a> (364KB) <img decoding=\"async\" src=\"\/videos\/roto-example\/00000100.png\" alt=\"original frame 100\" \/><\/li>\n<li><a href=\"\/videos\/roto-example\/filled.avi\">Filled<\/a> (478KB) <img decoding=\"async\" src=\"\/videos\/roto-example\/00000100.png.svg.png\" alt=\"filled frame 100\" \/><\/li>\n<li><a href=\"\/videos\/roto-example\/outlined.avi\">Outlined<\/a> (495KB) <img decoding=\"async\" src=\"\/videos\/roto-example\/00000100.png.outline.svg.png\" alt=\"outlined frame 100\" \/><\/li>\n<\/ul>\n<p>These AVIs use xvid for their video codec.  If you don&#8217;t already have it, you can get them from <a href=\"http:\/\/www.xvidmovies.com\/codec\/\">here<\/a>.<\/p>\n<p style='text-align:left'>&copy; 2006 &#8211; 2015, <a href=\"https:\/\/outflux.net\/blog\/\">Kees Cook<\/a>. This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\">Creative Commons Attribution-ShareAlike 4.0 License<\/a>.<br \/><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><img decoding=\"async\" alt=\"CC BY-SA 4.0\" style=\"border-width:0\" src=\"https:\/\/i.creativecommons.org\/l\/by-sa\/4.0\/88x31.png\" \/><\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the back of my head, I&#8217;ve been wondering about various ways I could use my $20 camcorder. Making cheap movie shorts, like SNL&#8217;s &#8220;Lazy Sunday&#8221; come to mind. There are no fancy zooms or special effects. It&#8217;s all editing and audio. Bryce kicked some ideas my way, most of which include using the dogs [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/74"}],"collection":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":1,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":797,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions\/797"}],"wp:attachment":[{"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/outflux.net\/blog\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}