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

Uploaded Source

Built Distribution

Cvwriter-0.0.3-py3-none-any.whl (3.2 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