{"id":836,"date":"2019-03-30T14:31:35","date_gmt":"2019-03-30T18:31:35","guid":{"rendered":"http:\/\/main.jmah.net\/?p=836"},"modified":"2021-05-09T13:26:51","modified_gmt":"2021-05-09T17:26:51","slug":"crop-a-video","status":"publish","type":"post","link":"https:\/\/main.jmah.net\/?p=836","title":{"rendered":"Crop a Video"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"168\" src=\"http:\/\/main.jmah.net\/wp-content\/uploads\/2017\/01\/ffmpeg-e1484897077295.jpg\" alt=\"\" class=\"wp-image-714\"\/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The following example shows how you can use FFMPEG to crop a video without re-encoding.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>ffmpeg -i input.mp4 -filter:v &#8220;crop=1280:200:0:500&#8221; -c:a copy output.mp4<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">where 1280 and 200 are the output size (width and height) of the cropped video, 0 and 500 are positions where the cropping will start.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following example shows how you can use FFMPEG to crop a video without re-encoding. ffmpeg -i input.mp4 -filter:v &#8220;crop=1280:200:0:500&#8221; -c:a copy output.mp4 where 1280 and 200 are the output size (width and height) of the cropped video, 0 and &hellip; <a href=\"https:\/\/main.jmah.net\/?p=836\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/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-836","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\/836","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=836"}],"version-history":[{"count":1,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/836\/revisions"}],"predecessor-version":[{"id":837,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/836\/revisions\/837"}],"wp:attachment":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}