vk_video_samples icon indicating copy to clipboard operation
vk_video_samples copied to clipboard

Limit playback to video FPS speed?

Open markg85 opened this issue 8 months ago • 6 comments

Hi,

Great project you have here! It actually works :)

My video file (big buck bunny) has these specifics:

Video Input Information
        Codec        : AVC/H.264
        Frame rate   : 60/1 = 60 fps
        Sequence     : Progressive
        Coded size   : [3840, 2160]
        Display area : [0, 0, 3840, 2160]
        Chroma       : YCbCr 420
        Bit depth    : 8

But it's playing at a much higher fps then the video wants:

                Frame 135, FPS: 133.806
                Frame 338, FPS: 201.12
                Frame 538, FPS: 198.628
                Frame 737, FPS: 197.117
                Frame 929, FPS: 190.964
                Frame 1132, FPS: 200.835
                Frame 1342, FPS: 208.882
                Frame 1552, FPS: 208.937
                Frame 1752, FPS: 197.126
                Frame 1940, FPS: 186.471
                Frame 2130, FPS: 188.872
                Frame 2322, FPS: 189.204
                Frame 2521, FPS: 197.919
                Frame 2720, FPS: 196.622
                Frame 2929, FPS: 205.075
                Frame 3135, FPS: 204.338
                Frame 3325, FPS: 188.116
                Frame 3538, FPS: 211.291
                Frame 3750, FPS: 210.683
                Frame 3961, FPS: 208.87

The command i use to play a video:

RADV_PERFTEST=video_decode ./vk-video-dec-test -i ~/Downloads/BigBuckBunny/bbb_sunflower_2160p_60fps_normal.mp4

Is there an option to limit it to 60 fps (in this case)? I can't find it.

Sidenote, this is on AMD hardware.

markg85 avatar Jun 20 '24 12:06 markg85