SMPlayer GPU Acceleration

Introduction

Although nowadays playing most of very high resolution videos might not be a problem for desktop CPUs, it is still a good idea to enable GPU acceleration for playing those videos.

In this blog post, I would like to quickly demonstrate how to enable GPU acceleration for playing videos in SMPlayer, which is one of the most widely used video players on Linux.

GPU Acceleration

To enable GPU acceleration in SMPlayer, in addition to NVIDIA driver, mpv is required. To install mpv on Ubuntu, please run the following commands.

1
2
$ sudo apt update
$ sudo apt install -y mpv

In SMPlayer, mpv engine and cuda decoding can be enabled as demonstrated below.

Use mpv as Multimedia Engine Use cuda for Decoding

In my case, the video output driver can remain default.

Use default for Video Output Driver

To confirm that GPU acceleration is enabled, we will enable saving the log for video play.

Enable Saving Logs

After playing a video, we could find the following log or something similar from the log file, confirming that GPU acceleration is enabled.

1
2
3
VO: [gpu] 3840x2160 cuda[nv12]
VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 3840x2160 cuda[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x2160+0+0

References

Author

Lei Mao

Posted on

12-06-2024

Updated on

12-07-2024

Licensed under


Comments