GIFT-Grab

A C++ and NumPy-compatible Python API for acquiring, processing and encoding video streams in real time


Keywords
multi-channel, video, capture, real-time, encoding, processing, hardware-accelerated, GPU, frame-grabber, hardware, network, streaming, Epiphan, DVI2PCIe, Duo, Blackmagic, DeckLink, SDI, 4K, Pearl, Xvid, H, 265, H265, VP9, HEVC, C++, Python, NumPy, SciPy, GIFT-Surg
License
BSD-3-Clause
Install
pip install GIFT-Grab==1705

Documentation

GIFT-Grab

GIFT-Grab is an open-source C++ and Python API for acquiring, processing and encoding video streams in real time.

GIFT-Grab supports several frame-grabber cards, standard-compliant network streams and video files.

The Python API is compatible with NumPy and SciPy. Please note that currently only Python 2 is supported.

Features

  • Capturing video streams using frame-grabber hardware, the following cards are supported:
  • Capturing standard-compliant network video streams
  • Reading (decoding) video files
  • Writing (encoding) video files (including real-time encoding), the following formats are supported:
  • Exposing video data as NumPy arrays for processing with NumPy-compatible Python libraries

Getting started

Citing GIFT-Grab

If you use GIFT-Grab in your work, please cite Shakir et al. (2017):

BibTeX entry:

@article{giftgrab17,
  author = {Dzhoshkun Ismail Shakir and Luis Carlos Garc\'{i}a-Peraza-Herrera and Pankaj Daga and Tom Doel and Matthew J. Clarkson and S\'{e}bastien Ourselin and Tom Vercauteren},
  title = {{GIFT-Grab: Real-time C++ and Python multi-channel video capture, processing and encoding API}},
  journal = {{Journal of Open Research Software}},
  year = {2017},
  number = {1},
  pages = {27},
  month = {10},
  day = {9},
  volume = {5},
  url = {http://doi.org/10.5334/jors.169},
  doi = {http://doi.org/10.5334/jors.169},
}

Support and contributing

Please see the contribution guide for bug reports, feature requests, and if you would like to contribute to GIFT-Grab.

Licensing and copyright

Copyright (c) 2015-7, University College London

GIFT-Grab is available as free open-source software under the BSD-3-Clause licence. Please see the LICENSE file for details.

Other licences may apply for the GIFT-Grab dependencies. Please see the dependency installation guidelines for the implications of using them with regards to licensing.

Acknowledgements

GIFT-Grab was developed as part of the GIFT-Surg project at the Translational Imaging Group in the Centre for Medical Image Computing at University College London (UCL).

This work was supported through an Innovative Engineering for Health award by the Wellcome Trust [WT101957], the Engineering and Physical Sciences Research Council [NS/A000027/1] and a National Institute for Health Research Biomedical Research Centre UCLH / UCL High Impact Initiative.