Skip to content

Instantly share code, notes, and snippets.

@hamdshah
Forked from julesjans/screen-gif.sh
Created April 15, 2020 12:28
Show Gist options
  • Save hamdshah/4bf62be5bbf0a2da6dbaf723af3b1fd9 to your computer and use it in GitHub Desktop.
Save hamdshah/4bf62be5bbf0a2da6dbaf723af3b1fd9 to your computer and use it in GitHub Desktop.
Capture iOS Simulator to animated gif
# Turn on the simulator screen capture
xcrun simctl io booted recordVideo ~/simulator.mov
# Convert the iPhone 6s screen shot into a gif:
ffmpeg -i ~/simulator.mov -vf scale=320:-1 -r 6 -f gif -y simulator.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment