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.1.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.1-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iva-cv-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c4f7222908d3ace2a0735791b935150b23d59d01851440ffa019de981a106b59
MD5 6e6f1fb708a1235b2889be246abad735
BLAKE2b-256 8854cf8e2e4ee2be1e00adb928911ca1dc542a4d48bd25e1f61fa34374a0b93d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iva_cv-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04edc9182356ade3eeccbe8613a3ad02e7d39df90c5de1c26c3b71a8aeacf703
MD5 4c9ae9b5729fc58e0d1fc826fa82323a
BLAKE2b-256 650cbd9573d2475784b74ae6d680448bfe4f327f969cba2ac5b976bf2c7cecd2

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