gofilesink

command
v0.2.27 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: LGPL-2.1 Imports: 8 Imported by: 0

Documentation

Overview

This example demonstrates a filesink plugin implemented in Go.

Every element in a Gstreamer pipeline is provided by plugins. Some are builtin while others are provided by third-parties or distributed privately. The plugins are built around the GObject type system.

Go-gst offers loose bindings around the GObject type system to provide the necessary functionality to implement these plugins. The example in this code produces an element that can write to a file on the local system.

In order to build the plugin for use by GStreamer, you can do the following:

$ go generate
$ go build -o libgstgofilesink.so -buildmode c-shared .

+plugin:Name=gofilesink +plugin:Description=File plugins written in go +plugin:Version=v0.0.1 +plugin:License=gst.LicenseLGPL +plugin:Source=go-gst +plugin:Package=examples +plugin:Origin=https://github.com/tinyzimmer/go-gst +plugin:ReleaseDate=2021-01-04

+element:Name=gofilesink +element:Rank=gst.RankNone +element:Impl=fileSink +element:Subclass=base.ExtendsBaseSink +element:Interfaces=gst.InterfaceURIHandler

Jump to

Keyboard shortcuts

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