Use DISPLAY environment variable and check ffmpeg capabilities