Skip to content

Instantly share code, notes, and snippets.

@alyfreym
alyfreym / ColorCubeHelper-swift2.swift
Created September 12, 2024 10:24 — forked from JoshuaSullivan/ColorCubeHelper-swift2.swift
Here are the Swift 2.3 and Swift 3.0 versions of the ColorCubeHelper class.
//
// ColorCubeHelper.swift
//
// Created by Joshua Sullivan on 10/01/16.
// Copyright © 2016 Joshua Sullivan. All rights reserved.
//
import UIKit
import Accelerate
@alyfreym
alyfreym / mobile.video.encoding.md
Created May 8, 2023 09:26 — forked from pinge/mobile.video.encoding.md
Video and audio encoding for playback in Android and iOS devices

Video and audio encoding for playback in Android and iOS devices

This document aims to provide an easy way encode video optimized for playback in mobile devices that use the Android or the iOS operating systems.

libx264 is used for (single or two-pass) video encoding and libfdk_aac for audio encoding.

ffmpeg, libx264 and libfdk_aac settings are optimized for playback quality and compatibility on Android and iOS. There is extensive documentation and references for each of the settings used and contributions are very welcome :)