tangled
alpha
login
or
join now
arimelody.space
/
vodular
0
fork
atom
Helper tool for stitching together livestream VOD segments and uploading them to YouTube!
0
fork
atom
overview
issues
pulls
pipelines
remove temporary files.txt after ffmpeg run
arimelody.space
1 month ago
4752e4bf
45db6513
+6
1 changed file
expand all
collapse all
unified
split
video
video.go
+6
video/video.go
···
3
import (
4
"encoding/json"
5
"fmt"
0
6
"os"
7
"path"
8
"strconv"
···
62
63
if err != nil {
64
return 0, fmt.Errorf("ffmpeg error: %v", err)
0
0
0
0
0
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)