Skip to main content

This library provides utilities for dealing folders full of video files, including parsing out all metadata and intelligent caching.

Project description

Video Utils

Current version Downloads

Build status codecov

This library provides utilities for dealing folders full of video files, including parsing out all metadata and intelligent caching.

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()

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

video_utils-2.5.1.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

video_utils-2.5.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file video_utils-2.5.1.tar.gz.

File metadata

  • Download URL: video_utils-2.5.1.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for video_utils-2.5.1.tar.gz
Algorithm Hash digest
SHA256 5a1b74b8efe03ca6122ccbd3e753fc3d4c1501d4432379d61315976b215cef6c
MD5 d94a488da1102ca0fe348c910ed240db
BLAKE2b-256 5d00e7f684073ba1c771bdc752c51c73d5f97dd204b39f95a2d3cb1221585e3f

See more details on using hashes here.

File details

Details for the file video_utils-2.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for video_utils-2.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c27221914d921ebc769aebfc517d5bfe676e73cb96270f5e0983aa9b737ca63
MD5 e657585fe86f3e2c1e1df17c03aa649c
BLAKE2b-256 e6fbdeac342a05cd18e69b92b4bbf6b26463d4decb6a309abaa2f9d8e83eed9e

See more details on using hashes here.

Supported by

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