Documentation ¶
Overview ¶
Package ffmpeg provides process management and monitoring for ffmpeg.
Index ¶
- type Args
- type FFMetadata
- type Process
- func (ffw *Process) Concatenate(ctx context.Context, inputFile []string, outputFile string) error
- func (ffw *Process) Probe(ctx context.Context, filename string) (*FFMetadata, error)
- func (ffw *Process) Run(ctx context.Context, args Args) error
- func (ffw *Process) RunEx(ctx context.Context, relay ProgressRelay, args Args) error
- func (ffw *Process) Truncate(ctx context.Context, inputFile string, outputFile string, startSecond float64, ...) error
- type ProgressRelay
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { ConstantRateFactor int EnableHardwareAcceleration bool EnableExperimentalCodecs bool EnableFastStart bool InputFile string OutputFile string ProgressAddress string Preset string }
Args hold arguments for ffmpeg executable. http://trac.ffmpeg.org/wiki/Encode/H.264 https://github.com/a-nagrani/ffmpeg-commands
type FFMetadata ¶
FFMetadata contains metadata for a media file.
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process manages a ffmpeg process to perform some action.
func (*Process) Concatenate ¶
Concatenate a collection of media files into 1 file.
func (*Process) Run ¶
Run spawns an ffmpeg process to do perform video encoding. This method waits for the encoding to finish.
type ProgressRelay ¶
ProgressRelay reports progress of the encoding process to any event sink.
Click to show internal directories.
Click to hide internal directories.