Skip to content

Instantly share code, notes, and snippets.

@rlaphoenix
rlaphoenix / p2p.groovy
Last active July 3, 2023 01:45
Common style P2P Movies and TV filebot template
{
// Requirements: MediaInfo and libmediainfo v19.09 or newer.
// Examples:
// "The.IT.Crowd.S01E01.Yesterdays.Jam.1080p.AMZN.WEB-DL.DDP.5.1.H.264-PHOENiX"
// "Luca.2021.Repack.2160p.DSNP.WEB-DL.DV.DDP.5.1.Atmos.H.265-PHOENiX"
def Movie = false;
def Group = "PHOENiX"; // Only used if no Group Tag is detected in the original filenames
def Source = "AMZN WEB-DL"; // e.g. "DVD REMUX", "BluRay REMUX", "BRRip", and so on
def Edition = ""; // If empty or not set, it will be detected from the original filename
@rlaphoenix
rlaphoenix / pokemon_home_media_comparison_cheatsheet.md
Last active November 14, 2020 17:40
Pokemon Home Media Comparison Cheatsheet

Notes

  • Seasons and Episode Orders are following TMDB's Order
  • Banned and flashback episodes are not counted towards episode numbers
  • VHS releases are not listed at all here as they have all since been trumped by DVD's or better
  • See here for information on how the Bitrate Scoring works

Legend

Season Releases
Season 1 - Indigo League 9
@rlaphoenix
rlaphoenix / dvd-bible-by-phoenix.md
Last active April 4, 2024 21:27
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
@rlaphoenix
rlaphoenix / why-you-shouldnt-use-triticals-tdecimate.md
Last active January 8, 2024 01:15
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?

@rlaphoenix
rlaphoenix / packer.py
Created June 3, 2020 19:53
Pack rar files into neat split volumes based on max volume size and max volume count.
# std
import os
import glob
import math
import subprocess
import binascii
import argparse
# Arguments
ArgParser = argparse.ArgumentParser()
@rlaphoenix
rlaphoenix / Win32RawDevice.py
Last active June 30, 2022 14:13
Win32RawDevice - A simple class that allows you to read a Disk device like you can on Linux with random-access read/seeks.
"""
This was made to add support for raw block devices on Windows while keeping arbitrary .seek() and .read() support.
Accessing raw block devices on Windows limits seeks to be a multiple of their sector size. Effectively only able to
seek to specific sector numbers and only able to read a full sector.
This class adds a hacky but surprisingly stable method of using a raw block device as if those restrictions were not
in place. Interally it follows the restriction but returns only the data that was requested.
The goal was to add direct support in pycdlib. This has been done as of v1.13.0!
https://github.com/clalancette/pycdlib/blob/7e96f95624b97cfa4e59cc61b2b86ed411f9e3aa/pycdlib/utils.py#L441=
@rlaphoenix
rlaphoenix / renamer.py
Created June 20, 2020 11:54
Dataset Helper - Renamer: Renames a bunch of png files based on filename integer-wise to start at 1
import argparse
import glob
import os
import re
ArgParser = argparse.ArgumentParser()
ArgParser.add_argument("-i", "--input", help="Input folder", required=True)
args = ArgParser.parse_args()
for n, file_path in enumerate(sorted(
@rlaphoenix
rlaphoenix / cvs2git-just-fucking-work-edition.options
Created July 25, 2020 15:14
cvs2git-just-fucking-work-edition.options
# (Be in -*- mode: python; coding: utf-8 -*- mode.)
#
# ====================================================================
# Copyright (c) 2006-2010 CollabNet. All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://subversion.tigris.org/license-1.html.
# If newer versions of this license are posted there, you may use a
# newer version instead, at your option.
@rlaphoenix
rlaphoenix / start-nitro.bat
Last active July 27, 2020 03:20
start-nitro.bat - Start up a Windows build environment using Cygwin for Nintendo NITRO-System (Nintendo DS) compiling.
@ECHO OFF
REM Set this to the location of the Nitro development files (Don't put a \ or / at the end)
SET NITROENV=C:\Users\PHOENiX\NitroEnv
REM Set this to wherever you wish to store all of the code your gonna compile
SET NITROCODE=C:\Users\PHOENiX\NitroCode
REM Don't edit these
SET CW_NITROSDK_ROOT=%NITROENV%\NitroSDK