{"id":6241,"date":"2019-07-29T02:16:04","date_gmt":"2019-07-29T02:16:04","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=6241"},"modified":"2019-07-29T02:16:04","modified_gmt":"2019-07-29T02:16:04","slug":"add-exif-data-to-frames-extracted-from-videos","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/add-exif-data-to-frames-extracted-from-videos\/","title":{"rendered":"Add exif data to frames extracted from videos"},"content":{"rendered":"<p>Create a file that downloads the video, extracts frames, and does the processing:<\/p>\n<pre lang=\"bash\">\nyoutube-dl https:\/\/www.youtube.com\/watch?v=GHrw2tgAACI\nffmpeg -i video.webm images\/thumb%04d.jpg -hide_banner\ndocker run -v $(pwd)\/:\/images --rm garysieling\/exiv2 \/bin\/bash \"\/images\/exif.sh\"\n<\/pre>\n<p>Then in the exif.sh file:<\/p>\n<pre lang=\"bash\">\nPATH=$PATH:\/exiv2\/build\/bin\/\n\nFILES=\/images\/images\/*\nfor f in $FILES\ndo\n  exiv2 -ea- \/images\/image.jpg | exiv2 -ia- $f\ndone\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Extract frames from a video and add exif data<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[207,226],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6241"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=6241"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6241\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=6241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=6241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=6241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}