Skip to content

Instantly share code, notes, and snippets.

View OrangeChannel's full-sized avatar
😎
shitposting somewhere

Dave OrangeChannel

😎
shitposting somewhere
View GitHub Profile
@OrangeChannel
OrangeChannel / fractions_ext.py
Created November 8, 2020 23:52
Function that extends the standard library Fraction constructor behavior to accept non-rational values.
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 October 23, 2020 18:50
IPython setup for vs shit and engineering
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 August 15, 2020 21:20
Unexpectedly works, loads attachments from segment B into segment A
[ 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 August 15, 2020 20:37
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.
[ 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 August 15, 2020 20:29
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
[ 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 August 15, 2020 20:25
Works exactly as expected, first clip has no font (because its missing the attachment) and second clip loads its own font fine.
[ 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 August 15, 2020 20:22
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.
[ 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 August 15, 2020 20:08
Second font fails to load, first works L2145, L2672, no fontselect nor sub/ass after L5326
[ 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
@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