Add: support customized ffmpeg container format

This commit is contained in:
2022-04-18 01:00:02 +08:00
parent e4c59fd539
commit 61d85bba97
7 changed files with 106 additions and 104 deletions

View File

@@ -5,6 +5,7 @@ import (
"flag"
"log"
"msw-open-music/pkg/api"
"msw-open-music/pkg/commonconfig"
"os"
)
@@ -14,12 +15,11 @@ func init() {
flag.StringVar(&ConfigFilePath, "config", "config.json", "backend config file path")
}
func main() {
var err error
flag.Parse()
config := api.Config{}
config := commonconfig.Config{}
configFile, err := os.Open(ConfigFilePath)
if err != nil {
log.Fatal(err)