🚧 Trim with ffmpeg
This commit is contained in:
parent
a706d16c5a
commit
5b2896c032
3 changed files with 75 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ type Config struct {
|
|||
SavePath string `toml:"save_path"`
|
||||
MusicPath string `toml:"music_path"`
|
||||
Codec string `toml:"codec"`
|
||||
FfEncoder string `toml:"ff_encoder"`
|
||||
AllowedCodecs []string `toml:"allowed_codec"`
|
||||
CodecExt map[string]string `toml:"codec_ext"`
|
||||
}
|
||||
|
|
@ -30,6 +31,7 @@ func newConfig() Config {
|
|||
SavePath: filepath.Join(xdg.UserDirs.Documents, "StripBeats"),
|
||||
MusicPath: xdg.UserDirs.Music,
|
||||
Codec: "opus",
|
||||
FfEncoder: "libopus",
|
||||
AllowedCodecs: []string{"aac", "opus"},
|
||||
CodecExt: map[string]string{"aac": "m4a", "opus": "opus"},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue