Skip to content

Instantly share code, notes, and snippets.

View OrangeChannel's full-sized avatar
😎
shitposting somewhere

Dave OrangeChannel

😎
shitposting somewhere
View GitHub Profile
chapters = {
'01|Part A': (0, 3770),
'01|Title Card': (3771, 3860),
'01|Part B': (3861, 20883),
'01|Middle Card': (20884, 21003),
'01|Part C': (21004, 30041),
'01|OP': (30042, 32200),
'01|Part D': (32201, 33685),
'01|Preview': (33686, 34045),
@OrangeChannel
OrangeChannel / ordered_chapters.py
Created March 17, 2020 09:35
now to actually explain what the fuck is going on here...
"""Helper functions for creating ordered chapters releases from a BDMV."""
__author__ = 'Dave <orangechannel@pm.me>'
__date__ = '15 March 2020'
from os import urandom
from random import choice, sample, randint
from sys import byteorder
from typing import Dict, List, Tuple, Union
import xml.etree.ElementTree as ET
@OrangeChannel
OrangeChannel / .SRCINFO
Last active March 19, 2020 10:28
acsuite AUR package files
pkgbase = vapoursynth-tools-acsuite-git
pkgdesc = Tools for Vapoursynth: acsuite (GIT version)
pkgver = 3.0.0.r1.gc14204b
pkgrel = 1
url = https://github.com/OrangeChannel/acsuite
arch = any
license = GPL
makedepends = git
depends = vapoursynth
depends = mkvtoolnix-cli
"""Exports frames for comparison websites."""
__author__ = 'Dave <orangechannel@pm.me>'
__date__ = '29 May 2020'
import os
import pathlib
from contextlib import contextmanager
from random import randint, sample
from typing import Optional, Union, NoReturn
import colorsys
import random
from enum import IntEnum
from typing import List, Literal
import vapoursynth as vs
core = vs.core
@OrangeChannel
OrangeChannel / compare.py
Created May 31, 2020 08:58
Comparison functions designed for use in an interactive previewer.
"""
Comparison functions designed for use in an interactive previewer.
"""
__author__ = 'Dave <orangechannel@pm.me>'
__date__ = '31 May 2020'
import colorsys
import random
from abc import ABC, abstractmethod
from enum import IntEnum
"""Fully automated ordered chapters creation from a remuxed BDMV."""
__author__ = 'Dave <orangechannel@pm.me>'
__date__ = '1 August 2020'
import copy
import fractions
import functools
import operator
import os
import pathlib
@OrangeChannel
OrangeChannel / pure_both_notrack_own_bothattach_own_bothattach.log
Created August 15, 2020 19:38
Works as expected, L2110, L2672, L5320
[ 0.003][v][cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[ 0.003][v][cplayer] built on UNKNOWN
[ 0.003][v][cplayer] ffmpeg library versions:
[ 0.003][v][cplayer] libavutil 56.31.100
[ 0.003][v][cplayer] libavcodec 58.54.100
[ 0.003][v][cplayer] libavformat 58.29.100
[ 0.003][v][cplayer] libswscale 5.5.100
[ 0.003][v][cplayer] libavfilter 7.57.100
[ 0.003][v][cplayer] libswresample 3.5.100
[ 0.003][v][cplayer] ffmpeg version: n4.2.4
@OrangeChannel
OrangeChannel / pure_both_notrack_own_bothattach_own_noneattach.log
Created August 15, 2020 19:53
Works, shouldn't though L2647, L5295
[ 0.003][v][cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[ 0.003][v][cplayer] built on UNKNOWN
[ 0.003][v][cplayer] ffmpeg library versions:
[ 0.003][v][cplayer] libavutil 56.31.100
[ 0.003][v][cplayer] libavcodec 58.54.100
[ 0.003][v][cplayer] libavformat 58.29.100
[ 0.003][v][cplayer] libswscale 5.5.100
[ 0.003][v][cplayer] libavfilter 7.57.100
[ 0.003][v][cplayer] libswresample 3.5.100
[ 0.003][v][cplayer] ffmpeg version: n4.2.4
@OrangeChannel
OrangeChannel / pure_both_notrack_own_noneattach_own_bothattach.log
Created August 15, 2020 19:55
Doesn't work, last file should though, L2236, L2762, L5126
[ 0.003][v][cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[ 0.003][v][cplayer] built on UNKNOWN
[ 0.003][v][cplayer] ffmpeg library versions:
[ 0.003][v][cplayer] libavutil 56.31.100
[ 0.003][v][cplayer] libavcodec 58.54.100
[ 0.003][v][cplayer] libavformat 58.29.100
[ 0.003][v][cplayer] libswscale 5.5.100
[ 0.003][v][cplayer] libavfilter 7.57.100
[ 0.003][v][cplayer] libswresample 3.5.100
[ 0.003][v][cplayer] ffmpeg version: n4.2.4