Skip to content

Instantly share code, notes, and snippets.

View ThreeDeeJay's full-sized avatar
👂
In Stereo where available

3DJ ThreeDeeJay

👂
In Stereo where available
View GitHub Profile
@unitycoder
unitycoder / UnityRendering.md
Created January 7, 2025 08:38
Unity: Forward, Forward+, Deferred, Deferred+

https://discussions.unity.com/t/deferred/1579636/3

Forward

Render both, transparent and opaque objects, one at a time. For each object, we bind a list of lights that affect that it. On the GPU, we iterate over this list and accumulate lighting.

The upside of this approach is that this is dead-simple, and has a low CPU cost. For very simple scenes, this is a win.

Downsides are (a) overdraw, i.e. you pay for lighting pixels that will be later occluded by other geometry, (b) a smaller light limit, (c) incompatibility with GPU-driven rendering and GPU occlusion culling.

@gtk2k
gtk2k / Youtube360VideoFormatList.md
Last active August 24, 2025 17:12
Youtube 360 video format list

As a result of examining 10 each of Monoscopic and Stereoscopic videos of 360 videos, most of them (about 80%) became the format distribution shown in the table.

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4
4320p 402/571
---/EQU
272
---
138
---
2160p 701
---
401
EQU
337
---
315
EAC
(313)
EAC
(305)
---
(266)
---
1440p 700
---
400
EQU
336
---
308
EAC
(271)
EAC
(304)
---
(264)
---
1080p 699
---
399
EQU
335
---
303
EAC
(248)
EAC
299
EAC
(137)
EAC(*EQU)
720p 698--- 398EQU 334--- 302EAC 247EAC(*EQU) 298EAC 136EAC
@MartinEesmaa
MartinEesmaa / youtube_formats.md
Last active January 22, 2026 20:23 — forked from AgentOak/youtube_formats.md
Youtube Format IDs

Note: This is all almost full YouTube ID informations. Original owner goes to AgentOak, modified version by Martin Eesmaa.

See the credits and also special thanks in below.

Before this gist has been forked, AgentOak made original gist on November 13 2019 and it was last updated on May 5 2021.

From now on, this forked gist is maintained by Martin Eesmaa since 17 September 2022.

Last updated: 08 January 2026

@edjdavid
edjdavid / pp_motion_interp.md
Created August 13, 2020 12:39
PotPlayer Motion Interpolation
@kode54
kode54 / hesuvi_convert.c
Last active November 26, 2025 13:19
This fairly simple tool converts all HeSuVi 14 channel presets into 7.0 formatted _L/_R stereo pairs, for use with the soon to be updated PulseAudio module-virtual-surround-sink, which I've updated with a faster FFT overlap-save convolver, eliminated the sample length limits for impulses, and added support for asymmetrical/dual impulse mode.
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#define SPEAKER_FRONT_LEFT 0x1
#define SPEAKER_FRONT_RIGHT 0x2
#define SPEAKER_FRONT_CENTER 0x4
#define SPEAKER_LFE 0x8
#define SPEAKER_BACK_LEFT 0x10
@AgentOak
AgentOak / youtube_formats.md
Last active November 10, 2025 02:34
Youtube Format IDs

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4
package main
import (
"bytes"
"flag"
"fmt"
"io/ioutil"
"os"
"path/filepath"
)