Skip to content

Instantly share code, notes, and snippets.

View pandamoon21's full-sized avatar
๐Ÿš€
:)

pandamoon21 pandamoon21

๐Ÿš€
:)
View GitHub Profile
@kowalcj0
kowalcj0 / .bashrc
Last active August 29, 2024 23:43
Extract all subtitles from a movie using ffprobe & ffmpeg
alias subs=subs
function subs() {
movie="${1}"
filename="${1%.*}"
mappings=`ffprobe -loglevel error -select_streams s -show_entries stream=index:stream_tags=language -of csv=p=0 "${movie}"`
OLDIFS=$IFS
IFS=,
( while read idx lang
do
@pcroland
pcroland / mylwlinfo.avsi
Last active September 6, 2021 07:14
Modified lwlinfo for showing only the important parts with white and you can add a bonustext (group name for example) with predefined colors.
red = $FF7C7C
green = $B2FF7C
blue = $8F97FF
yellow = $FFE07C
orange = $FFB97C
magenta = $FF77FF
violet = $C787FF
cyan = $7DF9FF
white = $FFFFFF
azure = $86C8FF
@BrychanOdlum
BrychanOdlum / storefrontmappings.json
Last active February 14, 2026 13:14
Apple iTunes Storefront IDs
[
{
"name": "Algeria",
"code": "DZ",
"storefrontId": 143563
},
{
"name": "Angola",
"code": "AO",
"storefrontId": 143564
function UpscaleCheck(clip c, string "resolution") {
resolution = default(resolution, "720")
eval("""Interleave(c.myffinfo("source", color_lawngreen), c.AutoResize(""" + Chr(34) + resolution + Chr(34) + """).z_Spline36Resize(c.width, c.height).myffinfo("source -> """ + resolution +""" -> source", color_cyan))""")
}
@rlaphoenix
rlaphoenix / dvd-bible-by-phoenix.md
Last active August 30, 2025 04:42
The DVD-Video Bible, Written by @rlaphoenix
@rlaphoenix
rlaphoenix / home_media_software_cheatsheet.md
Last active February 9, 2023 14:57
Home Media Software Cheatsheet
OS Software Type Supported Mediums
![Windows][win] ![Linux][nix] ![Mac][mac] MakeMKV GUI, CLI ![Blu-ray][br] ![DVD][dvd] *1 *4
![Windows][win] AnyDVD HD GUI ![Blu-ray][br] ![DVD][dvd] *5
![Windows][win] ![Linux][nix] *3 DVDFab *2 GUI ![Blu-ray][br] ![DVD][dvd] *5
![Windows][win] ![Linux][nix] *3 DVD Decrypter GUI, CLI*7 ![DVD][dvd]
![Linux][nix] K3b
@tyhoff
tyhoff / progress_bar_requests_upload.py
Last active February 3, 2026 23:18
Python requests HTTP PUT with tqdm progress bar
from tqdm import tqdm
from tqdm.utils import CallbackIOWrapper
file_path = os.path.abspath(__file__)
upload_url = https://some-bucket.s3.amazonaws.com
file_size = os.stat(file_path).st_size
with open(file_path, "rb") as f:
with tqdm(total=file_size, unit="B", unit_scale=True, unit_divisor=1024) as t:
wrapped_file = CallbackIOWrapper(t.update, f, "read")
@rlaphoenix
rlaphoenix / why-you-shouldnt-use-triticals-tdecimate.md
Last active June 3, 2024 14:17
Why you shouldn't use Triticals TDecimate...

Why you shouldn't use Triticals TDecimate...

I need to clarify when I refer to TDecimate I'm referring to both TDecimate and VDecimate (which is a port of it to VapourSynth)

Time and time again I see people using this function to decimate for inverse-telecine purposes but I implore you to continue reading this and use an alternative decimation method.

Why? (tl;dr)

Simply put, it's far too inaccurate and it is ruining a lot of encodes.

How so?

@font-face {
font-family: 'Netflix Sans';
font-weight: 100;
font-display: optional;
src: url(https://assets.nflxext.com/ffe/siteui/fonts/netflix-sans/v3/NetflixSans_W_Th.woff2) format('woff2'),url(https://assets.nflxext.com/ffe/siteui/fonts/netflix-sans/v3/NetflixSans_W_Th.woff) format('woff')
}
@font-face {
font-family: 'Netflix Sans';
@rlaphoenix
rlaphoenix / remux_umd_video_streams.py
Last active December 5, 2025 04:51
Script to REMUX UMD Video Streams. Needs to have demuxed the MPS using VGMToolbox before running this script
import os
import re
import glob
import subprocess
# ==== #
# Important:
# For this script to work, you need to demux the MPS files FIRST
# How?
# Download the header.bin file (see top first comment below).