intel / media-delivery

This collection of samples demonstrates best practices to achieve optimal video quality and performance on Intel GPUs for content delivery networks. Check out our demo, recommended command lines and quality and performance measuring tools.
MIT License
92 stars 29 forks source link

measure/perf does not support streams w/ floating point framerate #28

Closed dvrogozh closed 3 years ago

dvrogozh commented 3 years ago

measure-perf does not correctly handle streams w/ floating point framerates. For example, consider stream w/ framerate=29.97:

#####################################################################
PNP MEDIA SMT AVC-AVC: MULTISTREAM: 1 & ITERATION: 0
#####################################################################
 CONCURRENT: h264_HP@L4_0 123.58 fps/stream , Meets ContentFPS 28500.0 : False , Within margin 2%: 0 True

measure-perf won't go above 1st iteration and thinks that stream is of crazy framerate=28500.

Compare w/ stream of framerate=25:

#####################################################################
PNP MEDIA SMT AVC-AVC: MULTISTREAM: 1 & ITERATION: 0
#####################################################################
 CONCURRENT: 1920x1088_fld_0 25.02 fps/stream , Meets ContentFPS 23.75 : True , Within margin 2%: 0 True