Answers.Body: <p>What you wish to do is somewhat convoluted. There is a path to achieving it in the 2 step process you propose, but I would just suggest creating a new folder where you copy all the input files and rename to form a continuous sequence.</p>
  
  <p>Let's say you have 3 folders and the following files in them to be joined in that order</p>
  
  <p>Folder A: a001.png, a002.png, a003.png, ...... a175.png</p>
  
  <p>Folder B: b0001.png, b0002.png, b0003.png, ...... b1075.png</p>
  
  <p>Folder C: c01.png, c02.png, c03.png, ...... c75.png</p>
  
  <p>Also let's say you want to hold the last frame of B for 5 seconds</p>
  
  <p>So, you rename a001-a175 to s0001-s0175; rename b0001-b1075 to s0176-1250; duplicate s1250 120 times (24fps x 5) and rename the copies s1251-s1370, and finally rename c01-c75 to s1371-s1445.</p>
  
  <p>This method avoids issues of video generation loss. For audio, WAVE files of the correct length and order can be appended losslessy by FFmpeg and then converted+muxed with the output video.</p>
  
  <p>Of course, I see from your history that you have access to Premiere Pro. The simplest way of all would be to load all PNGs and audio in the editor, assemble and take output. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-03-08T09:42:21.017Z
Answers.Text: Okay, not ideal, but I think I can make it work.  I no longer have access to Premiere.  I'm curious to see if there are any other answers, because I'll be in this situation on a semi-regular basis.
Answers.UserDisplayName: Brigand
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-03-08T08:54:16.907Z
Answers.LastActivityDate: 2013-03-08T08:54:16.907Z
Answers.UserDisplayName: Gyan
Answers.Body: <p>The easiest way to do this is to simply use the png sequences directly in your editing program.  Any good editing package should support using them directly and you can interpret the sequence at any framerate you desire (though be aware you will have some quality loss if your final frame rate is not an even multiple of the various PNG sequence frame rates).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-03-08T14:44:20.817Z
Answers.LastActivityDate: 2013-03-08T14:44:20.817Z
Answers.UserDisplayName: AJ Henderson
Answers.Body: <p>Use ffmpeg's concat filter to concatenate multiple <code>-i dir/foo%d.png</code> input sources into a single output video.</p>
  
  <p>Old question so not taking time to dig up links or write more.  Just google.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-15T15:27:09.740Z
Answers.LastActivityDate: 2015-01-15T15:27:09.740Z
Answers.UserDisplayName: Peter Cordes
Body: <p>I have a bunch of PNG files in separate directories that I'll turn into videos with FFMPEG.  Say each clip will be a minute long.  I then want to stitch those together into a final video.  The final format can be anything YouTube accepts.  </p>
  
  <p>So, I need a format that won't lose a lot of quality when the PNGs are encoded the first time, and that doesn't lose <strong>any</strong> quality when it's concatenated to other videos of the same format (some need to be re-encoded and some behave like UNIX's <code>cat</code>).  They will also each have their own audio tracks which need to stay lined up correctly.  So, do any audio formats have problems with this?  I can have them in any format.</p>
  
  <p>Also, is there a way to set the video durration longer than then would be assumed?  Say I have 48 frames showing at 24 fps.  Could I have it make the video 3 seconds instead of 2; holding the last frame for a full second?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2013-03-12T00:47:27.843Z
Comments.Text: Please show some details on an example png file. The complete output of `ffmpeg -i input.png` will suffice.
Comments.UserDisplayName: llogan
Tags: <ffmpeg><encoding>
Title: Good Intermediate Format for Combining Videos
UserDisplayName: Brigand
ThreadText: # Good Intermediate Format for Combining Videos
  
  (Asked by: username_0 on 2013-03-08)
  
  I have a bunch of PNG files in separate directories that I'll turn into videos with FFMPEG. Say each clip will be a minute long. I then want to stitch those together into a final video. The final format can be anything YouTube accepts.
  
  So, I need a format that won't lose a lot of quality when the PNGs are encoded the first time, and that doesn't lose **any** quality when it's concatenated to other videos of the same format (some need to be re-encoded and some behave like UNIX's `cat`). They will also each have their own audio tracks which need to stay lined up correctly. So, do any audio formats have problems with this? I can have them in any format.
  
  Also, is there a way to set the video durration longer than then would be assumed? Say I have 48 frames showing at 24 fps. Could I have it make the video 3 seconds instead of 2; holding the last frame for a full second?
  
  **Tags:** ffmpeg, encoding
  
  > **Comments:**
  > **username_1**: Please show some details on an example png file. The complete output of `ffmpeg -i input.png` will suffice.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2013-03-08. Score: 1 | Accepted answer
  
  What you wish to do is somewhat convoluted. There is a path to achieving it in the 2 step process you propose, but I would just suggest creating a new folder where you copy all the input files and rename to form a continuous sequence.
  
  Let's say you have 3 folders and the following files in them to be joined in that order
  
  Folder A: a001.png, a002.png, a003.png, ...... a175.png
  
  Folder B: b0001.png, b0002.png, b0003.png, ...... b1075.png
  
  Folder C: c01.png, c02.png, c03.png, ...... c75.png
  
  Also let's say you want to hold the last frame of B for 5 seconds
  
  So, you rename a001-a175 to s0001-s0175; rename b0001-b1075 to s0176-1250; duplicate s1250 120 times (24fps x 5) and rename the copies s1251-s1370, and finally rename c01-c75 to s1371-s1445.
  
  This method avoids issues of video generation loss. For audio, WAVE files of the correct length and order can be appended losslessy by FFmpeg and then converted+muxed with the output video.
  
  Of course, I see from your history that you have access to Premiere Pro. The simplest way of all would be to load all PNGs and audio in the editor, assemble and take output.
  
  > **Comments:**
  > **username_0**: Okay, not ideal, but I think I can make it work.  I no longer have access to Premiere.  I'm curious to see if there are any other answers, because I'll be in this situation on a semi-regular basis.  
  
  ---
  
  ### Answer by username_3 on 2013-03-08. Score: 0
  
  The easiest way to do this is to simply use the png sequences directly in your editing program. Any good editing package should support using them directly and you can interpret the sequence at any framerate you desire (though be aware you will have some quality loss if your final frame rate is not an even multiple of the various PNG sequence frame rates).
  
  
  ---
  
  ### Answer by username_4 on 2015-01-15. Score: 0
  
  Use ffmpeg's concat filter to concatenate multiple `-i dir/foo%d.png` input sources into a single output video.
  
  Old question so not taking time to dig up links or write more. Just google.
  
  
  ---
  
  