Giter Site home page Giter Site logo

gst_app_tutorial's Introduction

An informal GStreamer C++ tutorial, focused on appsrc and appsink

By Oleksiy Grechnyev, IT-JIM, 2022.

https://www.it-jim.com/

This does not replace, but complements the official GStreamer tutorials. Here we focus on using appsrc and appsink for custom video (or audio) processing in the C++ code. In such situation, GStreamer is used mainly for encoding and decoding of various audio and video formats.

Note: Our examples are written in C++ and not C. We are NOT using any GLib stuff we don't really need. This includes the GLib "main loop". Our code is well-commented. For the best experience, follow the examples in the order specified below.

On Linux, the code builds fine with CMake.
On other OS-es, you'll probably have to replace pkg-config with something else.
OpenCV is used in some examples for custom image processing.

The examples:

  • fun1 : An (almost) minimal GStreamer C++ example
  • fun2 : Creating pipeline by hand, message processing
  • capinfo : Information on pads, caps and elements, otherwise similar to fun2
  • video1: Send video to appsink, display with cv::imshow()
  • video2 : Decode a video file with opencv and send to a gstreamer pipeline via appsrc
  • video3 : Two pipelines, with custom video processing in the middle, no audio
  • audio1 : Two audio pipelines, with custom audio processing in the middle, no video
  • av1 : Two pipelines, with both audio and video (video3 + audio1 combined !)

gst_app_tutorial's People

Contributors

agrechnev avatar

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.