GithubHelp home page GithubHelp logo

sariskaio / gst-python-examples Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 64 MB

Gst-Python Examples: Explore GStreamer with Python through a collection of examples showcasing multimedia processing

License: MIT License

gstreamer gst-python

gst-python-examples's Introduction

gst-python-examples

This repository contains examples of GStreamer pipelines written in Python.

Prerequisites

Make sure you have Python and GStreamer installed on your system. If you're using Ubuntu, you can install them with:

sudo apt-get install python3 python3-gst-1.0 gstreamer1.0-plugins-good

Running the examples

The examples are located in the examples folder.

To run an example, navigate to the examples directory in your terminal and run the Python script with Python. For example, if you want to run example1.py, you would use:

cd examples
python example1.py

Replace example1.py with the name of the script you want to run.

Note: In case of helloworld.py, you'd need to pass the path to the file you want to play in the argument like this:

python helloworld.py ../assets/video.mp4

Usage per examples

  1. Ensure GStreamer is installed on your system.

  2. Run the script using Python 3:

    python3 add-sources-and-sinks-in-sequence.py
  3. Modify the script to customize the grid layout and total number of participants.

Customization

  • To change the number of columns in the grid, modify the num_cols variable in the add_video_source function.

  • To change the total number of participants, modify the total_participants variable in the main function.

Features

  • Dynamic Participants: Participants are dynamically added and removed at runtime.

  • Grid Layout: Video sources are arranged in a grid using the compositor element.

  • Real-time Adjustments: The pipeline adapts in real-time to changes in the number of participants.

Troubleshooting

If you encounter any issues, make sure you have the latest versions of Python and GStreamer installed. If the problem persists, please open an issue on GitHub.

gst-python-examples's People

Contributors

dipak140 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.