{"id":2191,"date":"2011-06-30T00:00:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/johnjohnston.info\/blog\/?e=2191"},"modified":"2011-06-30T00:00:00","modified_gmt":"1970-01-01T00:00:00","slug":"pcastaction-automating-video-editing","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/pcastaction-automating-video-editing\/","title":{"rendered":"pcastaction &#8211; automating video editing"},"content":{"rendered":"\n<p>For the last year or so I&#8217;ve been running (supported by network support officers at every turn) a <a href=\"http:\/\/pod.nleducation.org.uk\/\" title=\"Mac OS X Server\">Podcast Producer server<\/a>. This lets schools in North Lanarkshire publish audio and video very easily indeed.<\/p>\n<p>Recently I&#8217;ve been testing the workflows that let you add, for example, and introduction or credit section automatically after the video is uploaded to the server (examples: <a href=\"http:\/\/pod.nleducation.org.uk\/groups\/podcasts\/weblog\/b6d01\/\">Glow Blogs 3 Posting<\/a> and <a href=\"http:\/\/pod.nleducation.org.uk\/groups\/podcasts\/weblog\/df7dd\/\">Glow Blogs 2 Dashboard and Settings<\/a>)<\/p>\n<p>Podcast Producer does a lot of complicated stuff to do this, and uses some commandline applications in the process. One of these, pcastaction, is included in Mac OS X as well as Mac OS X Server. pcastaction can be used via the terminal to manipulate quicktime movies, it seem to be particularly useful for batch operations.<\/p>\n<p>This evening, on the UK ADE mailing list, someone was asking about adding a logo image to a lot of movies.  I did a couple of quick tests and found this can be done quickly with pcastaction.<\/p>\n<p>Here is a quick set of instructions followed by a screencast. I am only a command line beginner but it is fairly simple stuff.<\/p>\n<p> 1. Create a plain text file (I use TextMate but TextEdit will do the same) containing the following: <\/p>\n<pre style=\"background:#CCC;white-space:normal;\">\n #!\/usr\/bin\/env bash\n\nfor FILE in ~\/Desktop\/movtest\/*; do<br  \/>\n   \/usr\/bin\/pcastaction join --prb=\"\/Users\/johnjohn\/Desktop\/movs\/\" --input1=\"$FILE\" --input2=\"\/Users\/johnjohn\/Desktop\/example.jpg\" --output=\"$FILE\".mov <br  \/> \n\/usr\/bin\/pcastaction flatten --prb=\"\/Users\/johnjohn\/Desktop\/movs\/\" --input=\"$FILE\".mov  --output=\"$FILE\"flat.mov <br  \/>\ndone<\/pre>\n<p>where:<\/p>\n<ul>\n<li>my video files are in a folder <strong>movs<\/strong> on my desktop.<\/li>\n<li>The image UI want to add is <strong>example.jpg<\/strong> on my desktop.<\/li>\n<li>My username on the mac is john<\/li>\n<\/ul>\n<p>2. Save it as brand.sh (make it a plain text file if using textEdit not an rtf one)<br  \/><br \/>\n3. open the terminal<br  \/><br \/>\n4. type cd Desktop and hit return <em>this move you to the Desktop where you can worm on the files<\/em><br  \/><br \/>\n5.type chmod +x brand.sh  and return <em>this make the file executable(able to run)<\/em><br  \/><br \/>\n6. type .\/brand.sh <em>this runs the file<\/em><\/p>\n<p>you will see a lot of stuff speed past in the terminal.<\/p>\n<p>After it finishes look in the movs folder:<br  \/><br \/>\nfor each file.mov that was there originally there will be a file.mov.mov which is a reference movie with the image added at the end and one named file.movflat.mov which is a self-contained quicktime movie and the one you want.<\/p>\n<p>There will also be a folder Contents which you can delete, it was a folder used by pcastaction when working.<\/p>\n<p>Here is a Screencast which may make thing a little clearer.<\/p>\n<p style=\"text-align:center\"><iframe loading=\"lazy\" src=\"https:\/\/player.vimeo.com\/video\/25834798?portrait=0\" width=\"480\" height=\"300\" frameborder=\"0\"><\/iframe><\/p>\n<p>If you are a mac user, and have a lot of repetitive video task to do it might be worth having a wee look at pcastaction.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the last year or so I&#8217;ve been running (supported by network support officers at every turn) a Podcast Producer server. This lets schools in North Lanarkshire publish audio and video very easily indeed. Recently I&#8217;ve been testing the workflows that let you add, for example, and introduction or credit section automatically after the video [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[205,54,84],"post_format":[],"class_list":{"0":"post-2191","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-wwwd","7":"tag-macosx","8":"tag-podcasting","9":"tag-video","10":"kind-","11":"h-entry","12":"hentry"},"better_featured_image":null,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-zl","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=2191"}],"version-history":[{"count":0,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2191\/revisions"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=2191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=2191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=2191"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=2191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}