Skip to content

Instantly share code, notes, and snippets.

@YamashitaRen
YamashitaRen / edi_rpow2.py
Last active December 26, 2023 19:33
Put it in Python\Lib\site-packages. Usage : import edi_rpow2 as edi \ edi.nnedi3_rpow2(clip,rfactor,...) \ edi.eedi3_rpow2(clip,rfactor,...) \ edi.eedi2_rpow2(clip,rfactor,...)
def nnedi3_rpow2(clip,rfactor,correct_shift="zimg",nsize=0,nns=3,qual=None,etype=None,pscrn=None,opt=None,int16_prescreener=None,int16_predictor=None,exp=None):
import vapoursynth as vs
core = vs.get_core()
def edi(clip,field,dh):
return core.nnedi3.nnedi3(clip=clip,field=field,dh=dh,nsize=nsize,nns=nns,qual=qual,etype=etype,pscrn=pscrn,opt=opt,int16_prescreener=int16_prescreener,int16_predictor=int16_predictor,exp=exp)
return edi_rpow2(clip=clip,rfactor=rfactor,correct_shift=correct_shift,edi=edi)
def znedi3_rpow2(clip,rfactor,correct_shift="zimg",nsize=0,nns=3,qual=None,etype=None,pscrn=None,opt=None,int16_prescreener=None,int16_predictor=None,exp=None):
@YamashitaRen
YamashitaRen / 10-Bit H.264
Last active October 5, 2023 15:54
10-Bit H.264 explanation
10-Bit H.264
For all those who haven’t heard of it already, here’s a quick rundown about the
newest trend in making our encodes unplayable on even more systems: So-called
high-bit-depth H.264. So, why another format, and what makes this stuff
different from what you know already?
First off: What is bit depth?
In short, bit depth is the level of precision that’s available for storing color
information. The encodes you’re used to have a precision of 8 bits (256 levels)
--preset <string> Use a preset to select encoding settings [medium]
Overridden by user settings.
- ultrafast:
--no-8x8dct --aq-mode 0 --b-adapt 0
--bframes 0 --no-cabac --no-deblock
--no-mbtree --me dia --no-mixed-refs
--partitions none --rc-lookahead 0 --ref 1
--scenecut 0 --subme 0 --trellis 0
--no-weightb --weightp 0
- superfast:
@YamashitaRen
YamashitaRen / mediainfo+.sh
Last active February 22, 2021 16:02
MediaInfoPlus is a convenient wrapper for MediaInfo.
#!/bin/bash
##
hash mediainfo 2>/dev/null || { echo >&2 "MediaInfo n'est pas installé. Installez-le avant de relancer ce script."; exit; }
hash ffmpeg 2>/dev/null || { echo >&2 "FFmpeg n'est pas installé. Installez-le avant de relancer ce script."; exit; }
if [ -z "$1" ]; then echo -e "N'oubliez pas de mettre le nom du fichier vidéo en argument.\nExemple : ./mediainfo+.sh [Katamuki]_Shinsekai_Yori_01_720p10_[A6BA1D0B].mkv"; exit; fi
if [ "$2" != "" ]; then echo -e "Mettez le nom du fichier vidéo entre guillemets.\nExemple : ./mediainfo+.sh \"[Katamuki] Shinsekai Yori 01 720p10 [A6BA1D0B].mkv\""; exit; fi
if [ $(ps -hp $$ | awk '{print $5}') != /bin/bash ]; then echo -e "Ce script doit être lancé avec bash.\nExemple : bash mediainfo+.sh [Katamuki]_Shinsekai_Yori_01_720p10_[A6BA1D0B].mkv"; exit; fi
Video="$1"
mediainfo=$(mediainfo "$Video")
@YamashitaRen
YamashitaRen / vsedit.desktop
Last active May 16, 2020 17:27
Raccourci pour VSEdit
[Desktop Entry]
Name=VSEdit
GenericName=VapourSynth Editor
Comment=Create or edit VapourSynth Scripts
Type=Application
MimeType=text/x-vpy;
Exec=env PYTHONPATH=/usr/local/lib/python3.8/site-packages /usr/local/bin/vsedit
Icon=vsedit
Terminal=false
StartupNotify=false
@YamashitaRen
YamashitaRen / koel-installation-docs_debian8.md
Created May 24, 2019 00:47 — forked from brahmlower/koel-installation-docs_debian8.md
This is installation documentation for installing Koel on Debian 8.

Installation on Debian 8

This is installation documentation for installing Koel on Debian 8.

Install Dependancies

Most packages can be installed via apt-get.

user@debian:~/$ sudo apt-get install -y apache2 mysql-server php5 php5-mysql g++ git curl

Composer

@YamashitaRen
YamashitaRen / OdroidBench
Last active February 23, 2019 00:19
Benchmark Odroid U2, N2 and H2
Odroid U2
H264 1080p 8 bits
$ time ffmpeg -i bbb_sunflower_1080p_30fps_normal.mp4 -map 0:v -c:v rawvideo -f nut -y /dev/null
frame=19036 fps= 36 q=-0.0 Lsize=57822535kB time=00:10:34.56 bitrate=746465.6kbits/s speed=1.19x
video:57821850kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001185%
real 8m55,587s
user 23m6,625s
sys 4m40,540s
@YamashitaRen
YamashitaRen / buildnewgcc.patch
Last active September 3, 2018 06:36
Fix build of turionpowercontrol with newer GCC.
commit b380377d028415e4fc59e018c1ecfa36ae3b878a
Author: Yamashita Ren <lemaitre.dulotus@yahoo.fr>
Date: Mon Sep 3 01:49:57 2018 +0200
Fix compilation with newer GCC.
diff --git a/MSVC_Round.cpp b/MSVC_Round.cpp
index 2200335..2d0bb8c 100644
--- a/MSVC_Round.cpp
+++ b/MSVC_Round.cpp
@YamashitaRen
YamashitaRen / PKGBUILD
Last active February 28, 2017 00:56
Anki
# $Id$
# Maintainer: Yamashita Ren
# Contributor: Sławomir Kowalski <suawekk+aur@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Timm Preetz <timm@preetz.us>
# Contributor: Michael 'manveru' Fellinger <m.fellinger@gmail.com>
# Contributor: Dave Pretty <david dot pretty at gmail dot com>
pkgname=anki20
pkgver=2.0.43
@YamashitaRen
YamashitaRen / Build log
Last active January 5, 2017 14:22
Crash bmdc
$ cmake -DUSE_MINIUPNP=ON -DLOCAL_MINIUPNP=ON ..
-- Building with UPNP support (miniupnpc)
CMake Error at CMakeLists.txt:159 (add_subdirectory):
The source directory
/home/quentin/build/bmdc/src/bmdc++/miniupnpc
does not contain a CMakeLists.txt file.