{"id":792,"date":"2018-05-13T23:07:14","date_gmt":"2018-05-14T03:07:14","guid":{"rendered":"http:\/\/main.jmah.net\/?p=792"},"modified":"2021-05-09T13:27:56","modified_gmt":"2021-05-09T17:27:56","slug":"changing-the-resolution-of-a-video-using-ffmpeg","status":"publish","type":"post","link":"https:\/\/main.jmah.net\/?p=792","title":{"rendered":"Changing resolution of a video using FFMPEG"},"content":{"rendered":"<p><a href=\"http:\/\/main.jmah.net\/?attachment_id=714\" rel=\"attachment wp-att-714\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-714\" src=\"http:\/\/main.jmah.net\/wp-content\/uploads\/2017\/01\/ffmpeg-e1484897077295.jpg\" alt=\"\" width=\"300\" height=\"168\" \/><\/a>Very often you would like to change the not-so-standard resolution of a video to some more common formats, e.g. 4:3 or 16:9. You can try using the following FFMPEG command to achieve this.<\/p>\n<p><strong>ffmpeg -i video_1920.mp4 -vf scale=640:480,setdar=4:3 video_640x480.mp4 -hide_banner<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Very often you would like to change the not-so-standard resolution of a video to some more common formats, e.g. 4:3 or 16:9. You can try using the following FFMPEG command to achieve this. ffmpeg -i video_1920.mp4 -vf scale=640:480,setdar=4:3 video_640x480.mp4 -hide_banner<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,7],"tags":[],"class_list":["post-792","post","type-post","status-publish","format-standard","hentry","category-ffmpeg","category-research-information-technology"],"_links":{"self":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=792"}],"version-history":[{"count":4,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/792\/revisions"}],"predecessor-version":[{"id":796,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/792\/revisions\/796"}],"wp:attachment":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}