Menu Close

Playback quality deteriorated or slowed-down when playing big compressed files

Skip to main content
You are here:
Print

Playback quality deteriorated or slowed-down when playing big compressed files

Since version 17.0.0.1, the hardware accelerated decoding is enabled by default (PlayerHwAccel = hw_Auto): the clips opened through the Media Foundation source of Windows (MP4, MOV, MKV…) are decoded by the GPU (Windows 8 or later), which strongly reduces the CPU load of the large H.264 / HEVC clips, e.g. in 4K or 8K.

If the playback is still slow or jerky:

  • update TVideoGrabber to the latest version,
  • if the LAV Filters are installed, they are used first : retry after uninstalling them (or keep them installed but set PlayerForcedCodec = "MF" to open the clips through Media Foundation first),
  • on a computer with several GPUs, select the GPU explicitly: hw_Cuda uses the NVIDIA GPU first, hw_QuickSync the Intel GPU first.

PlayerHwAccel must be set before invoking OpenPlayer, e.g.:

VideoGrabber.PlayerHwAccel = hw_Cuda; // NVIDIA GPU
// VideoGrabber.PlayerHwAccel = hw_QuickSync; // Intel GPU
VideoGrabber.PlayerFileName = "c:/folder/clip.mp4";
VideoGrabber.OpenPlayer();

The possible values are:

  • hw_Auto (default): chosen by TVideoGrabber for the decoder in use
  • hw_None: software decoding
  • hw_Cuda: NVIDIA GPU first
  • hw_QuickSync: Intel GPU first
  • hw_Dxva2: DirectX DXVA2
  • hw_d3d11: DirectX D3D11

Note: PlayerHwAccel also applies to the MJPEG decoding of the USB webcams (with hw_Auto: GPU decoding from 1280×720, Intel GPUs).

More information here.

Table of Contents