forcing ffmpeg to drop audio at same rate it drops videoChange the frame rate of an MP4 video with...

Is there a way to not have to poll the UART of an AVR?

Why is the "Domain users" group missing from this Powershell AD Query?

Subsurf on a crown. How can I smooth some edges and keep others sharp?

Do authors have to be politically correct in article-writing?

Why is 'diphthong' pronounced the way it is?

Why avoid shared user accounts?

I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."

How do you funnel food off a cutting board?

What is a good reason for every spaceship to carry a weapon on board?

Renting a 2CV in France

If angels and devils are the same species, why would their mortal offspring appear physically different?

Stuck on a Geometry Puzzle

Potential client has a problematic employee I can't work with

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

Does a paladin have to announce that they're using Divine Smite before attacking?

Why is it that Bernie Sanders is always called a "socialist"?

Categorical Unification of Jordan Holder Theorems

In harmony: key or the flow?

Square Root Distance from Integers

Should I cite R or RStudio?

Why do all the books in Game of Thrones library have their covers facing the back of the shelf?

How much mayhem could I cause as a fish?

When Are Enum Values Defined?

Am I correct in stating that the study of topology is purely theoretical?



forcing ffmpeg to drop audio at same rate it drops video


Change the frame rate of an MP4 video with ffmpegFFMPEG add audio to a video but clip it to the video lengthFFmpeg audio and video out of syncResume transcoding a video with ffmpegFFMPEG concat demuxer — how to make mp4 file formats compatibleffmpeg concat mp4 loosing the audio synchHow to sync video (with dropped frames) with its separately recorded audio?Replace parts of video with another video with ffmpegConcat multiple videos with diferent audio and subtitle stream count using ffmpegHow to use ffmpeg to add multiple audio files to the video at a specific time?













0















I've got a number of video files taken over several days on family vacation and I was hoping to combine these all into one 2 hour long file. Some of the source files are from an iPhone, some are from an Android phone. The video formats are either .mp4 or .mov.



I'm using ffmpeg to combine the videos. Here is an example of the command I'm using to join the files for one day.



ffmpeg -i 20170904_083335.mp4 -i 20170904_174254.mp4 -i 20170904_174751.mp4 -i 20170904_195950.mp4 -filter_complex "[0:v] [0:a] [1:v] [1:a] [2:v] [2:a] [3:v] [3:a] concat=n=4:v=1:a=1 [v] [a] " -map "[v]" -map "[a]" 20170904.mkv


My problem is that throughout the process ffmpeg will drop a video frame here and there. Throughout the process this can amount to hundreds or thousands of dropped frames (depending on the number of input files). My eyes can't visibly see the difference from the dropped frames, but I can definitely tell that the audio falls out of sync the longer the video is.



If ffmpeg could drop an audio "frame" at the same time it drops a video frame I feel like that would be perfect (thus the title of my question). I would then have exactly what I wanted. But I have no idea how to make it do that.



What I really want: one single video file where the audio stays in sync with the video throughout the entire duration of the video. If any of you has an idea of how to do that I'm all ears and would really appreciate the help.



Other things I've tried:




  • MP4Joiner

  • Avidemux

  • just adding all files as titles to a DVD and burning it


Things I have not tried but might try




  • Just downloading Premiere Pro and throwing all files into a timeline and having it convert the whole thing.










