This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> { |