Skip to content

Instantly share code, notes, and snippets.

@stuxcrystal
Created January 6, 2017 19:59
Show Gist options
  • Save stuxcrystal/8d8c0e2508a4f49ee7f0607d6d8f6c95 to your computer and use it in GitHub Desktop.
Save stuxcrystal/8d8c0e2508a4f49ee7f0607d6d8f6c95 to your computer and use it in GitHub Desktop.
# coding: utf-8
# In[1]:
import sys
sys.path.append("..")
# In[2]:
import yuuno
yuuno.install()
# In[3]:
import PIL
# In[4]:
from yuuno.vsimg import frame2image
from vapoursynth import get_core
core = get_core()
src = core.ffms2.Source(r"E:\Encoding\python\cut_123.avi")
# In[5]:
src[307]
# In[6]:
from yuuno.vendor import mvsfunc as mvf
# In[7]:
mvf
# In[8]:
src
# In[9]:
src[250]
# In[10]:
import vapoursynth as vs
vs.get_core().std.ShufflePlanes(clips=src, planes=2, colorfamily=vs.GRAY)[307]
# In[11]:
vs.Core
# In[12]:
src.format
# In[13]:
src.set_output()
# In[14]:
vs.get_core()
# In[15]:
a = src.resize.Spline36(1920, 1080)
vs.get_core().std.ShufflePlanes(clips=a, planes=2, colorfamily=vs.GRAY)[307]
# In[16]:
yuuno
# In[17]:
yuuno.diff_frames(src[400], src[401])
# In[18]:
yuuno.diff_frames(src[307::2])
a = vs.get_core().std.ShufflePlanes(clips=src, planes=2, colorfamily=vs.GRAY)
b = vs.get_core().std.ShufflePlanes(clips=src, planes=1, colorfamily=vs.GRAY)
yuuno.diff_frames(a, b, frameno=307)
# In[19]:
src.format
# In[21]:
yuuno.frame_step(a, b)
# In[22]:
while True:
pass
# In[ ]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment