Helper tool for stitching together livestream VOD segments and uploading them to YouTube!

remove temporary files.txt after ffmpeg run

+6
+6
video/video.go
··· 3 import ( 4 "encoding/json" 5 "fmt" 6 "os" 7 "path" 8 "strconv" ··· 62 63 if err != nil { 64 return 0, fmt.Errorf("ffmpeg error: %v", err) 65 } 66 67 fileInfo, err := os.Stat(video.Filename)
··· 3 import ( 4 "encoding/json" 5 "fmt" 6 + "log" 7 "os" 8 "path" 9 "strconv" ··· 63 64 if err != nil { 65 return 0, fmt.Errorf("ffmpeg error: %v", err) 66 + } 67 + 68 + if err = os.Remove(fileListPath); err != nil { 69 + log.Fatalf("Failed to remove temporary file list: %v", err) 70 + // not the end of the world; move along 71 } 72 73 fileInfo, err := os.Stat(video.Filename)