Skip to content

Instantly share code, notes, and snippets.

@hfossli
hfossli / ffmpeg_sox_reverse.sh
Last active May 12, 2022 07:32
A bash script for reversing videos using ffmpeg and sox.
#!/bin/bash
# Created by Håvard Fossli <[email protected]> in 2013
# This is free and unencumbered software released into the public domain.
# For more information, please refer to <http://unlicense.org/>
#
# Description
# A bash script for reversing videos using ffmpeg and sox.
#
# Keywords
@hfossli
hfossli / ffmpeg_split.sh
Last active December 27, 2020 21:47
A bash / shell script for splitting videos / movies into several / multiple files using ffmpeg
#!/bin/bash
# Created by Håvard Fossli <[email protected]> in 2013
# Derived from Alexis Bezverkhyy <[email protected]> in 2011
# This is free and unencumbered software released into the public domain.
# For more information, please refer to <http://unlicense.org/>
#
# Description
# A bash script for splitting videos into several files using ffmpeg.
#
@hfossli
hfossli / gist:5130975
Last active July 21, 2017 10:48
Tests
CGPoint CGPointApplyCATransform3D(CGPoint point, CATransform3D transform, CGPoint anchorPoint, CATransform3D parentSublayerTransform)
{
static CALayer *sublayer, *layer;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sublayer = [CALayer layer];
layer = [CALayer layer];
[layer addSublayer:sublayer];
});