Skip to content

Instantly share code, notes, and snippets.

@ArnoldsK
ArnoldsK / reduce_video_file_size.sh
Last active January 21, 2024 10:42
Bash script for reducing a file size of a video using ffmpeg to reduce bitrate
#!/bin/bash
# Usage:
# ~$ sh reduce_video_file_size.sh [./input.mp4] [size mb] [./output.mp4]
# Parameters can be preset or set by providing none
# Input and output names must end with ".mp4"
# Can use Git Bash to run the script on Windows
display_help() {
local FILE=`basename "$0"`
@mwaterfall
mwaterfall / gist:953664
Created May 3, 2011 16:28
NSDate from Internet Date & Time String
//
// NSDate+InternetDateTime.h
// MWFeedParser
//
// Created by Michael Waterfall on 07/10/2010.
// Copyright 2010 Michael Waterfall. All rights reserved.
//
#import <Foundation/Foundation.h>