Body: <p>I'm trying to combine image files from multiple directories into one combined time lapse using ffmpeg, but when running this code, only the first directory is used in the time lapse. How do I combine multiple glob inputs using ffmpeg?</p>
  
  <pre><code>ffmpeg -pattern_type glob -i "Time\ Lapse\ 11/*.JPG" \
  -pattern_type glob -i "Burst\ Sequence\ 5/*.JPG" \
  -pattern_type glob -i "Burst\ Sequence\ 6/*.JPG" \
  -r 30 -c:v libx264 -crf 23 -preset fast -pix_fmt yuv420p tl11_combined.mp4
  </code></pre>
  
  <p>I've tried using glob sequence which didn't do anything, so was wondering how to do this. Thanks!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-14T19:58:51.313Z
Comments.Text: pipe the three sequences in series to ffmpeg instead of reading it as three inputs. See https://stackoverflow.com/a/40872592
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-14T20:04:56.193Z
Comments.Text: Is there any way to do this with glob though instead of individual file names? Each directory could have tons of files, so I'd rather do it with pattern matching than sequentially list all files.
Comments.UserDisplayName: jtanman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-15T04:54:27.880Z
Comments.Text: Yes, you can use globbing, see my linked answer.
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-15T05:25:16.897Z
Comments.Text: So if I'm understanding you, you want me to run
  1. cat Time\ Lapse\ 11/*.JPG | ffmpeg -f image2pipe -framerate 24 -i - out.mp4
  2. cat Burst\ Sequence\ 5/*.JPG | ffmpeg -f image2pipe -framerate 24 -i - out.mp4
  3. cat Burst\ Sequence\ 6/*.JPG | ffmpeg -f image2pipe -framerate 24 -i - out.mp4
  
  as 3 separate commands?
Comments.UserDisplayName: jtanman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-15T06:18:04.980Z
Comments.Text: `cat "Time Lapse 11/*.JPG" "Burst Sequence 5/*.JPG" "Burst Sequence 6/*.JPG"  | ffmpeg -f image2pipe -framerate 24 -i - out.mp4`
Comments.UserDisplayName: Gyan
Tags: <ffmpeg><mac><time-lapse>
Title: How do I join multiple glob inputs into a time lapse with ffmpeg?
UserDisplayName: jtanman
ThreadText: # How do I join multiple glob inputs into a time lapse with ffmpeg?
  
  (Asked by: username_0 on 2019-10-14)
  
  I'm trying to combine image files from multiple directories into one combined time lapse using ffmpeg, but when running this code, only the first directory is used in the time lapse. How do I combine multiple glob inputs using ffmpeg?
  
  ```
  ffmpeg -pattern_type glob -i "Time\ Lapse\ 11/*.JPG" \
  -pattern_type glob -i "Burst\ Sequence\ 5/*.JPG" \
  -pattern_type glob -i "Burst\ Sequence\ 6/*.JPG" \
  -r 30 -c:v libx264 -crf 23 -preset fast -pix_fmt yuv420p tl11_combined.mp4
  
  ```
  
  I've tried using glob sequence which didn't do anything, so was wondering how to do this. Thanks!
  
  **Tags:** ffmpeg, mac, time-lapse
  
  > **Comments:**
  > **username_1**: pipe the three sequences in series to ffmpeg instead of reading it as three inputs. See https://stackoverflow.com/a/40872592  
  > **username_0**: Is there any way to do this with glob though instead of individual file names? Each directory could have tons of files, so I'd rather do it with pattern matching than sequentially list all files.  
  > **username_1**: Yes, you can use globbing, see my linked answer.  
  > **username_0**: So if I'm understanding you, you want me to run 1. cat Time\ Lapse\ 11/*.JPG | ffmpeg -f image2pipe -framerate 24 -i - out.mp4 2. cat Burst\ Sequence\ 5/*.JPG | ffmpeg -f image2pipe -framerate 24 -i - out.mp4 3. cat Burst\ Sequence\ 6/*.JPG | ffmpeg -f image2pipe -framerate 24 -i - out.mp4  as 3 separate commands?  
  > **username_1**: `cat "Time Lapse 11/*.JPG" "Burst Sequence 5/*.JPG" "Burst Sequence 6/*.JPG"  | ffmpeg -f image2pipe -framerate 24 -i - out.mp4`  
  
  ---
  
  ## 0 answers
  
  