generator

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSine

func NewSine(freq, volume float64, par *ffmpeg.Par) (*sine, error)

Create a new sine wave generator with one channel using float32 for samples. The frequency in Hz, volume in decibels and samplerate (ie, 44100) for the audio stream are passed as arguments.

func NewYUV420P

func NewYUV420P(par *ffmpeg.Par) (*yuv420p, error)

Create a new video generator which generates YUV420P frames of the specified size and framerate (in frames per second)

Types

type Generator

type Generator interface {
	io.Closer

	// Return a generated frame
	Frame() media.Frame
}

Generator is an interface for generating frames of audio or video

Jump to

Keyboard shortcuts

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