- Extract first frame from video and save as PNG
for file in *; do ffmpeg -y -i "$file" -frames:v 1 "../images/${file%.*}.png"; done
- Horizontally stack multiple videos
ffmpeg -i a.mp4 -i b.mp4 -i c.mp4 -i d.mp4 -filter_complex hstack=inputs=4 output.mp4