ffmpeg

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPixels

func GetPixels(path string, maxFrames int) ([]color.ARGB, error)

GetPixels decodes media using ffmpeg and returns slices of pixels for given maxFrames numbers

Types

type MediaInfo

type MediaInfo struct {
	Type     string  // "image", "video", or "unknown"
	Duration float64 // Duration in seconds
}

MediaInfo holds the file type and duration

func CheckMediaType

func CheckMediaType(filePath string) (MediaInfo, error)

CheckMediaType runs ffprobe to determine if the file is an image or video and returns its duration

Jump to

Keyboard shortcuts

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