iOSのシミュレータで動画

シミュレーターを録画する

xcrun simctl io booted recordVideo ./test.mov

movのファイルをgifの動画に変換する

ffmpeg -i test.mov -vf scale=320:-1 -r 10 test.gif