Skip to content

justin8/video_utils

Repository files navigation

Video Utils

Supported Python Versions PyPI version

Workflow codecov Downloads

This library provides utilities for dealing with TV show and Movie files and the metadata around them.

Example Usage

from video_utils import FileMap

def run():
    f = FileMap("/path/to/videos")
    f.load() # By default, this will load the cached metadata, and then update files that have changed in size

    for directory in f.contents:
        for video in f.contents[directory]:
            codec = video.codec
            print(codec.pretty_name) # x265
            print(video.quality) # 1080p
            print(video.full_path)
            print(video.size) # in bytes
            print(video)
            video.refresh() # force a refresh of the video metadata, will only occur if filesize has changed.

run()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published