Giter VIP home page Giter VIP logo

nvmpi-portable's Introduction

nvmpi-portable

L4T (Linux for Tegra) Multimedia API with ffmpeg, jetson-ffmpeg, and opencv4. This is a lightweight portable API for hardware-accelerated encoding/decoding on NVIDIA Jetson.

Installation

  1. Dependencies
  1. nvmpi-portable
git clone https://github.com/jheo4/nvmpi-portable.git
cd nvmpi-portable && mkdir build
cd build && cmake ..
make -j$(nproc) && sudo make install
  1. testing
g++ nvmpi_test.cc `pkg-config --libs --cflags libavcodec libavformat libavutil opencv4 nvmpi `
g++ portable_test.cc `pkg-config --libs --cflags libavcodec libavformat libavutil opencv4 nvmpi nvmpi_portable`

What nvmpi-portable is?

It's for HW-accelerated encoding/decoding at the code level and each frame granularity. jetson-ffmpeg is easily usable with ffmpeg, but there are some glitches using it with libavcodec. It seems because of the discrepancies between libavcodec contexts and jetson-ffmpeg. So, instead of using nvmpi via libavcodec interfaces, nvmpi-portable directly use nvmpi for encoding/decoding. nvmpi-portable has dependencies of nvmpi, ffmpeg, and opencv4 because nvmpi-portable delegates the image/video-related compelxities to them. Moreover, it is opencv compatible for better usability.

So, it can be easily usable as a library and integratble to other projects; I wrote this to use for my research project :). You can compare the compelxities between nvmpi_test.cc and portable_test.cc.

Credit & References

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.