Skip to content

Instantly share code, notes, and snippets.

View flocked's full-sized avatar

Florian Zand flocked

  • MuffinStory
  • Berlin, Germany
View GitHub Profile
@flocked
flocked / build-ffmpeg-apple.sh
Last active August 1, 2026 22:40
Build FFmpeg Libraries and XCFrameworks for Apple Platforms
#!/usr/bin/env bash
set -euo pipefail
INVOCATION_DIR="$(pwd -P)"
FFMPEG_VERSION="${FFMPEG_VERSION:-}"
DEFAULT_PLATFORMS="macos-arm64,macos-x86_64"
ALL_PLATFORMS="macos-arm64,macos-x86_64,ios-arm64,ios-simulator-arm64,ios-simulator-x86_64,tvos-arm64,tvos-simulator-arm64,tvos-simulator-x86_64,watchos-arm64,watchos-simulator-arm64,watchos-simulator-x86_64,visionos-arm64,visionos-simulator-arm64,visionos-simulator-x86_64"
PLATFORMS="${PLATFORMS:-$DEFAULT_PLATFORMS}"
@flocked
flocked / OSHash.swift
Last active March 4, 2023 19:18
OpenSubtitles Hash
import Foundation
public class OSHash {
enum HashError: Error {
case invalidFile
case fileToSmall
}
private static let chunkSize: Int = 65536
private static let byteCount = 8