I hereby claim:
- I am stuxcrystal on github.
- I am stux (https://keybase.io/stux) on keybase.
- I have a public key whose fingerprint is 8C1C 8441 6B29 AEDC 0589 131C 62A2 88D6 5876 0C71
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import vsimport | |
from ffms2 import Source | |
clip = Source("/path/to/your/clip.mkv") | |
clip.set_output() |
from collections import namedtuple | |
def find_keyframes(clip, frame, epsilon=7): | |
for i, frame in enumerate(map(clip.get_frame, range(frame-epsilon, frame+epsilon))): | |
if frame.props.Scenechange: | |
yield i | |
TimeFrame = namedtuple("TimeFrame", "start end") | |
def get_nearest_scenechange(clip, start, end, epsilon=7): | |
core = vs.get_core(accept_lowercase=True) |
<!DOCTYPE html> | |
<html> | |
<head><meta charset="utf-8" /> | |
<title>importtest</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
<style type="text/css"> | |
/*! | |
* | |
* Twitter Bootstrap |
<!DOCTYPE html> | |
<html> | |
<head><meta charset="utf-8" /> | |
<title>importtest</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
<style type="text/css"> | |
/*! | |
* | |
* Twitter Bootstrap |
# coding: utf-8 | |
# In[1]: | |
import sys | |
sys.path.append("..") | |
# In[2]: |
from vapoursynth import core, YUV | |
def shuffle_uv(clip): | |
""" | |
This function should always work as the get_core-call is deferred until | |
getattr or setattr is actually called on the proxy. | |
""" | |
return core.std.ShufflePlanes([clip], [0,2,1], colorfamily=YUV) |
class Member(dict): | |
def __init__(self, name, *args, **kwargs): | |
super(Member, self).__init__(**kwargs) | |
self.name = name | |
class MemberStore(object): | |
def __init__(self): | |
self.members = {} | |
self.aliases = {} |
import vapoursynth as vs | |
import mvsfunc as mvf | |
import functools | |
core = vs.core # R37 or newer | |
# TODO autocrop? | |
def inverse_scale(source, width=None, height=720, kernel='bilinear', taps=5, a1=0.15, a2=0.5, mask_detail=False, |