Skip to content

Instantly share code, notes, and snippets.

View justynspooner's full-sized avatar

Justyn Spooner justynspooner

View GitHub Profile
@justynspooner
justynspooner / h264Encoder.sh
Last active January 6, 2023 21:56
Batch H264 Encoder
#!/bin/bash
# This script will convert all .mov files in the current directory to .mp4 files
# using the H.264 codec. It will also scale the video to 1920x1080.
# The output files will be placed in a subdirectory called "compressed".
# This script requires ffmpeg to be installed.
mkdir compressed
# ffmpeg -i P1012602.MOV -vf scale=1920x1080:flags=lanczos "compressed/output.mp4"
# For each mov file in the directory do the following:
#########################
# .gitignore file for Xcode5 / OS X Source projects
#
# Version 2.1
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2014 updates:
# - ignore Xcode 5 source control files
# - Ignore `Pods` folder
#