mirror of
https://github.com/k4yt3x/video2x.git
synced 2026-03-03 05:17:32 +08:00
initial
This commit is contained in:
26
video2x.py
Normal file
26
video2x.py
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Name: Video2x Controller
|
||||
Author: K4YT3X
|
||||
Date Created: Feb 24, 2018
|
||||
Last Modified: Feb 24, 2018
|
||||
|
||||
Description: This is the main controller for Video2x
|
||||
|
||||
Version 1.0
|
||||
"""
|
||||
|
||||
from ffmpeg import FFMPEG
|
||||
from waifu2x import WAIFU2X
|
||||
import os
|
||||
|
||||
fm = FFMPEG()
|
||||
w2 = WAIFU2X()
|
||||
if not os.path.isdir("frames"):
|
||||
os.mkdir("frames")
|
||||
fm.strip_frames("testf.mp4", "frames")
|
||||
|
||||
if not os.path.isdir("upscaled"):
|
||||
os.mkdir("upscaled")
|
||||
w2.upscale("frames", "upscaled")
|
||||
Reference in New Issue
Block a user