Skip to content

Instantly share code, notes, and snippets.

View seatedro's full-sized avatar

ro seatedro

  • san francisco
View GitHub Profile
@seatedro
seatedro / build.zig
Created September 18, 2024 18:47
static ffmpeg zig build
const std = @import("std");
const builtin = @import("builtin");
pub fn build(b: *std.Build) !void {
const av = b.option(bool, "av", "Compile ffmpeg") orelse false;
const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .ReleaseFast });
const dep_stb = b.dependency("stb", .{});
const dep_ffmpeg = b.dependency("ffmpeg", .{});
// Add a new step for compiling Ffmpeg
@seatedro
seatedro / yacine.html
Last active October 3, 2024 03:17
transcoder_from_scratch_in_js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>webcodecs</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
@seatedro
seatedro / avi.html
Created October 3, 2024 22:10
furthest i got to an avi demuxer
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AVI Video Player</title>
</head>
<body>