Skip to content

Instantly share code, notes, and snippets.

View ironon's full-sized avatar
🕳️
scheming

iron ironon

🕳️
scheming
View GitHub Profile
@ironon
ironon / how to get VideoProcessingFramework to run in 2025
Created June 18, 2025 19:18
how to get VideoProcessingFramework to run in 2025
how to get VideoProcessingFramework (PyNvCodec) to run in 2025
(by no means a comprehensive guide this took me many hours of random debugging and random jankness)
0. download the visual studio installer if you dont have it already, and install the MSVC v144 compiler, which unless you look really closely will be labeled as the v143 compiler for some reason, its only like 40 words into the official title that it tells you its actually v144 but whatever i didn't care or anything
1. download FFMPEG 6 (an old version) as this will not work with the latest FFMPEG versions (https://web.archive.org/web/20230301132406if_/https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-6.0-full_build-shared.7z)
2. set an environment variable in your system: SKBUILD_CONFIGURE_OPTIONS to '-DTC_FFMPEG_ROOT=<FFMPEG LOCATION>' (in my case, it was C:\Users\macphersond\Downloads\ffmpeg-6.0-full_build-shared\ffmpeg-6.0-full_build-shared)
(<FFMPEG_LOCATION> should have a bunch of folders in it, lib and bin folders and stuff)
3. run `pip i
@ironon
ironon / old_renderer.rs
Created March 13, 2025 01:48
Basic 3d Render in Rust by David Macpherson
// i was bored on a plane ride and didn't know what to do so i tried my best to make a 3d renderer
// (i had no knowledge of how 3d renders worked, just tried to use my linear algebra skills to derive it out)
use std::{thread, time};
fn paraboloid(x: f32, y: f32) -> f32{
(x*x) + (y*y)
}
fn parabola(t: f32) -> Vec<f32> {