Skip to content

Instantly share code, notes, and snippets.

@freshteapot
Created November 23, 2022 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshteapot/fb92ed6e7d7e2a5dcb3d7059ce021b07 to your computer and use it in GitHub Desktop.
Save freshteapot/fb92ed6e7d7e2a5dcb3d7059ce021b07 to your computer and use it in GitHub Desktop.
How to stitch two videos together from ios simulator

How to stitch two videos together from ios simulator

Make video(s)

  1. Spin up simulator
  2. Run app
  3. cmd+r (to start recording)
  4. do interaction
  5. save to desktop
  6. repeat with "different "do interaction"

Prepare for Stich

  1. Move video into folder (you might need to be more specific about the dates in the move
mkdir videos
mv ~/Desktop/Simulator\ Screen\ Recording\.* videos
  1. Rename (simple life)
ls -v | cat -n | while read n f; do mv -n "$f" "$n.mov"; done

Stich

ffmpeg -i 2.mov -i 3.mov -filter_complex hstack output.mp4

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment