utils

package
v0.0.0-...-80125d5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateChunk

func GenerateChunk(startTime float64, secondsPerChunk uint16,
	inputFilePath string, outputFilePath string,
	errChan chan<- error, wg *sync.WaitGroup)

func HandleCloseChannel

func HandleCloseChannel(errChan chan error, numberOfChunks uint16, wg *sync.WaitGroup) error

func ParseFFMPEGDuration

func ParseFFMPEGDuration(output string) string

Helper function to parse the duration from FFmpeg output

Types

type FileData

type FileData struct {
	InputFileInfo os.FileInfo
	Duration      uint32
}

func HandleParams

func HandleParams(createFolderIfNotExists []bool, secondsPerChunk int, outputDirectoryPath string, inputFilePath string) (FileData, error)

Jump to

Keyboard shortcuts

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