{"id":428,"date":"2014-12-13T17:50:31","date_gmt":"2014-12-13T15:50:31","guid":{"rendered":"http:\/\/www.bashpi.org\/?page_id=428"},"modified":"2020-12-03T17:20:08","modified_gmt":"2020-12-03T15:20:08","slug":"mencoder","status":"publish","type":"page","link":"https:\/\/www.bashpi.org\/?page_id=428","title":{"rendered":"mencoder"},"content":{"rendered":"<p>Make sure you have mencoder package installed first.&nbsp; Changing framerate or splitting the video needs more I\/O speed than CPU, so instead of using multiple cores (trough mencoder options), make sure that you have fast disks for reading and writing.<\/p>\n<p>Change video frame rate without re-encoding. This example changes frame rate to 18fps. If your video has sound, you should use <em>-nosound<\/em> option or specify audio encoder using <em>-oac<\/em> option.<\/p>\n<pre><code class=\"language-bash\">mencoder -fps 18 -ovc copy inputvideofile.avi -o outputvideofile_18fps.avi\n<\/code><\/pre>\n<p>Splitting video without re-encoding. This example copies first 9 minutes of video to outputfile.<\/p>\n<pre><code class=\"language-bash\">mencoder -oac copy -ovc copy -endpos 09:00 inputfile.avi -o outputfile.avi\n<\/code><\/pre>\n<p>Splitting video without re-encoding. This example skips first 9 minutes (seeks into position 09:01) and then copies minute and a half of video to outputfile.<\/p>\n<pre><code class=\"language-bash\">mencoder -oac copy -ovc copy -ss 09:01 -endpos 01:30 inputfile.avi -o outputfile.avi\n<\/code><\/pre>\n<p>Splitting video without re-encoding. This example skips first 15 minutes and then copies rest of the video to outputfile.<\/p>\n<pre><code class=\"language-bash\">mencoder -oac copy -ovc copy -ss 15:00 inputfile.avi -o outputfile.avi\n<\/code><\/pre>\n<p>If you found this useful, say thanks, click on some banners or <a href=\"http:\/\/www.bashpi.org\/?page_id=105\">donate<\/a>, I can always use some beer money.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Make sure you have mencoder package installed first.&nbsp; Changing framerate or splitting the video needs more I\/O speed than CPU, so instead of using multiple cores (trough mencoder options), make sure that you have fast disks for reading and writing. Change video frame rate without re-encoding. This example changes frame rate to 18fps. If your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":397,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-428","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/pages\/428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bashpi.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=428"}],"version-history":[{"count":4,"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/pages\/428\/revisions"}],"predecessor-version":[{"id":747,"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/pages\/428\/revisions\/747"}],"up":[{"embeddable":true,"href":"https:\/\/www.bashpi.org\/index.php?rest_route=\/wp\/v2\/pages\/397"}],"wp:attachment":[{"href":"https:\/\/www.bashpi.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}