ffmpeg

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChopByTimestamp

func ChopByTimestamp(ctx context.Context, tempDir string, inputFile string, timestamps []db.Audio) ([]db.Audio, *log.Status)

ChopByTimestamp uses timestamps to chop timestamps into files, and puts the filenames in timestamp record.

func ChopOneSegment

func ChopOneSegment(ctx context.Context, tempDir string, inputFile string, beginTS float64, endTS float64) (string, *log.Status)

ChopOneSegment uses timestamps extract one segment from an audio file

func ComputeDuration

func ComputeDuration(ctx context.Context, directory string, filename string) (float64, *log.Status)

func ConvertMp3ToWav

func ConvertMp3ToWav(ctx context.Context, tempDir string, inputFile string) (string, *log.Status)

func GetAudioBitrate

func GetAudioBitrate(ctx context.Context, directory string, filename string) (float64, *log.Status)

func GetAudioDuration

func GetAudioDuration(ctx context.Context, directory string, filename string) (float64, *log.Status)

func GetAudioSize

func GetAudioSize(ctx context.Context, directory string, filename string) (float64, *log.Status)

func OldConvertMp3ToWav

func OldConvertMp3ToWav(ctx context.Context, tempDir string, filePath string) (string, *log.Status)

ConvertMp3toWav

Types

type ProbeData

type ProbeData struct {
	Format ProbeFormat `json:"format"`
}

func GetProbeData

func GetProbeData(ctx context.Context, directory string, filename string) (ProbeData, *log.Status)

type ProbeFormat

type ProbeFormat struct {
	Filename       string `json:"filename"`
	NBStreams      int    `json:"nb_streams"`
	NBProgress     int    `json:"nb_programs"`
	NBStreamGroups int    `json:"nb_stream_groups"`
	FormatName     string `json:"format_name"`
	FormatLongName string `json:"format_long_name"`
	StartTime      string `json:"start_time"`
	Duration       string `json:"duration"`
	Size           string `json:"size"`
	BitRate        string `json:"bit_rate"`
	ProbeScore     int    `json:"probe_score"`
}

Jump to

Keyboard shortcuts

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