Skip to content

test/clock: simulate video rendering to check clock stability

Thomas Guillem requested to merge tguillem/vlc:clock-test-improvment into master

Only checking coeff and offset is not enough to check for the clock stability.

Here is video rendering trace with the lowprecision check

Screenshot_from_2023-11-09_14-42-05

diff: 16647
diff: 16648
diff: 16647
diff: 16648
diff: -10843
diff: 16636
diff: 16636
diff: 16636
diff: 16637
diff: 16636
diff: 16636
diff: 53830
diff: 16652
diff: 16651
diff: 16651
diff: 16652
diff: 16651
diff: 16652
diff: -25330
diff: 16634
diff: 16634
diff: 16634
diff: 16635
diff: 16634
diff: 16634
diff: 53478
diff: 16649
diff: 16649
diff: 16650
diff: 16649
diff: 16649
diff: 16649
diff: -2211
diff: 16641
diff: 16642
diff: 16642
diff: 16641
diff: 16642
diff: 16641
diff: 6049
diff: 16637
diff: 16637
diff: 16638
diff: 16637
diff: 16637
diff: 16638
diff: 126574
diff: 16682
diff: 16682
diff: 16682
diff: 16682
diff: 16682

We can see that this will result on few frames drops/acceleration.

TODO: add a scenario that behave like normal live-streaming and use the same algorithm used in VLC to check for frame late.

Edited by Thomas Guillem

Merge request reports