Skip to content

Instantly share code, notes, and snippets.

View JonnyBurger's full-sized avatar
🎥
Making videos in React

Jonny Burger JonnyBurger

🎥
Making videos in React
View GitHub Profile
@JonnyBurger
JonnyBurger / migrate.ts
Created October 4, 2024 08:44
Migrating the Remotion Recorder to the new captions format
// We have migrated the captions format to the `Caption` type:
// https://remotion.dev/docs/captions/caption
// This will allow other captioning solutions as well.
// If you have already created captions, migrate them using:
// Run this with `bun migrate.ts`
import { toCaptions } from "@remotion/install-whisper-cpp";
import { write } from "bun";
@JonnyBurger
JonnyBurger / index.html
Created October 2, 2024 20:43
Convert the full 10min Big Buck Bunny movie from MP4 to WebM. Needs
<!-- Does not work with file:// protocol -->
<!-- You need to serve this via localhost, e.g `npx serve .` -->
<script type="importmap">
{
"imports": {
"@remotion/media-parser/web-fs": "https://unpkg.com/@remotion/[email protected]/dist/esm/web-fs.mjs",
"@remotion/media-parser/buffer": "https://unpkg.com/@remotion/[email protected]/dist/esm/buffer.mjs",
"@remotion/media-parser": "https://unpkg.com/@remotion/[email protected]/dist/esm/index.mjs",
"webcodecs": "https://unpkg.com/@remotion/[email protected]/dist/esm/index.mjs"
@JonnyBurger
JonnyBurger / PageTransition.tsx
Created August 15, 2023 07:39
Remotion Page Transition
import React from 'react';
import {
AbsoluteFill,
interpolate,
Sequence,
spring,
useCurrentFrame,
useVideoConfig,
} from 'remotion';
@JonnyBurger
JonnyBurger / TriangleTransition.tsx
Created May 17, 2022 11:15
A Remotion Triangle Entrace transition
import {AbsoluteFill} from 'remotion';
import React, {useState} from 'react';
import {random, useVideoConfig} from 'remotion';
export const TriangleEntrace: React.FC<{
progress: number;
children: React.ReactNode;
showMask: boolean;
}> = ({children, progress, showMask}) => {
const {height, width} = useVideoConfig();
@JonnyBurger
JonnyBurger / ffmpeg.sh
Last active November 21, 2021 16:07
Build ffmpeg
sudo yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool openjpeg2-devel make mercurial pkgconfig zlib-devel openjpeg2-devel -y
mkdir ~/ffmpeg_sources
# nasm
cd ~/ffmpeg_sources
curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.bz2
tar xjvf nasm-2.14.02.tar.bz2
cd nasm-2.14.02
./autogen.sh
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
@JonnyBurger
JonnyBurger / App.tsx
Created May 12, 2020 14:30
Slow Camera
export const App => <DepthCameraComp />

Keybase proof

I hereby claim:

  • I am jonnyburger on github.
  • I am jonnyburger (https://keybase.io/jonnyburger) on keybase.
  • I have a public key ASCF5kxi5SE_vRLDOSX3EVzXiuNAcf30d65zlDwdQHJ0fgo

To claim this, I am signing this object:

- run: |
echo "$SUPPLYFILE" | base64 -d > app/android/supplyfile.json
env:
SUPPLYFILE: ${{ secrets.SUPPLYFILE }}
diff --git a/android/app/src/main/java/host/exp/exponent/GeofencingTaskConsumer.java b/android/app/src/main/java/host/exp/exponent/GeofencingTaskConsumer.java
index b6909fd..076f760 100644
--- a/android/app/src/main/java/host/exp/exponent/GeofencingTaskConsumer.java
+++ b/android/app/src/main/java/host/exp/exponent/GeofencingTaskConsumer.java
@@ -17,6 +17,7 @@
import com.google.android.gms.location.LocationServices;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashMap;
@JonnyBurger
JonnyBurger / README.md
Last active May 15, 2019 15:18
Macbook Performance Benchmarks

I want to figure out if it is worth it to upgrade to a faster MacBook for faster JS development.

If you have a MacBook, older or newer than mine, can you help me by running the same benchmark as me. As a benchmark, we are compiling VS Code from TS to JS which is one of the biggest open source TS projects I imagine.

  1. Make sure your MacBook is plugged in and charging at 100%. If you can easily change your Node version, change it to v10.
  2. Close all resource-intensive programs on your Macbook
  3. Clone the repository and perform the benchmark:
git clone https://github.com/microsoft/vscode