examples

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: LGPL-2.1 Imports: 2 Imported by: 0

README

Go-gst Examples

This directory contains examples of some common use cases of gstreamer using the go bindings.

The common package provided to each example exports two methods.

  • Run(f) - This wraps the given function in a goroutine and wraps a GMainLoop around it.
  • RunLoop(f(loop)) - This simply creates (but does not start) a GMainLoop and passes it to the example to manage.

Each example can be run in one of two ways:

# For single-file examples
go run <example>/main.go [..args]

# For multiple-file examples (but would also work for single file examples)
cd <example> && go build .
./<example> [..args]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(f func() error)

Run is used to wrap the given function in a main loop and print any error

func RunLoop

func RunLoop(f func(*glib.MainLoop) error)

RunLoop is used to wrap the given function in a main loop and print any error. The main loop itself is passed to the function for more control over exiting.

Types

This section is empty.

Directories

Path Synopsis
This example shows how to use the appsink element.
This example shows how to use the appsink element.
This example shows how to use the appsrc element.
This example shows how to use the appsrc element.
This example demonstrates the use of custom events in a pipeline.
This example demonstrates the use of custom events in a pipeline.
This example demonstrates the use of the decodebin element.
This example demonstrates the use of the decodebin element.
This example uses gstreamer's device monitor api.
This example uses gstreamer's device monitor api.
This example uses gstreamer's device provider api.
This example uses gstreamer's device provider api.
This example uses gstreamer's discoverer api.
This example uses gstreamer's discoverer api.
This example demonstrates how events can be created and sent to the pipeline.
This example demonstrates how events can be created and sent to the pipeline.
This example shows how to use the feature ranking.
This example shows how to use the feature ranking.
This example demonstrates using gstreamer to convert a video stream into image frames and then encoding those frames to a gif.
This example demonstrates using gstreamer to convert a video stream into image frames and then encoding those frames to a gif.
This is a simplified go-reimplementation of the gst-launch-<version> cli tool.
This is a simplified go-reimplementation of the gst-launch-<version> cli tool.
This example demonstrates the use of GStreamer's pad probe APIs.
This example demonstrates the use of GStreamer's pad probe APIs.
This example demonstrates GStreamer's playbin element.
This example demonstrates GStreamer's playbin element.
plugins
boilerplate
+plugin:Name=boilerplate +plugin:Description=My plugin written in go +plugin:Version=v0.0.2 +plugin:License=gst.LicenseLGPL +plugin:Source=go-gst +plugin:Package=examples +plugin:Origin=https://github.com/ArtemMartus/go-gst +plugin:ReleaseDate=2024-09-06
+plugin:Name=boilerplate +plugin:Description=My plugin written in go +plugin:Version=v0.0.2 +plugin:License=gst.LicenseLGPL +plugin:Source=go-gst +plugin:Package=examples +plugin:Origin=https://github.com/ArtemMartus/go-gst +plugin:ReleaseDate=2024-09-06
gobin
+plugin:Name=gobin +plugin:Description=A bin element written in go +plugin:Version=v0.0.1 +plugin:License=gst.LicenseLGPL +plugin:Source=go-gst +plugin:Package=examples +plugin:Origin=https://github.com/ArtemMartus/go-gst +plugin:ReleaseDate=2021-01-18
+plugin:Name=gobin +plugin:Description=A bin element written in go +plugin:Version=v0.0.1 +plugin:License=gst.LicenseLGPL +plugin:Source=go-gst +plugin:Package=examples +plugin:Origin=https://github.com/ArtemMartus/go-gst +plugin:ReleaseDate=2021-01-18
gofilesink
This example demonstrates a filesink plugin implemented in Go.
This example demonstrates a filesink plugin implemented in Go.
gofilesrc
This example demonstrates a filesrc plugin implemented in Go.
This example demonstrates a filesrc plugin implemented in Go.
This example demonstrates how to use GStreamer's query functionality.
This example demonstrates how to use GStreamer's query functionality.
This example demonstrates how to set and store metadata using GStreamer.
This example demonstrates how to set and store metadata using GStreamer.
This example demonstrates the use of GStreamer's ToC API.
This example demonstrates the use of GStreamer's ToC API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL