Remove printf debug logs and fix black Frame skipping

This commit is contained in:
Pablu23
2024-06-11 17:44:43 +02:00
parent c55b7c2781
commit 48d8a956f9

View File

@@ -65,19 +65,15 @@ func getThumbnailUnderlying(path string, maxThumbnails int, filters []TimeFilter
out = make([][]byte, 0)
}
// fmt.Printf("FPS: %f, Lenght: %f, Interval: %d, Filters: %t\n", fps, length, intervalSeconds, enableFilter)
var time float64 = 1
for {
fmt.Printf("Time: %f\n", time)
if (maxThumbnails > 0 && framesExtracted >= maxThumbnails) || time >= length {
break
}
if enableFilter {
if ok, next := FrameLiesWithinFilter(time, filters); ok {
fmt.Printf("Black Frame, skipping to: %f\n", next)
time = next
time = next + 1
continue
}
}
@@ -162,7 +158,6 @@ func GetFilter(path string) ([]TimeFilter, error) {
if start == "" || end == "" {
break
}
// fmt.Printf("Start: %s, End: %s\n", start, end)
s, err := strconv.ParseFloat(start, 64)
if err != nil {