concat

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package concat provides a way to concatenate video files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, output string, inputs []string, opts ...Option) error

Do concat multiple video streams.

func WithPrefix

func WithPrefix(ctx context.Context, remuxFormat string, prefix string, opts ...Option) error

WithPrefix Concat multiple videos with a prefix.

Prefix can be a path.

Types

type Option

type Option func(*Options)

Option is a function that configures the concatenation.

func IgnoreExtension

func IgnoreExtension() Option

IgnoreExtension forces the concatenation on files without taking account of the extension.

TS files are prioritized.

Example: 1.ts, 1.mp4, 2.ts -> 1.mp4 will be skipped.

func WithAudioOnly

func WithAudioOnly() Option

WithAudioOnly forces the concatenation on audio only.

type Options

type Options struct {
	// contains filtered or unexported fields
}

Options are the concatenation options.

Jump to

Keyboard shortcuts

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