Skip to main content

Collection of video processes such as Optimize, Upscale and Interpolation.

Project description

VideoScripy

VideoScripy is a collection of video processes including video Optimization, Upscale and frame Interpolation.

It uses Python to generate FFmpeg, Real-ESRGAN and IFRNet command line script to performes serial processing on scanned mp4 and mkv videos.

⚠ Only compatible with Windows users who have Nvidia cards.

Requirements

  • Windows OS

  • NVIDIA card

Following tools in the environment variable PATH :

Usage

from videoscripy import VideoScripy

vs = VideoScripy(__file__)

# get current folder video(s)
vs.getVideo(folderDepthLimit=0)
vs.getVideoInfo()

# run process(es)
vs.optimize()
# vs.resize()
# vs.upscale()
# vs.interpolate()
# vs.merge()

Or directly call vscli.exe

Processes Description

  • optimize

    Reduce the video biteRate in order to gain storage space.
    The processed videos will have a bitRate = width * height * quality, which quality=3 is generally the lowest value before appearance of artifacts (bad images, blurry...). In other words, humain wont notice the visual difference between video of quality 3 and 6.

  • resize

    Reduce the video width and height.

  • upscale

    Recover old video from 360p to 4K, enhance video quality.
    Begin with a transformation of video to image frames, then upscale each frames, finally reassemble to video.
    It has the ability to start from last upscal progress if the "_upscaled_frame" wasn't deleted.

  • interpolate

    Increase video frame rate (FPS), smooth video motions.
    Begin with a transformation of video to image frames, then interpolate between frames, finally reassemble to video.

  • merge

    Merge all video, including each of its audio and subtitle by option, into mkv. Then use media player as PotPlayer to switch between video/audio/subtitle.

Credits

This project relies on the following software and projects.

TODO list

  • ✅ Stop upscale and interpolate process
  • ✅ Get video walk optimize
  • Check tools
  • Sort by name
  • replace "&" by "x" in video name
  • Add FFmpeg visual quality metrics (PSNR, SSIM, VMAF)
  • Better hevc_nvenc parameters
  • Better upscale recovery

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

videoscripy-0.0.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

VideoScripy-0.0.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file videoscripy-0.0.1.tar.gz.

File metadata

  • Download URL: videoscripy-0.0.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.8

File hashes

Hashes for videoscripy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0cf0ac9063f3a01e52a672f4eb6e2cb971f3aa4c1868a05a831ba428d451c2f6
MD5 bba12df89d85d01cb564841411c1227d
BLAKE2b-256 f099c3b99bc03df5c1a595bb4373c611e8409f3c1be4a75e7f9e84df83889f06

See more details on using hashes here.

File details

Details for the file VideoScripy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: VideoScripy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.8

File hashes

Hashes for VideoScripy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8e92188ab2d9f2081b51624330894af1bcf7c17cd19a2b6e01daa3b4c96a540
MD5 4f05a4dc94ec9586237ccb36960e19da
BLAKE2b-256 6818d949ba2fe31280fc819923f858ef27012809a4d1b844c2821a0189d4b304

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page