EpicGamesExt / PixelStreamingInfrastructure

The official Pixel Streaming servers and frontend.
MIT License
223 stars 86 forks source link

pixel streaming is stuck when running at greater than 4k resolution #50

Closed 0wendy0 closed 6 months ago

0wendy0 commented 6 months ago

Component your question relates to

Background

When my game screen is at 4k resolution, pixel streaming is available, but when I set the game screen to 5k resolution, pixel streaming is stuck, and the frontend information shows "webrtc connected, waiting for video"

Question

Is there any way I can set the game screen to be 5k, but the pixel streaming screen to be 1k?

Additional context

image

MWillWallT commented 6 months ago

Hi there!

Unfortunately, there isn't anything out of the box to separate the game/application resolution and the stream resolution. They are tied together by default.

However, if you're comfortable changing C++, the FinalScale parameter could be set to some multiplier in Engine\Plugins\Media\PixelStreaming\Source\PixelStreaming\Private\PixelStreamingVideoInputRHI.cpp

lukehb commented 6 months ago

Extra bit of info:

Pixel Streaming has a maximum for 4096x4096 encoding resolution. 5k encoding is not supported on enough GPUs yet, so that is why the stream cannot connect - the frame cannot be encoded.