func parseMp4Files(files []inputFile) (mp4Files map[string][]mp4.Mp4) { mp4Files = make(map[string][]mp4.Mp4) for _, in := range files { fmt.Printf("-- Parsing file='%s' language='%s'\n", in.Filename, in.Language) mp4File := mp4.ParseFile(in.Filename, in.Language) if mp4File.IsVideo == true { mp4Files["video"] = append(mp4Files["video"], mp4File) } if mp4File.IsAudio == true { mp4Files["audio"] = append(mp4Files["audio"], mp4File) } } return }
func main() { mp4.Debug(true) mp4.ParseFile(os.Args[1], "eng") }