Skip to content

Instantly share code, notes, and snippets.

@dmthomas
dmthomas / Apple Special Event Nov 2020 1080p, 1440p, 2160p
Created November 10, 2020 19:45
Apple Special Event Nov 2020 1080p, 1440p, 2160p
#I broke the audio out separately because it's the same stream regardless of which video resolution you choose.
#Audio for all
ffmpeg -i https://p-events-delivery.akamaized.net/2010ayctcrodak763xivpxn4htcuhco9/vod_yNERgMqbdpzDszTARXB7y674TmVQ4Yvu/audio_english_128/prog_index.m3u8 -c copy "Apple Special Event, November 2020 temp.aac"
#h264 1080p
ffmpeg -i https://p-events-delivery.akamaized.net/2010ayctcrodak763xivpxn4htcuhco9/vod_yNERgMqbdpzDszTARXB7y674TmVQ4Yvu/avc_1080p_8500/prog_index.m3u8 -c copy "Apple Special Event, November 2020 (1080p) temp.mp4"
ffmpeg -i "Apple Special Event, November 2020 (1080p) temp.mp4" -i "Apple Special Event, November 2020 temp.aac" -c copy "Apple Special Event, November 2020 (1080p).mp4"
#h265 1080p
ffmpeg -i https://p-events-delivery.akamaized.net/2010ayctcrodak763xivpxn4htcuhco9/vod_yNERgMqbdpzDszTARXB7y674TmVQ4Yvu/hvc_1080p_7000/prog_index.m3u8 -c copy "Apple Special Event, November 2020 (1080p) temp.mp4"
@dmthomas
dmthomas / WWDC Keynote 2020 1080p, 1440p, 2160p
Created October 13, 2020 19:15
WWDC Keynote 2020 1080p, 1440p, 2160p
#h264 1080p
ffmpeg -i https://p-events-delivery.akamaized.net/2605bdtgclbnfypwzfkzdsupvcyzhhbx/vod5/master/8500/1080p_8500.m3u8 -c copy "Apple WWDC 2020 Keynote Address (1080p) temp.mp4"
ffmpeg -i https://p-events-delivery.akamaized.net/2605bdtgclbnfypwzfkzdsupvcyzhhbx/vod5/master/audio/en_128/en_128.m3u8 -c copy "Apple WWDC 2020 Keynote Address (1080p) temp.aac"
ffmpeg -i "Apple WWDC 2020 Keynote Address (1080p) temp.mp4" -i "Apple WWDC 2020 Keynote Address (1080p) temp.aac" -c copy "Apple WWDC 2020 Keynote Address (1080p).mp4"
#h264 1440p
ffmpeg -i https://p-events-delivery.akamaized.net/2605bdtgclbnfypwzfkzdsupvcyzhhbx/vod5/master/10900/1440p_10900.m3u8 -c copy "Apple WWDC 2020 Keynote Address (1440p) temp.mp4"
ffmpeg -i https://p-events-delivery.akamaized.net/2605bdtgclbnfypwzfkzdsupvcyzhhbx/vod5/master/audio/en_128/en_128.m3u8 -c copy "Apple WWDC 2020 Keynote Address (1440p) temp.aac"
ffmpeg -i "Apple WWDC 2020 Keynote Address (1440p) temp.mp4" -i "Apple WWDC 2020 Keynote Address (1440p) temp.aac" -c cop
@dmthomas
dmthomas / Apple Special Event Oct 2020 1080p, 1440p, 2160p
Last active October 21, 2020 21:41
Apple Special Event Oct 2020 1080p, 1440p, 2160p
#h264 1080p
ffmpeg -i https://p-events-delivery.akamaized.net/2109isftrwvmiekgrjkbbhxhfbkxjkoj/vod/avc_1080p_8500/prog_index.m3u8 -c copy "Apple Special Event, October 2020 (1080p) temp.mp4"
ffmpeg -i https://p-events-delivery.akamaized.net/2109isftrwvmiekgrjkbbhxhfbkxjkoj/vod/audio_english_128/prog_index.m3u8 -c copy "Apple Special Event, October 2020 (1080p) temp.aac"
ffmpeg -i "Apple Special Event, October 2020 (1080p) temp.mp4" -i "Apple Special Event, October 2020 (1080p) temp.aac" -c copy "Apple Special Event, October 2020 (1080p).mp4"
#h265 1080p
ffmpeg -i https://p-events-delivery.akamaized.net/2109isftrwvmiekgrjkbbhxhfbkxjkoj/vod/hvc_1080p_7000/prog_index.m3u8 -c copy "Apple Special Event, October 2020 (1080p) temp.mp4"
ffmpeg -i https://p-events-delivery.akamaized.net/2109isftrwvmiekgrjkbbhxhfbkxjkoj/vod/audio_english_128/prog_index.m3u8 -c copy "Apple Special Event, October 2020 (1080p) temp.aac"
ffmpeg -i "Apple Special Event, October 2020 (1080p) temp.mp4" -i "Apple Special Event, October 2020 (1
@dmthomas
dmthomas / Apple Special Event Sept 2020 1080p, 1440p, 2160p
Last active January 19, 2021 01:28
Apple Special Event Sept 2020 1080p, 1440p, 2160p
#h264 1080p
ffmpeg -i https://p-events-delivery.akamaized.net/1108byjxmnoakagswdphbwatymztxxew/vod/avc_1080p_8500/prog_index.m3u8 -c copy "Apple Special Event, September 2020 (1080p) temp.mp4"
ffmpeg -i https://p-events-delivery.akamaized.net/1108byjxmnoakagswdphbwatymztxxew/vod/audio_english_128/prog_index.m3u8 -c copy "Apple Special Event, September 2020 (1080p) temp.aac"
ffmpeg -i "Apple Special Event, September 2020 (1080p) temp.mp4" -i "Apple Special Event, September 2020 (1080p) temp.aac" -c copy "Apple Special Event, September 2020 (1080p).mp4"
#h265 1080p
ffmpeg -i https://p-events-delivery.akamaized.net/1108byjxmnoakagswdphbwatymztxxew/vod/hvc_1080p_7000/prog_index.m3u8 -c copy "Apple Special Event, September 2020 (1080p) temp.mp4"
ffmpeg -i https://p-events-delivery.akamaized.net/1108byjxmnoakagswdphbwatymztxxew/vod/audio_english_128/prog_index.m3u8 -c copy "Apple Special Event, September 2020 (1080p) temp.aac"
ffmpeg -i "Apple Special Event, September 2020 (1080p) temp.mp4" -i "Apple Special Event,
@chriseidhof
chriseidhof / boilerplate.swift
Last active December 11, 2024 13:54
QuickMacApp
// Run any SwiftUI view as a Mac app.
import Cocoa
import SwiftUI
NSApplication.shared.run {
VStack {
Text("Hello, World")
.padding()
.background(Capsule().fill(Color.blue))
@IsaacXen
IsaacXen / README.md
Last active March 2, 2025 02:20
(Almost) Every WWDC videos download links for aria2c.
@tclementdev
tclementdev / libdispatch-efficiency-tips.md
Last active February 26, 2025 18:09
Making efficient use of the libdispatch (GCD)

libdispatch efficiency tips

The libdispatch is one of the most misused API due to the way it was presented to us when it was introduced and for many years after that, and due to the confusing documentation and API. This page is a compilation of important things to know if you're going to use this library. Many references are available at the end of this document pointing to comments from Apple's very own libdispatch maintainer (Pierre Habouzit).

My take-aways are:

  • You should create very few, long-lived, well-defined queues. These queues should be seen as execution contexts in your program (gui, background work, ...) that benefit from executing in parallel. An important thing to note is that if these queues are all active at once, you will get as many threads running. In most apps, you probably do not need to create more than 3 or 4 queues.

  • Go serial first, and as you find performance bottle necks, measure why, and if concurrency helps, apply with care, always validating under system pressure. Reuse