share|improve this question



























    0















    I've got a number of video files taken over several days on family vacation and I was hoping to combine these all into one 2 hour long file. Some of the source files are from an iPhone, some are from an Android phone. The video formats are either .mp4 or .mov.



    I'm using ffmpeg to combine the videos. Here is an example of the command I'm using to join the files for one day.



    ffmpeg -i 20170904_083335.mp4 -i 20170904_174254.mp4 -i 20170904_174751.mp4 -i 20170904_195950.mp4 -filter_complex "[0:v] [0:a] [1:v] [1:a] [2:v] [2:a] [3:v] [3:a] concat=n=4:v=1:a=1 [v] [a] " -map "[v]" -map "[a]" 20170904.mkv


    My problem is that throughout the process ffmpeg will drop a video frame here and there. Throughout the process this can amount to hundreds or thousands of dropped frames (depending on the number of input files). My eyes can't visibly see the difference from the dropped frames, but I can definitely tell that the audio falls out of sync the longer the video is.



    If ffmpeg could drop an audio "frame" at the same time it drops a video frame I feel like that would be perfect (thus the title of my question). I would then have exactly what I wanted. But I have no idea how to make it do that.



    What I really want: one single video file where the audio stays in sync with the video throughout the entire duration of the video. If any of you has an idea of how to do that I'm all ears and would really appreciate the help.



    Other things I've tried:




    • MP4Joiner

    • Avidemux

    • just adding all files as titles to a DVD and burning it


    Things I have not tried but might try




    • Just downloading Premiere Pro and throwing all files into a timeline and having it convert the whole thing.










    share|improve this question

























      0












      0








      0








      I've got a number of video files taken over several days on family vacation and I was hoping to combine these all into one 2 hour long file. Some of the source files are from an iPhone, some are from an Android phone. The video formats are either .mp4 or .mov.



      I'm using ffmpeg to combine the videos. Here is an example of the command I'm using to join the files for one day.



      ffmpeg -i 20170904_083335.mp4 -i 20170904_174254.mp4 -i 20170904_174751.mp4 -i 20170904_195950.mp4 -filter_complex "[0:v] [0:a] [1:v] [1:a] [2:v] [2:a] [3:v] [3:a] concat=n=4:v=1:a=1 [v] [a] " -map "[v]" -map "[a]" 20170904.mkv


      My problem is that throughout the process ffmpeg will drop a video frame here and there. Throughout the process this can amount to hundreds or thousands of dropped frames (depending on the number of input files). My eyes can't visibly see the difference from the dropped frames, but I can definitely tell that the audio falls out of sync the longer the video is.



      If ffmpeg could drop an audio "frame" at the same time it drops a video frame I feel like that would be perfect (thus the title of my question). I would then have exactly what I wanted. But I have no idea how to make it do that.



      What I really want: one single video file where the audio stays in sync with the video throughout the entire duration of the video. If any of you has an idea of how to do that I'm all ears and would really appreciate the help.



      Other things I've tried:




      • MP4Joiner

      • Avidemux

      • just adding all files as titles to a DVD and burning it


      Things I have not tried but might try




      • Just downloading Premiere Pro and throwing all files into a timeline and having it convert the whole thing.










      share|improve this question














      I've got a number of video files taken over several days on family vacation and I was hoping to combine these all into one 2 hour long file. Some of the source files are from an iPhone, some are from an Android phone. The video formats are either .mp4 or .mov.



      I'm using ffmpeg to combine the videos. Here is an example of the command I'm using to join the files for one day.



      ffmpeg -i 20170904_083335.mp4 -i 20170904_174254.mp4 -i 20170904_174751.mp4 -i 20170904_195950.mp4 -filter_complex "[0:v] [0:a] [1:v] [1:a] [2:v] [2:a] [3:v] [3:a] concat=n=4:v=1:a=1 [v] [a] " -map "[v]" -map "[a]" 20170904.mkv


      My problem is that throughout the process ffmpeg will drop a video frame here and there. Throughout the process this can amount to hundreds or thousands of dropped frames (depending on the number of input files). My eyes can't visibly see the difference from the dropped frames, but I can definitely tell that the audio falls out of sync the longer the video is.



      If ffmpeg could drop an audio "frame" at the same time it drops a video frame I feel like that would be perfect (thus the title of my question). I would then have exactly what I wanted. But I have no idea how to make it do that.



      What I really want: one single video file where the audio stays in sync with the video throughout the entire duration of the video. If any of you has an idea of how to do that I'm all ears and would really appreciate the help.



      Other things I've tried:




      • MP4Joiner

      • Avidemux

      • just adding all files as titles to a DVD and burning it


      Things I have not tried but might try




      • Just downloading Premiere Pro and throwing all files into a timeline and having it convert the whole thing.







      video ffmpeg concatenation






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 6 hours ago









      jeremysawesomejeremysawesome

      1014




      1014






















          0






          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%2f1409384%2fforcing-ffmpeg-to-drop-audio-at-same-rate-it-drops-video%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1409384%2fforcing-ffmpeg-to-drop-audio-at-same-rate-it-drops-video%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

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

          looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...