Documentation
¶
Overview ¶
Package ffmpeg provides a safe FFmpeg subprocess wrapper. All processes are started with exec.CommandContext so they are killed when the context is cancelled — no orphan processes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct {
Stdin io.WriteCloser
Stdout io.ReadCloser
// contains filtered or unexported fields
}
Process wraps an FFmpeg subprocess with stdin/stdout pipes.
func Start ¶
Start launches FFmpeg with the given arguments. Both stdout and stderr are handled: stdout is exposed via Stdout, stderr lines are logged (DEBUG level, ERROR for fatal lines).
func (*Process) Close ¶
Close terminates the FFmpeg process and closes stdin. Safe to call multiple times.
Click to show internal directories.
Click to hide internal directories.