{"id":911,"date":"2020-12-24T01:36:10","date_gmt":"2020-12-24T06:36:10","guid":{"rendered":"http:\/\/main.jmah.net\/?p=911"},"modified":"2021-05-09T13:02:23","modified_gmt":"2021-05-09T17:02:23","slug":"fade-in-fade-out-using-ffmpeg","status":"publish","type":"post","link":"https:\/\/main.jmah.net\/?p=911","title":{"rendered":"Fade-in \/ Fade-out using FFMPEG"},"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 examples show how you can use FFMPEG to do fade-in fade-out for audio and\/or video.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>ffmpeg -i input.mp4 -vf &#8220;fade=t=in:st=0:d=10,fade=t=out:st=10:d=5&#8221; -c:a copy output.mp4<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The example above applies both fade-in and fade-out effects for video, but not for audio.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>ffmpeg -i input.mp4 -af &#8220;afade=t=in:st=0:d=5&#8221; -c:v copy output.mp4<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The example above applies fade-in effect for audio, but not for video. The parameters are pretty much self explanatory. A combination of different parameters can be used to meet your editing requirements.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following examples show how you can use FFMPEG to do fade-in fade-out for audio and\/or video. ffmpeg -i input.mp4 -vf &#8220;fade=t=in:st=0:d=10,fade=t=out:st=10:d=5&#8221; -c:a copy output.mp4 The example above applies both fade-in and fade-out effects for video, but not for audio. &hellip; <a href=\"https:\/\/main.jmah.net\/?p=911\">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-911","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\/911","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=911"}],"version-history":[{"count":4,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/911\/revisions"}],"predecessor-version":[{"id":915,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/911\/revisions\/915"}],"wp:attachment":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}