# How to specify the pixelstreaming encoder for my streaming app?

**URL:** <https://forums.unrealengine.com/t/how-to-specify-the-pixelstreaming-encoder-for-my-streaming-app/1523966>\
**Category:** Mobile\
**Tags:** unreal-engine, question\
**Created:** [December 14, 2023, 1:23am UTC](https://forums.unrealengine.com/t/how-to-specify-the-pixelstreaming-encoder-for-my-streaming-app/1523966 "2023-12-14T01:23:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zucchinicn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zucchinicn](https://forums.unrealengine.com/u/zucchinicn)\
**Post date:** [December 14, 2023, 1:23am UTC](https://forums.unrealengine.com/t/how-to-specify-the-pixelstreaming-encoder-for-my-streaming-app/1523966/1 "2023-12-14T01:23:50Z")

</div>

In the Editor, I can specify the encoder type for the streaming.  
 ![1214](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/b/44ba047e3036201fdd9aecf1a4c380b6b8f689b6.png)

But I can’t find the documents for how to specify it for my standalone streamer app.  
I,ve tried two different ways.  
First is trying -PixelStreamingEncoder=‘VP9’ when I start my streamer application like this:  
Myapp.exe -PixelStreamingEncoder=‘VP9’ -PixelStreamingEncoderMaxQP=10 -AudioMixer -PixelStreamingIP=127.0.0.1 -PixelStreamingPort=8888 -AllowPixelStreamingCommands -RenderOffScreen -Unattended  
However, in the official documents, there is no such a arguments called “PixelStreamingEncoder”…

Seconde is adding "PreferredCodec=“VP9"” in my frontend code like this:

```auto
// Create a config object
const config = new Config({
  initialSettings: {
    AutoPlayVideo: true,
    AutoConnect: false,
    ss: "ws://10.1.56.103:8080",
    WaitForStreamer: true,
    MatchViewportRes: true,
    HoveringMouse: true,
    SuppressBrowserKeys: false,
    ControlsQuality: true,
    PreferredCodec: "VP9"
  },
  useUrlParams: false,
});

```

I can’t know wether does it works or not. There is no significant changes.

---

<div class="post-metadata">

**Author:** ![MWillWallT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mwillwallt/32/536298_2.png) [@MWillWallT](https://forums.unrealengine.com/u/MWillWallT)\
**Post date:** [January 8, 2024, 5:13am UTC](https://forums.unrealengine.com/t/how-to-specify-the-pixelstreaming-encoder-for-my-streaming-app/1523966/2 "2024-01-08T05:13:48Z")

</div>

Hi there!

You nearly had it, the correct launch arg for the streamer application is “-PixelStreamingEncoderCodec=VP9”

I’ll have a look at the documentation and see if this information is missing.  
Let me know if this works for you!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 22, 2024, 1:23am UTC](https://forums.unrealengine.com/t/how-to-specify-the-pixelstreaming-encoder-for-my-streaming-app/1523966/3 "2024-03-22T01:23:16Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
