add capnp and ffmpeg (#4)

This commit is contained in:
Adeeb Shihadeh
2026-02-22 19:06:33 -08:00
committed by GitHub
parent e66179c262
commit cd913d0f9f
12 changed files with 420 additions and 14 deletions

20
ffmpeg/ffmpeg/__init__.py Normal file
View File

@@ -0,0 +1,20 @@
import os
import sys
DIR = os.path.join(os.path.dirname(__file__), "install")
BIN_DIR = os.path.join(DIR, "bin")
LIB_DIR = os.path.join(DIR, "lib")
INCLUDE_DIR = os.path.join(DIR, "include")
def _run(name):
binary = os.path.join(BIN_DIR, name)
os.execvp(binary, [binary] + sys.argv[1:])
def _run_ffmpeg():
_run("ffmpeg")
def _run_ffprobe():
_run("ffprobe")