Skip to content

Instantly share code, notes, and snippets.

@YamashitaRen
YamashitaRen / yakuakefr.patch
Created July 7, 2015 23:08
Màj de la trad de yakuake-kf5
--- yakuake.po.1 2015-07-08 00:58:26.250331036 +0200
+++ yakuake.po 2015-07-08 01:03:14.280323421 +0200
@@ -1385,12 +1385,10 @@
msgstr "Console"
#: app/tabbar.cpp:949
-#, fuzzy, kde-format
-#| msgctxt "@title:tab"
-#| msgid "Shell No. <numid>%1</numid>"
+#, kde-format
FichierSource='mpv-shot0006.png'
import vapoursynth as vs
import functools
core=vs.get_core()
def band(x,y):
if x==y:
return 255
else:
@YamashitaRen
YamashitaRen / mt_lutspa.py
Created October 15, 2015 09:04 — forked from tp7/mt_lutspa.py
VSynth lutspa
# -*- coding: utf-8 -*-
import numpy as np
import vapoursynth as vs
def bool_to_number(function):
def wrapped(*args):
value = function(*args)
return np.where(value, np.array(1.0), np.array(-1.0))
return wrapped
@YamashitaRen
YamashitaRen / PKGBUILD
Last active February 14, 2016 16:37
vapoursynth-plugin-havsfunc-git-light
# Maintainer: Yamashita Ren
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
_plug=havsfunc
pkgname=vapoursynth-plugin-${_plug}-git-light
pkgver=r21.0.g1c17eda
pkgrel=1
pkgdesc="Plugin for Vapoursynth: ${_plug}. (GIT Version, light depends)"
arch=('any')
url='http://forum.doom9.org/showthread.php?t=166582'
import vapoursynth as vs
core = vs.get_core()
ClipA=core.ffms2.Source(source='[HorribleSubs] Kabaneri of the Iron Fortress - 02v2 [1080p].mkv')
ClipA=core.resize.Spline36(ClipA,854,480,vs.YUV440P8)
ClipT=core.ffms2.Source(source='[SAA] Koutetsujou no Kabaneri - 02 vostfr (1280x720 x264 AAC).mkv')
ClipT=core.resize.Spline36(ClipT,1913,1080,vs.YUV440P8)
ClipT=core.std.AddBorders(ClipT,3,4)
ClipT=core.resize.Spline36(ClipT,854,480)
@YamashitaRen
YamashitaRen / Awakening.db
Last active September 24, 2016 22:31
Results of my own awakenings.
@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.
@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 / 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 / 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