This forum is closed for posting. Please, join us in our Discord server at discord.gg/regnum. See you there!

Go Back   Champions of Regnum > English > Technical Support > Linux

Linux Technical issues under Linux platform

Thread Tools Display Modes
Old 01-23-2018, 08:54 AM   #1
Mashu's Avatar
Join Date: Sep 2008
Location: Stockholm
Posts: 541
Mashu is an unknown quantity at this point
Default Howto: Record on GNU/Linux with hardware accelerated encoder

1 Pre-requirements

1.1 Operating system

Using GNU/Linux Debian sid.
The Intel HD Graphics 530 (Skylake GT2) in my case is my primary graphics, running GNOME 3 desktop. My secondary graphics is GeForce GTX 960M in Optimus setup (by default disabled).

1.2 Required hardware

Nvidia graphics card with hardware encoder capabilities. These include Maxwell architectures first generation for H264 (h264_nvenc) and newer architectures for h265 (hvenc).

1.3 Software

I installed the following packages

apt-get install bumblebee bumblebee-nvidia \ # To run Optimus Nvidia setup
ffmpeg \                                     # For encoding video
simplescreenrecorder                         # Recording application
2 Launching game with Nvidia

To start game with Nvidia GPU in case when desktop runs on primary graphics (Optimus configuration) you need to start

cd live
optirun ./game LOGIN <md5password>
This is I heard normal way of doing it, however it does not work for me, I can't connect to server, and I am using Steam instead, where in Game properties -> Set Launch Options you enter

optirun %command%
3 Launching game with SSR-GLInject

To record OpenGL applications, and not the whole desktop Window, which is convenient you need to preload the following library

optirun ssr-glinject %command%
It basically allows capturing frames from OpenGL application directly into recorder in an efficient way and comes with simplescreenrecorder.
Documented by author here http://www.maartenbaert.be/simplescr...g-steam-games/

4 Setting up SimpleScreenRecorder

Start recorder in Optimus mode

optirun simplescreenrecorder
Video Input

Record OpenGL
Frame rate: 25
Don't scale your video, it will lose a lot in quality, change resolution of your game context instead if files get too big

Matroska (MKV)

Codec "Other"
Codec name: h264_hvenc
Bitrate: 5000
Custom options: preset=fast,crf=11,keyinit=1
Now you are ready to record your Champions of Regnum movies or PvP fights.
I hope this is useful for community or I can get some feedback from NGD.

Would be nice to figure out why I can't start a game without steam
optirun ./game LOGIN <md5>
I am getting error in Regnum's own dialog window on black screen that Server not available O01 and game exits.
Mashu no ha iniciado sesión   Reply With Quote

bumblebee, linux, nvidia, recording

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 09:02 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
NGD Studios 2002-2016 © All rights reserved