ffmpeg

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatMp3s

func ConcatMp3s(sectionsInOrder []Mp3Section, outputName string) error

Concatenates MP3 files and saves the output as an MP3 file with proper chapter metadata markers

func OutputToMp3

func OutputToMp3(piperRawAudio io.Reader, outputName string) error

Convert raw PCM audio from piper to MP3 using ffmpeg

Types

type Mp3Section

type Mp3Section struct {
	// The title of the chapter
	Title string
	// The path to the mp3 file to use when concatenating
	Mp3File string
	// Duration of the MP3 file in milliseconds
	Duration int64
}

Jump to

Keyboard shortcuts

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