🚧 Trim with ffmpeg

This commit is contained in:
Dan Jones 2023-09-08 09:35:49 -05:00
commit 5b2896c032
3 changed files with 75 additions and 0 deletions

View file

@ -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"},
}