{"id":2283,"date":"2007-01-29T15:56:32","date_gmt":"2007-01-29T20:56:32","guid":{"rendered":"https:\/\/www.quirkspace.com\/quirkblog\/?p=1040"},"modified":"2007-01-29T15:56:32","modified_gmt":"2007-01-29T20:56:32","slug":"saving-time-through-scripting","status":"publish","type":"post","link":"https:\/\/www.quirkspace.com\/quirkblog\/?p=2283","title":{"rendered":"Saving time through scripting"},"content":{"rendered":"<p>I&#8217;ve got a heck of a project percolating at work.  Basically, we&#8217;re going to be taking a ton of old surgical education videos that have been digitized and saved in a fairly proprietary WMV format and posting them in a much nicer, Video iPod compatible M4V format.<\/p>\n<p>Fortunately, queueing them up for compression is something that can be done in big batches and left to render overnight.  Unfortunately, re-compressing the video means that all of the tags and comment fields indicating which doctor it is and what surgery they&#8217;re performing are lost and need to be re-entered.  We have it in a database, but copying and pasting back and forth between it and a couple hundred movie files is going to be a huge hassle.<\/p>\n<p>Then I found this <a href=\"http:\/\/use.perl.org\/~ziggy\/journal\/9780\">post<\/a> from a guy who had a similar problem and solved it using PERL script and a well formatted XML file.  I showed it to one of our programmers this morning and he thinks he can cobble together a script that will fix the tags on a couple hundred videos in a few seconds.  I&#8217;ll post it here if it all works out.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve got a heck of a project percolating at work. Basically, we&#8217;re going to be taking a ton of old surgical education videos that have been digitized and saved in a fairly proprietary WMV format and posting them in a &hellip; <a href=\"https:\/\/www.quirkspace.com\/quirkblog\/?p=2283\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[26],"class_list":["post-2283","post","type-post","status-publish","format-standard","hentry","tag-technical-notes"],"_links":{"self":[{"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=\/wp\/v2\/posts\/2283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2283"}],"version-history":[{"count":0,"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=\/wp\/v2\/posts\/2283\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}