Skip to content

Instantly share code, notes, and snippets.

@a-r-r-o-w
Last active January 6, 2025 03:12
Show Gist options
  • Save a-r-r-o-w/f294a5500d26d4144cad800457b16b0e to your computer and use it in GitHub Desktop.
Save a-r-r-o-w/f294a5500d26d4144cad800457b16b0e to your computer and use it in GitHub Desktop.
ffmpeg dump
  1. Extract first frame from video and save as PNG
for file in *; do ffmpeg -y -i "$file" -frames:v 1 "../images/${file%.*}.png"; done
  1. Horizontally stack multiple videos
ffmpeg -i a.mp4 -i b.mp4 -i c.mp4 -i d.mp4 -filter_complex hstack=inputs=4 output.mp4
# For vertical stacking, use vstack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment