Remove scene detection code (#377)

* Remove scene detection code

* Remove tensorflow from runner
This commit is contained in:
Thom Shutt
2024-01-15 10:31:13 +00:00
committed by GitHub
parent 663c62246a
commit 98566e26c0
12 changed files with 6 additions and 478 deletions

View File

@@ -64,9 +64,7 @@ func main() {
o := ffmpeg.TranscodeOptions{
Oname: fmt.Sprintf("out_%s_%d_out.mp4", lbl, i),
Profile: profs[i],
// Uncomment the following to test scene classifier
// Detector: &ffmpeg.DSceneAdultSoccer,
Accel: accel,
Accel: accel,
}
o.From = *from
o.To = *to
@@ -99,11 +97,7 @@ func main() {
end := time.Now()
fmt.Printf("profile=input frames=%v pixels=%v\n", res.Decoded.Frames, res.Decoded.Pixels)
for i, r := range res.Encoded {
if r.DetectData != nil {
fmt.Printf("profile=%v frames=%v pixels=%v detectdata=%v\n", profiles[i].Name, r.Frames, r.Pixels, r.DetectData)
} else {
fmt.Printf("profile=%v frames=%v pixels=%v\n", profiles[i].Name, r.Frames, r.Pixels)
}
fmt.Printf("profile=%v frames=%v pixels=%v\n", profiles[i].Name, r.Frames, r.Pixels)
}
fmt.Printf("Transcoding time %0.4v\n", end.Sub(t).Seconds())
}