Skip to content

Instantly share code, notes, and snippets.

View ohailstorm's full-sized avatar

Oscar Hallström-Öhlén ohailstorm

View GitHub Profile
@ohailstorm
ohailstorm / Convert .mov or .MP4 to .gif.md
Created May 14, 2020 09:13 — forked from SheldonWangRJT/Convert .mov or .MP4 to .gif.md
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@ohailstorm
ohailstorm / gist:5f18419b9d52b4b171ae9c2e7cde899b
Created January 14, 2019 12:12 — forked from nkint/gist:8563954
ffmpeg in the shell: extracting the first frame of video
i=1
for avi in *.mp4; do
name=`echo $avi | cut -f1 -d'.'`
jpg_ext='.jpg'
echo "$i": extracting the first frame of the video "$avi" into "$name$jpg_ext"
ffmpeg -loglevel panic -i $avi -vframes 1 -f image2 "$name$jpg_ext"
i=$((i+1))
done
document.querySelector('#player-audio').playbackRate = 1.2;
@ohailstorm
ohailstorm / GIF-Screencast-OSX.md
Created April 24, 2018 09:06 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@ohailstorm
ohailstorm / extract-testflight.js
Last active February 22, 2017 09:05 — forked from creaoy/extract-testflight.js
Extract TestFlight user email addresses from iTunes Connect
//Make sure you scroll down to get all data loaded
var text = '';
$('.col-email').each(function(index,el) {
if (index == 0) {
text = 'Email, First Name, Last Name, iOS, tvOS\n';
}
else {
//Email
text = text + $.trim($(el).find("a").text()) + ',';