Skip to content

A lightweight module for simple handling of video frames and audio.

Notifications You must be signed in to change notification settings

Shahaf-F-S/pyvideo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyvideo

A lightweight module for simple handling of video frames and audio.

Installation

pip install python-video

example

from pyvideo import Video

SOURCE = "media/videos/input/milo.mp4"
DESTINATION = "media/videos/output/milo.mp4"

video = Video.load(SOURCE)

video = (
  video.
  copy().
  cut(start=100).
  crop(upper_left=(0, 0), lower_right=(368, 656)).
  rescale(factor=0.75).
  color(contrast=1.25, brightness=0.75).
  volume(factor=5.5).
  speed(factor=1.5).
  flip(horizontally=True)
)

video.save(DESTINATION)

About

A lightweight module for simple handling of video frames and audio.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages