FFMPEG zoompan filter cut short my video and slowed it down












0














I am using FFMPEG (version 4.0.2) to zoompan my video. My code is as below



ffmpeg -y -i input.mp4 -loop 1 -i overlay.png -ss 0 -t 10 -filter_complex "[0:v]scale=iw+iw:ih+ih, zoompan=z='if(lte(pzoom,1.0),1.6,max(1.001,pzoom-0.004))':d=1:x='iw/2-(iw/zoom/2)':y='0':s=720x720, setsar=1 [v0];[1:v]crop=720:720,fade=t=in:st=0:d=1,fade=t=out:st=3:d=1[v1];[v0][v1] overlay [v]" -map "[v]" -f mp4 -preset ultrafast -y output.mp4


Essentially, what this code should do is slowly pan out from the center of my video, with a logo (overlay.png) fading in and out.



This input.mp4 is 10 seconds. With the above code, the final video duration is 10 seconds still. But its not the full footage, it is cut short and compensated with slow motion to make it 10 seconds still...



I need the final video to not be cut off at all. It should be the full footage and no slow motion effect.



Anyone has any ideas what I am doing wrong?



Thanks in advance!










share|improve this question



























    0














    I am using FFMPEG (version 4.0.2) to zoompan my video. My code is as below



    ffmpeg -y -i input.mp4 -loop 1 -i overlay.png -ss 0 -t 10 -filter_complex "[0:v]scale=iw+iw:ih+ih, zoompan=z='if(lte(pzoom,1.0),1.6,max(1.001,pzoom-0.004))':d=1:x='iw/2-(iw/zoom/2)':y='0':s=720x720, setsar=1 [v0];[1:v]crop=720:720,fade=t=in:st=0:d=1,fade=t=out:st=3:d=1[v1];[v0][v1] overlay [v]" -map "[v]" -f mp4 -preset ultrafast -y output.mp4


    Essentially, what this code should do is slowly pan out from the center of my video, with a logo (overlay.png) fading in and out.



    This input.mp4 is 10 seconds. With the above code, the final video duration is 10 seconds still. But its not the full footage, it is cut short and compensated with slow motion to make it 10 seconds still...



    I need the final video to not be cut off at all. It should be the full footage and no slow motion effect.



    Anyone has any ideas what I am doing wrong?



    Thanks in advance!










    share|improve this question

























      0












      0








      0







      I am using FFMPEG (version 4.0.2) to zoompan my video. My code is as below



      ffmpeg -y -i input.mp4 -loop 1 -i overlay.png -ss 0 -t 10 -filter_complex "[0:v]scale=iw+iw:ih+ih, zoompan=z='if(lte(pzoom,1.0),1.6,max(1.001,pzoom-0.004))':d=1:x='iw/2-(iw/zoom/2)':y='0':s=720x720, setsar=1 [v0];[1:v]crop=720:720,fade=t=in:st=0:d=1,fade=t=out:st=3:d=1[v1];[v0][v1] overlay [v]" -map "[v]" -f mp4 -preset ultrafast -y output.mp4


      Essentially, what this code should do is slowly pan out from the center of my video, with a logo (overlay.png) fading in and out.



      This input.mp4 is 10 seconds. With the above code, the final video duration is 10 seconds still. But its not the full footage, it is cut short and compensated with slow motion to make it 10 seconds still...



      I need the final video to not be cut off at all. It should be the full footage and no slow motion effect.



      Anyone has any ideas what I am doing wrong?



      Thanks in advance!










      share|improve this question













      I am using FFMPEG (version 4.0.2) to zoompan my video. My code is as below



      ffmpeg -y -i input.mp4 -loop 1 -i overlay.png -ss 0 -t 10 -filter_complex "[0:v]scale=iw+iw:ih+ih, zoompan=z='if(lte(pzoom,1.0),1.6,max(1.001,pzoom-0.004))':d=1:x='iw/2-(iw/zoom/2)':y='0':s=720x720, setsar=1 [v0];[1:v]crop=720:720,fade=t=in:st=0:d=1,fade=t=out:st=3:d=1[v1];[v0][v1] overlay [v]" -map "[v]" -f mp4 -preset ultrafast -y output.mp4


      Essentially, what this code should do is slowly pan out from the center of my video, with a logo (overlay.png) fading in and out.



      This input.mp4 is 10 seconds. With the above code, the final video duration is 10 seconds still. But its not the full footage, it is cut short and compensated with slow motion to make it 10 seconds still...



      I need the final video to not be cut off at all. It should be the full footage and no slow motion effect.



      Anyone has any ideas what I am doing wrong?



      Thanks in advance!







      ffmpeg






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 9 '18 at 13:38









      user971361

      11




      11



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382089%2fffmpeg-zoompan-filter-cut-short-my-video-and-slowed-it-down%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382089%2fffmpeg-zoompan-filter-cut-short-my-video-and-slowed-it-down%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

          How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...