mirror of
https://github.com/livepeer/lpms
synced 2026-04-23 00:07:25 +08:00
ffmpeg: Return stats on decoded stream from transcoder.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user