ffmpeghelper

package module
v0.0.0-...-c58e26f Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

README

FFmpeg-helper

Helper module for managing and utilizing FFmpeg.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTsFetchFailed = errors.New("failed to fetch ts url")
	ErrTsParseFailed = errors.New("failed to parse ts url")
	ErrTsReadFailed  = errors.New("failed to get ts data")
)

Functions

func FetchFfmpeg

func FetchFfmpeg() (string, error)

Download FFmpeg to the user's bin directory.

Returns:

string: path on success
error: error

func Ffmpeg

func Ffmpeg() (string, error)

Get FFmpeg's path or download it if not yet.

Returns:

string: path on success
error: error

func GetFfmpegPath

func GetFfmpegPath() string

Get path of FFmpeg.

Returns:

string: path of the executable

func H264M3U8GetImage

func H264M3U8GetImage(url string) (image.Image, error)

Get a jpeg image from a H.264 M3U8 stream.

Args:

url: url of the stream

Returns:

image.Image: the jpeg image
error: error

func ImgScanQrcode

func ImgScanQrcode(img image.Image) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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