Skip to content

olibartfast/videocapture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VideoCapture

VideoCapture is a C++ library for video capturing, supporting various backends such as OpenCV and optionally GStreamer.

Features

  • Capture video from different sources using OpenCV
  • Optional support for GStreamer to enhance video capturing capabilities
  • Integration with other C++ projects using modern CMake

Requirements

  • CMake 3.20 or higher
  • C++17 compatible compiler
  • OpenCV

Optional

  • GStreamer (if USE_GSTREAMER is enabled)

Installation

Prerequisites

Ensure you have the required dependencies installed:

Build Instructions

  1. Clone the repository:

    git clone https://github.com/olibartfast/VideoCapture.git
    cd VideoCapture
  2. Configure and build the project with CMake:

    cmake -B build -S . -DUSE_GSTREAMER=ON
    cmake --build build

    Use -DUSE_GSTREAMER=OFF to disable GStreamer support.

Running the Application

After building the project, you can run the sample application:

./build/bin/VideoCaptureApp <path/to/video>

Using in Your Project

To use VideoCapture in your project, you can use CMake's FetchContent:

include(FetchContent)
FetchContent_Declare(
  VideoCapture
  GIT_REPOSITORY https://github.com/olibartfast/VideoCapture.git
  GIT_TAG        main  # or the specific tag/branch you want to use
)
FetchContent_MakeAvailable(VideoCapture)

target_link_libraries(your_target PRIVATE VideoCapture)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published