Coder Social home page Coder Social logo

gst-learn's Introduction

gst-learn

Format C++ code

apt install clang-format -y
clang-format -style=microsoft -dump-config > .clang-format
sed -i 's/AlwaysBreakTemplateDeclarations: MultiLine/AlwaysBreakTemplateDeclarations: false/g' .clang-format

# To use
find . -regex '.*\.\(c\|cc\|cpp\|cxx\|cu\|h\|hh\|hpp\|hxx\|inl\|inc\|ipp\|m\|mm\)$' -exec clang-format -style=file -i {} \;

Pre-commit

python3 -m pip install pre-commit
pre-commit install      # runs every time you commit in git
pre-commit run -a       # To use
pre-commit autoupdate   # To update this file

Tutorials

  • Be notified of events using GSignals.

  • Connect GstPads directly instead of their parent elements.

  • The various states of a GStreamer element.

  • How to query the pipeline for information using GstQuery

  • How to obtain common information like position and duration using gst_element_query_position() and gst_element_query_duration().

  • How to seek to an arbitrary position in the stream using gst_element_seek_simple().

  • In which states all these operations can be performed.

  • How to output the video to a particular GTK Widget using the gtksink Element.

  • How to refresh the GUI periodically by registering a timeout callback with g_timeout_add_seconds().

  • How to convey information to the main thread by means of application messages through the bus with gst_element_post_message().

  • How to be notified only of interesting messages by making the bus emit signals with gst_bus_add_signal_watch() and discriminating among all message types using the signal details.

  • What are Pad Capabilities and Pad Template Capabilities.

  • How to retrieve them with gst_pad_get_current_caps() or gst_pad_query_caps().

  • That they have different meaning depending on the state of the pipeline (initially they indicate all the possible Capabilities, later they indicate the currently negotiated Caps for the Pad).

  • That Pad Caps are important to know beforehand if two elements can be linked together.

  • That Pad Caps can be found using the gst-inspect-1.0 tool described in Basic tutorial 10: GStreamer tools.

  • How to make parts of a pipeline run on a different thread by using queue elements.

  • What is a Request Pad and how to link elements with request pads, with gst_element_request_pad_simple(), gst_pad_link() and gst_element_release_request_pad().

  • How to have the same stream available in different branches by using tee elements.

gst-learn's People

Contributors

datlt4 avatar

Stargazers

Long Duong avatar

Watchers

 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.