![]() |
![]()
| ![]() |
![]()
NAMEgfx.toml - Configuration file for xrdp(8) graphics pipeline extension DESCRIPTIONThis file configures the detailed settings of the Graphics Pipeline Extension for xrdp(8). The file format is TOML. See the link in the SEE ALSO section for TOML syntax. The file contains following sections:
All options and values are case-sensitive, with some exception, and are described in detail below. CODEC[codec] section defines preferred codec order and encoder. The options to be specified in this section are the following:
X264[x264] section defines encoding parameters that will be passed to x264 encoder. See x264 --fullhelp for the detailed explanations of the parameters. The options to be specified in this section are following:
OPENH264[OpenH264] section defines encoding parameters that will be passed to OpenH264 encoder. The options to be specified in this section are following:
CONNECTION TYPES[x264] and [OpenH264] section are tables (also known as dictionaries) that have subtables with connection types in their keys. For example, [x264.lan], [OpenH264.wan]. You can configure different parameters such as bitrate for the encoder per connection type. Define the default parameter set first, this will be inherited to all connection types unless explicitly overridden in each connection type. List of available connection types are: lan, wan, broadband_high, satellite, broadband_low, modem, and default Currently, xrdp does not support connection type autodetection. If autodetect is selected on the client side, it will be treated as if LAN is selected. EXAMPLESThis is an example gfx.toml: [codec] order = [ "H.264", "RFX" ] h264_encoder = "x264" [x264.default] preset = "ultrafast" tune = "zerolatency" profile = "main" # profile is forced to baseline if preset == ultrafast vbv_max_bitrate = 0 vbv_buffer_size = 0 fps_num = 60 fps_den = 1 [x264.lan] # inherits default, everything is same with the default [x264.wan] # parameters that are not explicitly overridden inherit the default values preset = "veryfast" vbv_max_bitrate = 15_000 vbv_buffer_size = 1_500 There are multiple ways to represent the data structure in TOML format. The following two representations are semantically equivalent but the latter is discouraged due to concerns about complexity and readability. [x264.default] preset = "ultrafast" tune = "zerolatency" x264 = { default = { preset = "ultrafast", tune="zerolatency" } } SEE ALSOFor more information on gfx.toml configuration, see the wiki page. https://github.com/neutrinolabs/xrdp/wiki/H.264-encoding The syntax for TOML files can be found at the following page.
|