ffmpeg

package
v0.0.0-...-d5b4cac Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package ffmpeg contains methods for thumbnailing and streaming packaging.

Index

Constants

View Source
const (
	PlaylistName = "out.mpd"
)

Variables

This section is empty.

Functions

func CreateThumbnail

func CreateThumbnail(ctx context.Context, filePath string) ([]byte, error)

CreateThumbnail creates a JPEG thumbnail for the given path.

func PackageForStreaming

func PackageForStreaming(ctx context.Context, key, filePath string) (string, error)

Package the given filePath for streaming, assuming the given cache key. Returns the path to the playlist file.

Note that the returned playlist file may be incomplete by the time this returns; this is to ensure the user can start streaming faster.

Types

This section is empty.

Jump to

Keyboard shortcuts

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