Skip to main content

Custom OpenCV with FFmpeg & GStreamer support

Project description

iva-cv

iva-cv is a Python package that provides a custom build of OpenCV with enhanced support for FFmpeg (H.264/H.265) and GStreamer.
This package allows easy installation of a pre-built OpenCV version, while requiring certain system-level dependencies to be pre-installed.


🚀 Features

  • Custom OpenCV build with:
    • FFmpeg (H.264/H.265 codec) support
    • GStreamer support for high-quality video streaming
  • Compatible with Linux and macOS (as of now)
  • Packaged as a Python wheel for easy pip install

⚙️ System Prerequisites

Before installing iva-cv, ensure the following system libraries are installed:

📹 FFmpeg

  • Must include codecs: H.264, H.265
  • Install on Ubuntu/Debian:
    sudo apt update
    sudo apt install ffmpeg libavcodec-dev libavformat-dev libavutil-dev libswscale-dev
    

Verify installation:

   ffmpeg -codecs | grep -E "h264|hevc"

🎥 GStreamer

Required for high-quality video streaming support

  • Install on Ubuntu/Debian:
    sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
    gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav
    
  • Verify installation
    gst-inspect-1.0 --version
    

📦 Installation

  • 1️⃣: Install Prerequisites (as above)

  • 2️⃣: Install iva-cv Python Package

    pip install iva-cv
    
    • Or directly from a wheel file [if you have it]
        pip install iva_cv-0.1.0-py3-none-any.whl
    

🧪 Basic Usage

    import iva_cv as cv2
    print(cv2.__version__)
    print(cv2.getBuildInformation())

🐞 Troubleshooting

  • cv2 module not found --> Ensure you installed iva-cv in your virtual environment or system.
  • FFmpeg or GStreamer errors --> Double-check that system dependencies are installed and include H.264/H.265 codecs.
  • Symbolic link or path issues --> Some installations might require adding /usr/local/lib to your LD_LIBRARY_PATH:

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

iva-cv-0.1.2.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

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

iva_cv-0.1.2-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file iva-cv-0.1.2.tar.gz.

File metadata

  • Download URL: iva-cv-0.1.2.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for iva-cv-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1b70cf39db3b6efdd3b9cbd1d62b30cf5949bfbd8accbf74d376030090069864
MD5 ca1f58196aa572a298387dba5262df23
BLAKE2b-256 bab1aa18d8b2c79117420a2c07e93db8c397aec2fe6d7d2ea8984d0b4ebbf7a2

See more details on using hashes here.

File details

Details for the file iva_cv-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: iva_cv-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for iva_cv-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7f723bea6e2cf3671b3e6dc00847ca8289fb6125e29d285c396d11614970023f
MD5 b694e6612dbecb9c1be86f8426cf2195
BLAKE2b-256 c71e06bf787521048435d0e4d9420b20eb8d0b4df91f20defe8e7cb30d557dec

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