ffmpeg: Return stats on decoded stream from transcoder.

This commit is contained in:
Josh Allmann
2019-08-16 03:33:52 -07:00
parent a31a7c3b79
commit f32e37b8cd
5 changed files with 116 additions and 11 deletions

View File

@@ -75,7 +75,8 @@ func main() {
if err != nil {
panic(err)
}
for i, r := range res {
fmt.Printf("profile=input frames=%v pixels=%v\n", res.Decoded.Frames, res.Decoded.Pixels)
for i, r := range res.Encoded {
fmt.Printf("profile=%v frames=%v pixels=%v\n", profiles[i].Name, r.Frames, r.Pixels)
}
}