Introduce encoder modules for various codecs and formats (e.g., h264_nvenc, libx264, libmp3lame). Add `Convertor` logic to retrieve supported formats via FFmpeg utilities and manage encoders for audio, video, and image processing.
22 lines
563 B
Go
22 lines
563 B
Go
package sgi
|
|
|
|
import (
|
|
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/internal/ffmpeg/encoder"
|
|
)
|
|
|
|
func NewEncoder() encoder.EncoderContract {
|
|
parameters := map[string]encoder.ParameterContract{}
|
|
getParams := func(parameters map[string]encoder.ParameterContract) []string {
|
|
return []string{"-c:v", "sgi"}
|
|
}
|
|
|
|
return encoder.NewEncoder("sgi", parameters, getParams)
|
|
}
|
|
|
|
func NewData() encoder.EncoderDataContract {
|
|
title := "sgi"
|
|
formats := []string{"sgi"}
|
|
fileType := encoder.FileType(encoder.Image)
|
|
return encoder.NewData(title, formats, fileType, NewEncoder)
|
|
}
|