Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
shitposting somewhere

Dave OrangeChannel

😎
shitposting somewhere
View GitHub Profile
@OrangeChannel
OrangeChannel / fractions_ext.py
Created Nov 8, 2020
Function that extends the standard library Fraction constructor behavior to accept non-rational values.
View fractions_ext.py
import math
import fractions
import numbers
def Frac(
numerator: numbers.Real,
denominator: numbers.Real = 1,
frac_acc: int = 100,
places: int = 9,
@OrangeChannel
OrangeChannel / ipython_config.py
Last active Oct 23, 2020
IPython setup for vs shit and engineering
View ipython_config.py
c.InteractiveShell.banner2 = '"math", "Fraction", "Decimal", "vs", and "core" added to dir.\nRich formatting has been activated for `print` and repr.\ndtrig functions added to math module.\nSI base units have been added to dir.\nPint\'s `ureg` and `Q_` constructor added to dir.'
c.TerminalInteractiveShell.confirm_exit = False
c.InteractiveShellApp.extensions.append("yuuno")
c.InteractiveShellApp.exec_lines = [
'import math',
'import vapoursynth as vs',
'core = vs.core',
@OrangeChannel
OrangeChannel / ref_none_blanktrack_own_noneattach_own_bothattach.log
Created Aug 15, 2020
Unexpectedly works, loads attachments from segment B into segment A
View ref_none_blanktrack_own_noneattach_own_bothattach.log
[ 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 / ref_both_blanktrack_own_noneattach_own_noneattach.log
Created Aug 15, 2020
Works perfectly, but not sure this is how it should work, this is probably good behavior though. All fonts get loaded from host file as none of the external segments have attachments.
View ref_both_blanktrack_own_noneattach_own_noneattach.log
[ 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 / ref_none_blanktrack_own_bothattach_own_noneattach.log
Created Aug 15, 2020
Unexpectedly works (probably shouldn't) both fonts get loaded although there are NO attachments in the second file, nor the host file. All attachments are loaded from the first segment. L2913 and L5575
View ref_none_blanktrack_own_bothattach_own_noneattach.log
[ 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 / ref_none_blanktrack_own_noneattach_own_ownattach.log
Created Aug 15, 2020
Works exactly as expected, first clip has no font (because its missing the attachment) and second clip loads its own font fine.
View ref_none_blanktrack_own_noneattach_own_ownattach.log
[ 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 / ref_both_notrack_own_noneattach_own_bothattach.log
Created Aug 15, 2020
Completely broken, this has a local segment, both attachments, but doesn't even attempt to read the subtitle track from any of the source files. Last clip here should theoretically work, with the first one working only if attachments from host file are somehow loaded first.
View ref_both_notrack_own_noneattach_own_bothattach.log
[ 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_ownattach_own_ownattach.log
Created Aug 15, 2020
Second font fails to load, first works L2145, L2672, no fontselect nor sub/ass after L5326
View pure_both_notrack_own_ownattach_own_ownattach.log
[ 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 Aug 15, 2020
Doesn't work, last file should though, L2236, L2762, L5126
View pure_both_notrack_own_noneattach_own_bothattach.log
[ 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
View pure_both_notrack_own_bothattach_own_noneattach.log
[ 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