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.3.tar.gz (48.4 kB 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.3-py3-none-any.whl (48.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iva-cv-0.1.3.tar.gz
  • Upload date:
  • Size: 48.4 kB
  • 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.3.tar.gz
Algorithm Hash digest
SHA256 b3a68c2be60330bc9af595b1fa445b29bea633009cacbff2c5467c2b36f0f363
MD5 ae8395223045119a1f35e9b62a3ab438
BLAKE2b-256 85f7adb9bab5fb7cfbd860e6bb196f98e68741cc769da70b759c412626568f32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iva_cv-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b64421ce51a591a58a0a319acd5d521f808ccc69cda027b653ae4842c87dee7
MD5 ac35caa99f8d76dfcee391e11c5f0ecf
BLAKE2b-256 25c36cbfff8644fa34667739b3ef563143d35d702d6bcf2217cddd5108b8b7a4

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