A command-line parameter is a value handed to your Unreal application at the moment it starts. Your application decides what any of them mean, so what you can do with them is up to your own code:
The simplest way to send them is the one below, and for most applications it is the only one needed.
Parameters To Pass To App. In the Control Panel, open the configuration attached to your stream link and go to the Developer tab. The field named Parameters To Pass To App holds a command line that every visitor to that link receives. Use it for anything that is true of the application always.
CmdLineDemo configuration.
Parameters To Pass To App holds -boothno=12 -green, and
Append Parameters To URL — the switch that decides
append or replace — is on.
That is the whole of it. Every visitor to that link starts the application with those parameters, and nothing else has to be set up.
The stream link. The other place is the link itself: add
?exeLaunchArgs=
to the end of the stream link, and the parameters after it apply to that
visit only. That is covered on
parameters in a link.
?commandLineArgs= is the same thing under a second name.
Links made with the older name appParameters keep working.
▶ Watch this part in the video (0:59)
Most parameters mean whatever your own code decides. The ones below are different: Unreal Engine reads them itself, so they work in any application without a line of code. Put them in Launch options (Parameters To Pass To App on older panels) on the configuration's Developer tab, separated by spaces, and the next session starts with them.
| Parameter | What it does | Use it when | Side effect |
|---|---|---|---|
-handleensurepercent=0 |
Unreal stops reporting failed ensure checks |
A Development build freezes at start and no picture ever arrives | Failed ensures are no longer reported |
-RenderOffScreen |
The app renders without a window | Viewers with large screens should get more than 1920×1080 | Code of yours that depends on the window may behave differently |
-dx11 |
Starts with DirectX 11 | The app crashes or shows black with DirectX 12 | No Nanite, no hardware ray tracing |
-dx12 |
Starts with DirectX 12 | The project defaults to DirectX 11 but needs DirectX 12 features | Needs DirectX 12 shaders in the package |
-PixelStreamingWebRTCFps=30 |
Streams 30 frames per second instead of 60 | Viewers are on slow or mobile connections | Movement looks less smooth |
-PixelStreamingWebRTCDisableTransmitAudio |
No sound is sent to viewers | Viewers should not hear the app | Viewers hear nothing at all |
In a Development build, when an ensure check fails, Unreal
pauses the app to write a crash report with a memory dump. Usually that takes
half a second. Now and then the dump never finishes, and the app hangs before
the stream starts: the process is alive, the viewer gets no picture.
-handleensurepercent=0 tells Unreal to handle 0 percent of
failed ensures, so no report and no dump is made, and nothing can hang.
Ensure condition failed.
The full story, and how to check your build, is in
Unreal app freezes at start: the Development-build ensure dump.HandleEnsurePercent
under [Core.System] in its Engine ini, Unreal uses that value and
ignores this parameter.
Normally the app draws into a window, and a window cannot be larger than the
machine's desktop, so the stream stops at 1920×1080 however large the
viewer's screen is. With -RenderOffScreen there is no window: the
app draws into memory, and the picture can be the size the viewer's browser
asks for. Measured on Eagle 3D Streaming machines: 2560×1440,
3840×2160 and a phone's 1170×2532 were all delivered at full size;
without the parameter every one stopped at 1920×1080.
Unreal Engine 5 apps start with DirectX 12 unless the project says otherwise.
-dx11 starts the app with DirectX 11 instead
(-d3d11 is the same switch).
-dx11 Nanite meshes draw their simpler fallback versions and
ray-traced effects are off. Check how the app looks before keeping it.-dx12 or -vulkan.
The opposite switch (-d3d12 is the same). It matters only for a
project whose default graphics API is DirectX 11 — older and Unreal
Engine 4 projects, mostly.
-dx11 or -vulkan.
Pixel Streaming sends 60 frames per second unless told otherwise.
-PixelStreamingWebRTCFps=30 sends 30. Any whole number works;
30 is the common choice. Works with both Pixel Streaming plugins.
t.MaxFPS 30 (field Unreal console commands to run
at start).The app's sound is not sent to the browser. The app still plays it on the streaming machine, where nobody hears it.
These are added to every launch, after yours. Adding them again changes nothing, or fights a setting in the Control Panel — use the setting.
| Parameter | Set by | To change it |
|---|---|---|
-AudioMixer, -AllowPixelStreamingCommands,
-Windowed, -ForceRes, -log,
-Unattended, -PixelStreamingURL= |
Eagle 3D Streaming, every launch | Not needed |
-ResX=, -ResY= |
The Resolution setting | Change Resolution on the configuration |
-PixelStreamingEncoderCodec= |
The Codec setting | Change Codec on the Developer tab |
-PixelStreamingWebRTCMaxBitrate= |
The Maximum Bitrate setting | Change Maximum Bitrate on the Developer tab |
-PixelStreamingEncoderMinQP=, -PixelStreamingEncoderMaxQP= |
The Video Quality setting | Change Video Quality |
-PixelStreamingHideCursor — not in Unreal Engine 5's Pixel
Streaming plugins; it does nothing.-PixelStreamingWebRTCStartBitrate= — WebRTC does not start
above 1 Mbit/s, which is already the default, so raising it does nothing.-LogCmds="LogTemp Verbose" and any other value with a space
— the field is split at spaces, so the value arrives in two pieces. Use
a console command instead (log LogTemp Verbose in Unreal
console commands to run at start).-vulkan — not tested with Pixel Streaming on Eagle 3D
Streaming's Windows machines.-nosound — turns off the app's audio device, which the
stream's sound comes from. Use
-PixelStreamingWebRTCDisableTransmitAudio.A demo app that shows the value arriving, one change at a time. Nothing to install.
Per-visitor values, combining both sources, reading them inside your application, and what to do when one does not arrive.
Last updated