Some random ffmpeg commands …

  1. Combine video with equivalent length audio file: ffmpeg -i 20161017_Chem_trails.mp4 -i st.mp3 -c:v copy -c:a aac -map 0:v:0 -map 1:a:0 20161017_Chem_trails_EDIT.mp4
  2. Combine .mp3 (audio) with single cover PNG for podcasts: ffmpeg -loop 1 -r 1 -i seconds.png -i 20201211_Sloppy_Seconds.mp3 -c:a copy -shortest -c:v libx264 20201211_Sloppy_Seconds.mp4
  3. Create gif from multiple PNG files: convert -delay 600 -loop 0 *_zoo.png zoo_meat3.gif
  4. Concatenate several video files:
  5. Build source file: “”>concat_file.txt; $r = ls; foreach($l in $r) { if($l -ne “concat_file.txt”) { add-content -path concat_file.txt -value “file ‘$l'”;}}
  6. Concat src files: ffmpeg -f concat -safe 0 -i concat_file.txt -c copy construction_sped_up.mp4

More on concatenation …