{"id":6238,"date":"2019-07-29T02:07:11","date_gmt":"2019-07-29T02:07:11","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=6238"},"modified":"2019-07-29T02:07:11","modified_gmt":"2019-07-29T02:07:11","slug":"get-frames-from-a-video-with-ffmpeg","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/get-frames-from-a-video-with-ffmpeg\/","title":{"rendered":"Get frames from a video with ffmpeg"},"content":{"rendered":"<p>Extract the frame rate<sup><a href=\"#footnote_0_6238\" id=\"identifier_0_6238\" class=\"footnote-link footnote-identifier-link\" title=\"https:\/\/askubuntu.com\/questions\/110264\/how-to-find-frames-per-second-of-any-video-file\">1<\/a><\/sup>: <\/p>\n<pre lang=\"bash\">\nffmpeg -i *.webm 2>&1 | sed -n \"s\/.*, \\(.*\\) fp.*\/\\1\/p\"\n<\/pre>\n<pre>\n29.84\n<\/pre>\n<p>This should tell you how many frames you&#8217;ll get.<\/p>\n<p>Extract the frames:<\/p>\n<pre>\nffmpeg -i video.webm thumb%04d.jpg -hide_banner\n<\/pre>\n<ol class=\"footnotes\"><li id=\"footnote_0_6238\" class=\"footnote\">https:\/\/askubuntu.com\/questions\/110264\/how-to-find-frames-per-second-of-any-video-file<span class=\"footnote-back-link-wrapper\"> [<a href=\"#identifier_0_6238\" class=\"footnote-link footnote-back-link\">&#8617;<\/a>]<\/span><\/li><\/ol>","protected":false},"excerpt":{"rendered":"<p>ffmpeg examples<\/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":[226],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6238"}],"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=6238"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6238\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=6238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=6238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=6238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}