Skip to content

Instantly share code, notes, and snippets.

View estelsmith's full-sized avatar

Estel Smith estelsmith

View GitHub Profile
@estelsmith
estelsmith / readme.md
Last active March 27, 2024 21:51
Gemini Lake Hardware-accelerated Transcoding

Gemini Lake Hardware-accelerated Transcoding

This is for a used Wyse 5070 I recently purchased, having the J5005 CPU and a huge 8 GB RAM all running on AlmaLinux 9.1. Why AlmaLinux? Because I'm partial to RHEL-based systems with its focus on stability, that's all. Unfortunately the downside is that oftentimes new software isn't readily available.

I want to unlock the ability to perform hardware-accelerated transcoding in ffmpeg so I can use it in Tdarr as a decent remote transcoding node.

Intel ARK - Pentium Silver J5005 shows that the CPU has Quick Sync Video support, and as such supports some form of hardware video acceleration.

The CPU is Gemini Lake and uses Intel UHD Graphics 605, which is Gen 9.5 according to the ffmpeg wiki. The machine should be able

@estelsmith
estelsmith / fetch-timeout.js
Created December 7, 2023 22:05
JavaScript Fetch w/ Timeout
/**
* A wrapper around the fetch api that will abort after a configurable amount of time has passed.
*
* @param {URL|string} input
* @param {RequestInit?} init
* @param {number?} providedTimeout
* @returns {Promise<Response>}
*/
export default async function fetchTimeout(input, init, providedTimeout) {
const timeout = providedTimeout ?? config.timeouts.defaultTimeout;