{"id":1531,"date":"2015-01-02T16:43:26","date_gmt":"2015-01-02T16:43:26","guid":{"rendered":"http:\/\/johnjohnston.info\/106\/?p=1531"},"modified":"2015-01-02T16:46:55","modified_gmt":"2015-01-02T16:46:55","slug":"ds106-flickr-daily-creates-pummelvision-style","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/106\/ds106-flickr-daily-creates-pummelvision-style\/","title":{"rendered":"#DS106 Flickr Daily Creates Pummelvision style"},"content":{"rendered":"<div class=\"jetpack-video-wrapper\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/KhoWDTrmwUI?version=3&#038;rel=0&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/div>\n<p>I&#8217;ve been playing around with downloading groups of flickr photos and making very quick videos from them. Just blogged<a href=\"http:\/\/johnjohnston.info\/blog\/flickr-2014-and-diy-pummelvision\/\"> some of the process over on my main blog<\/a>. Being a wee obsessive about this sort of stuff, I&#8217;ve created a script that will download all my photos with a particular tag, say dailycreate, and string them together into a movie.<\/p>\n<p>You need to have the commandline <a href=\"https:\/\/www.ffmpeg.org\/\">ffmpeg<\/a>\u00a0application installed and have <a href=\"https:\/\/www.flickr.com\/services\/apps\/create\/\">created a flickr app<\/a> so that you have an api key. You need to know your flickr id too.<\/p>\n<p>This works for me, copy the code below, replace the bold bits and paste into the terminal. Probably best to run this in a folder. Depending on how many photos you have it cold take a while.<br \/>\n<code>FILELIST=$(curl 'https:\/\/api.flickr.com\/services\/rest\/?method=flickr.photos.search&amp;api_key=<strong>YOUR-FLICKER-APIKEY<\/strong>&amp;user_id=YOUR-<strong>FLICKr_USERNAME<\/strong>&amp;tags=<strong>THE-TAG<\/strong>&amp;extras=url_l&amp;per_page=200&amp;format=rest' | sed -ne 's\/.*\\(http[^\"]*\\).*\/\\1\/p');echo $FILELIST;for i in $FILELIST ; do curl -O $i ; done;a=1;for i in *.jpg; do<br \/>\nnew=$(printf \"%04d.jpg\" \"$a\") #04 pad to length of 4<br \/>\nmv -- \"$i\" \"$new\"<br \/>\nlet a=a+1<br \/>\ndone;sips --resampleHeight 768 *.jpg;sips --padToHeightWidth 786 1024 *.jpg;ffmpeg -f image2 -i %04d.jpg -c:v libx264 -pix_fmt yuv420p firstmov.mp4;ffmpeg -i firstmov.mp4 -filter:v \"setpts=4.0*PTS\" flickr-dailycreate.mp4<\/code><\/p>\n<p>This wee bit:<\/p>\n<p>ffmpeg -i flickr-dailycreate.mp4 -i backgroundloop.mp3 -map 0 -map 1 -codec copy -codec:a aac -strict experimental -b:a 192k -shortest flickr-dailycreate-audio.mp4<\/p>\n<p>would add some audio if there is a\u00a0backgroundloop.mp3 in the same folder.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been playing around with downloading groups of flickr photos and making very quick videos from them. Just blogged some of the process over on my main blog. Being a wee obsessive about this sort of stuff, I&#8217;ve created a script that will download all my photos with a particular tag, say dailycreate, and string &hellip; <a href=\"https:\/\/johnjohnston.info\/106\/ds106-flickr-daily-creates-pummelvision-style\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;#DS106 Flickr Daily Creates Pummelvision style&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[81,91],"tags":[203,55,153,152],"class_list":["post-1531","post","type-post","status-publish","format-standard","hentry","category-dailycreate","category-mashup","tag-dailycreate","tag-flickr","tag-fun","tag-video"],"better_featured_image":null,"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3RLlC-oH","_links":{"self":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts\/1531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/comments?post=1531"}],"version-history":[{"count":6,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts\/1531\/revisions"}],"predecessor-version":[{"id":1537,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/posts\/1531\/revisions\/1537"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/media?parent=1531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/categories?post=1531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/106\/wp-json\/wp\/v2\/tags?post=1531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}