Skip to content

Instantly share code, notes, and snippets.

@rsmelo92
Created July 11, 2019 16:21
Show Gist options
  • Save rsmelo92/73d38e32687a978fc30fa98486c23dcf to your computer and use it in GitHub Desktop.
Save rsmelo92/73d38e32687a978fc30fa98486c23dcf to your computer and use it in GitHub Desktop.
Script to record simulator screen as gif on macos
#!/bin/bash
cd $HOME/Documents/Record_screen
echo "Recording. To stop and save it press CTRL+C"
xcrun simctl io booted recordVideo out.mov
ffmpeg -i out.mov -vf scale=320:-1 -r 10 "record_"$(date '+%W_%Y_%X').gif
rm out.mov
open $HOME/Documents/Record_screen
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment