Skip to main content

Video compiler

Project description

VComp

Video compiler framework

Getting started

from vcompy import Video, Text, Compiler

FPS = 60
VIDEO_SIZE = (1280, 720)

vid = Video.from_file("/path/to/file.mp4")
text = Text("Hey, this thing is working!", font="/path/to/font", fontsize=16, duration=(2 * FPS), position=(0, 0))

compiler = Compiler.simple([vid, tex])
compiler.duration = 2 * FPS
compiler.fps = FPS
compiler.size = VIDEO_SIZE

for progress in compiler.save_as("output.mp4"):
	print(f"{progress}/{compiler.get_duration()}", end='\r')

print()

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

vcompy-0.1.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

vcompy-0.1.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

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