Skip to content

Instantly share code, notes, and snippets.

@mrintrepide
mrintrepide / AV1 Encode.md
Last active March 7, 2025 16:24
AV1 quick encode with SVT-AV1

SVT-AV1 is the fastest multithreaded AV1 encoder
You can download up to date BtbN ffmpeg build with latest STV-AV1 code.

Aom-av1 is the official av1 decoder/encoder but it's the slowest and lacks of a real massive multithreading.
Rav1e is a xiph encoder project. It's also very slow but you can use multithreading with tiles.
Dav1d is a veryfast AV1 VLC decoder project.

Svt-av1 is an heavy multithreading intel decoder and encoder. It produce good quality but bigger file size.
It can produce 8 and 10 bit video with CRF (default), CQP, VBR and CBR (test).
Two pass are also available with standalone SvtAv1EncApp but not in ffmpeg.

@Martin-Pitt
Martin-Pitt / pan-zoom-touch-and-trackpad.js
Last active May 3, 2025 20:56
Panning and Pinch-Zoom gesture handler for both touchscreens and trackpads; Works really well on a MacBook trackpad
// Target state
var tx = 0;
var ty = 0;
var scale = 1;
function visualiseTargetState() {
box.style.transform = `translate(${tx}px, ${ty}px) scale(${scale})`;
}
@jrhemstad
jrhemstad / ninja_instructions.md
Last active April 18, 2025 22:50
How to build with Ninja

How to Use Ninja

  1. Install Ninja
sudo apt install ninja-build
  1. Configure CMake to create Ninja build files
mkdir build && cd build
@hlorand
hlorand / vidstab_ffmpeg.md
Last active March 16, 2025 21:56
Video stabilization using VidStab and FFMPEG

Video stabilization using VidStab and FFMPEG

** Step 1 **

Install ffmpeg with the vidstab plugin.

@w-jerome
w-jerome / input-number-arrows.html
Last active February 8, 2025 00:40
HTML — Input number custom arrows
<!--
https://stackoverflow.com/questions/45396280/customizing-increment-arrows-on-input-of-type-number-using-css
https://www.w3schools.com/jsref/met_number_stepup.asp
-->
<link media="all" rel="stylesheet" href="./style.css">
<div>
<button type="button" onclick="this.parentNode.querySelector('[type=number]').stepDown();">
-
@jvandyke
jvandyke / button.html
Created February 26, 2014 22:15
Replace text in an element with CSS
<button class="element">Old text</button>