This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| package com.eatfirst.android.ui.custom; | |
| /** | |
| * Copyright 2015 Bartosz Lipinski | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| # get existing queries results | |
| users = get_query_result(132) # this one has {id, name} | |
| events_by_users = get_query_result(131) # this one has {user_id, events count} | |
| # actual merging. can be replaced with helper function and/or some Pandas code | |
| events_dict = {} | |
| for row in events_by_users['rows']: | |
| events_dict[row['user_id']] = row['count'] | |
| for row in users['rows']: |
| #Check if an argument was supplied | |
| if [ -z "$1" ] | |
| then | |
| echo "No argument supplied, please provide video name" | |
| else | |
| # start recording | |
| adb shell screenrecord --bit-rate 6000000 /sdcard/$1.mp4 & | |
| # Get its PID | |
| PID=$! |
| actions=true | |
| ads=true | |
| analytics=true | |
| appindexing=true | |
| appstate=true | |
| auth=true | |
| cast=true | |
| common=true | |
| drive=false | |
| dynamic=true |
| body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { |