h264

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package h264 uses a V4L2-compatible h.264 hardware encoder (h264_v4l2m2m) to encode images.

Index

Constants

View Source
const (

	// V4l2m2m Is a V4L2 memory-to-memory H.264 hardware encoder.
	V4l2m2m = "h264_v4l2m2m"
)

Variables

View Source
var DefaultStreamConfig gostream.StreamConfig

DefaultStreamConfig configures h264 as the encoder for a stream.

Functions

func NewEncoder

func NewEncoder(width, height, keyFrameInterval int, logger golog.Logger) (codec.VideoEncoder, error)

NewEncoder returns an h264 encoder that can encode images of the given width and height. It will also ensure that it produces key frames at the given interval.

func NewEncoderFactory

func NewEncoderFactory() codec.VideoEncoderFactory

NewEncoderFactory returns an h264 encoder factory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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