Video on Raspberry with VLCJvideo library extremely slow

I want to play a video in MP4 format (H.264 codec) controlled with VLCJVideo. In the Processing environment, it is unreasonably slow and jerky.
When I play the same video directly with the VLC player, it runs normally.

My test code does not contain any functions other than “Play.”

What can I do? Thank you for your help.