Created
July 11, 2019 16:21
-
-
Save rsmelo92/73d38e32687a978fc30fa98486c23dcf to your computer and use it in GitHub Desktop.
Script to record simulator screen as gif on macos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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