Documentation
¶
Index ¶
- type Bits
- type FFMPEG
- func (ff *FFMPEG) Build(ctx context.Context) *exec.Cmd
- func (ff *FFMPEG) Decode(path string, args ...string) *FFMPEG
- func (ff *FFMPEG) Encode(args ...string) *FFMPEG
- func (ff *FFMPEG) LogLevel(level string) *FFMPEG
- func (ff *FFMPEG) Muxer(muxer string, args ...string) *FFMPEG
- func (ff *FFMPEG) NoStats() *FFMPEG
- func (ff *FFMPEG) Output(path string) *FFMPEG
- func (ff *FFMPEG) OverWriteTarget() *FFMPEG
- func (ff *FFMPEG) Progress(cb func(Progress), progressSocketPath string) *FFMPEG
- func (ff *FFMPEG) Run(ctx context.Context, logger *slog.Logger) error
- type InvalidMediaError
- type Progress
- type VideoStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FFMPEG ¶
type FFMPEG struct {
// contains filtered or unexported fields
}
func (*FFMPEG) OverWriteTarget ¶
type InvalidMediaError ¶
type InvalidMediaError struct {
Reason string
}
func (InvalidMediaError) Error ¶
func (e InvalidMediaError) Error() string
type VideoStats ¶
type VideoStats struct {
VideoCodec string `json:"video_codec"`
Duration time.Duration `json:"duration"`
BitRate int `json:"bit_rate"`
BitsPerSample int `json:"bits_per_sample"`
Height int `json:"height"`
Width int `json:"width"`
}
func Probe ¶
func Probe(path string) (VideoStats, error)
func (VideoStats) LogValue ¶
func (s VideoStats) LogValue() slog.Value
func (VideoStats) String ¶
func (s VideoStats) String() string
Click to show internal directories.
Click to hide internal directories.