Running sample application for HEVC Decoding on Ubuntu Server


I’m trying to deploy nvidia HEVC decoder on virtual machine with Ubuntu Server on Azure portal. I try to run NvDecodeGL sample application from this package:

but it is trying to run glut that requires display drivers, but there is no display on Ubuntu Server and application fails. What I want is to decode input hevc file and write output to file (without displaying it on screen). Is there any way to achieve it?