Skip to main content

The Video Writer Package is a Python library designed to simplify the process of capturing frames and saving them as video files. It provides an easy-to-use interface for creating video files from sequences of frames using the OpenCV library.

Project description

Video Writer Package

The Video Writer Package is a simple Python library that provides a wrapper around OpenCV's VideoWriter functionality, allowing you to easily capture frames and save them as video files.

Installation

To install the Video Writer Package, you can use pip:

pip install Cvwriter

Parameters

  • filename: The name of the output video file.
  • fps: Frames per second for the output video.
  • frame_size: Tuple representing the dimensions (width, height) of the frames.

Supported Codecs (FourCC)

  • 'XVID': Xvid codec
  • 'H264' or 'H265': H.264 (AVC) or H.265 (HEVC) codecs for MP4 videos
  • 'MP4': Motion JPEG codec

Uses

from Cvwriter.video_writer import  VideoWriterWrapper


video_writer = VideoWriterWrapper('output.avi/output.mp4..', fps, size)

video_writer.write_frame(frame)
video_writer.save_image(frame, name)

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

Cvwriter-0.0.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Cvwriter-0.0.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file Cvwriter-0.0.3.tar.gz.

File metadata

  • Download URL: Cvwriter-0.0.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for Cvwriter-0.0.3.tar.gz
Algorithm Hash digest
SHA256 db4ad9c3de882a64019f99c5e887cceead2f67423951efe9998149335b5d6c62
MD5 f0cde066a38abbdeecb626958a5b8364
BLAKE2b-256 a63366f1353fc4957f3089bc66bf414446f6f6c76d13b2ae0f4c63c86f2c4b8e

See more details on using hashes here.

File details

Details for the file Cvwriter-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: Cvwriter-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for Cvwriter-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b98c2687c1b20bd254cc5dfdbdd0921d6f8fd153fbfe79c71d862b8809512edd
MD5 2ecd8ff19a1d9639362fb41a933afcdf
BLAKE2b-256 6ff7973ce439b516ec34a40f21c0ea100678c1e566dea5dac773eeefef12d9f4

See more details on using hashes here.

Supported by

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