Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

Linux NVENC: Wrong color - red and blue got swapped

Open happyme531 opened this issue 2 years ago • 9 comments

Describe the Bug

As the title said. Below is the moonlight client, up is the sunshine server. IMG_20220709_122401

Expected Behavior

Color is correctly proceeded, not swapped.

Additional Context

Software encoder works fine. Other encoders are not tested as lacking the corresponding hardware.

Configuration file:

amd_quality = default
origin_web_ui_allowed = lan
vt_software = auto
amd_coder = auto
upnp = disabled
nv_preset = default
fps = [10,30,60,90,120]
vt_coder = auto
amd_rc = auto
min_log_level = 2
vt_realtime = enabled
key_rightalt_to_key_win = disabled
origin_pin_allowed = pc
resolutions = [
    352x240,
    480x360,
    858x480,
    1280x720,
    1920x1080,
    2560x1080,
    3440x1440,
    1920x1200,
    3860x2160,
    3840x1600
]
nv_coder = auto
gamepad = x360
dwmflush = enabled
hevc_mode = 0
nv_rc = auto

Console log(Verbose):

[min_threads] -- [1]
[key_rightalt_to_key_win] -- [disabled]
[vt_realtime] -- [enabled]
[vt_coder] -- [auto]
[fps] -- [[10,30,60,90,120]]
[nv_preset] -- [default]
[upnp] -- [disabled]
[amd_coder] -- [auto]
[sw_preset] -- [ultrafast]
[dwmflush] -- [enabled]
[nv_rc] -- [auto]
[hevc_mode] -- [0]
[amd_rc] -- [auto]
[gamepad] -- [x360]
[nv_coder] -- [auto]
[resolutions] -- [[
    352x240,
    480x360,
    858x480,
    1280x720,
    1920x1080,
    2560x1080,
    3440x1440,
    1920x1200,
    3860x2160,
    3840x1600
]]
[origin_pin_allowed] -- [pc]
[min_log_level] -- [0]
[vt_software] -- [auto]
[origin_web_ui_allowed] -- [lan]
[amd_quality] -- [default]
[2022:07:15:21:53:04]: Error: Failed to create session: This hardware does not support NvFBC
[2022:07:15:21:53:04]: Error: Couldn't expose some/all drm planes for card: /dev/dri/card0
[2022:07:15:21:53:04]: Info: Detecting connected monitors
[2022:07:15:21:53:05]: Info: //////////////////////////////////////////////////////////////////
[2022:07:15:21:53:05]: Info: //                                                              //
[2022:07:15:21:53:05]: Info: //   Testing for available encoders, this may generate errors.  //
[2022:07:15:21:53:05]: Info: //   You can safely ignore those errors.                        //
[2022:07:15:21:53:05]: Info: //                                                              //
[2022:07:15:21:53:05]: Info: //////////////////////////////////////////////////////////////////
[2022:07:15:21:53:05]: Info: Trying encoder [nvenc]
[2022:07:15:21:53:05]: Info: Screencasting with X11
[2022:07:15:21:53:05]: Info: Color coding [Rec. 601]
[2022:07:15:21:53:05]: Info: Color range: [JPEG]
[2022:07:15:21:53:05]: Info: Screencasting with X11
[2022:07:15:21:53:05]: Info: Color coding [Rec. 601]
[2022:07:15:21:53:05]: Info: Color range: [JPEG]
[2022:07:15:21:53:05]: Info: Screencasting with X11
[2022:07:15:21:53:05]: Info: Color coding [Rec. 601]
[2022:07:15:21:53:05]: Info: Color range: [JPEG]
[2022:07:15:21:53:05]: Info: Screencasting with X11
[2022:07:15:21:53:05]: Info: Color coding [Rec. 601]
[2022:07:15:21:53:05]: Info: Color range: [JPEG]
[2022:07:15:21:53:05]: Info: Screencasting with X11
[2022:07:15:21:53:05]: Info: Color coding [Rec. 601]
[2022:07:15:21:53:05]: Info: Color range: [JPEG]
[2022:07:15:21:53:05]: Info: Screencasting with X11
[2022:07:15:21:53:05]: Info: Color coding [Rec. 709]
[2022:07:15:21:53:05]: Info: Color range: [JPEG]
[2022:07:15:21:53:05]: Error: Could not open codec [h264_nvenc]: Function not implemented
[2022:07:15:21:53:05]: Info: Screencasting with X11
[2022:07:15:21:53:05]: Info: Color coding [Rec. 709]
[2022:07:15:21:53:05]: Info: Color range: [JPEG]
[2022:07:15:21:53:05]: Error: cuda::cuda_t doesn't support any format other than AV_PIX_FMT_NV12
[2022:07:15:21:53:05]: Info: Screencasting with X11
[2022:07:15:21:53:05]: Info: Color coding [Rec. 601]
[2022:07:15:21:53:05]: Info: Color range: [JPEG]
[2022:07:15:21:53:05]: Info: Screencasting with X11
[2022:07:15:21:53:05]: Info: Color coding [Rec. 601]
[2022:07:15:21:53:05]: Info: Color range: [JPEG]
[2022:07:15:21:53:05]: Warning: nvenc: hevc: replacing nalu prefix data
[2022:07:15:21:53:05]: Info: 
[2022:07:15:21:53:05]: Info: //////////////////////////////////////////////////////////////
[2022:07:15:21:53:05]: Info: //                                                          //
[2022:07:15:21:53:05]: Info: // Ignore any errors mentioned above, they are not relevant //
[2022:07:15:21:53:05]: Info: //                                                          //
[2022:07:15:21:53:05]: Info: //////////////////////////////////////////////////////////////
[2022:07:15:21:53:05]: Info: 
[2022:07:15:21:53:05]: Debug: ------  h264 ------
[2022:07:15:21:53:05]: Debug: PASSED: supported
[2022:07:15:21:53:05]: Debug: REF_FRAMES_RESTRICT: supported
[2022:07:15:21:53:05]: Debug: REF_FRAMES_AUTOSELECT: supported
[2022:07:15:21:53:05]: Debug: SLICE: supported
[2022:07:15:21:53:05]: Debug: CBR: supported
[2022:07:15:21:53:05]: Debug: DYNAMIC_RANGE: unsupported
[2022:07:15:21:53:05]: Debug: VUI_PARAMETERS: supported
[2022:07:15:21:53:05]: Debug: NALU_PREFIX_5b: supported
[2022:07:15:21:53:05]: Debug: -------------------
[2022:07:15:21:53:05]: Debug: ------  hevc ------
[2022:07:15:21:53:05]: Debug: PASSED: supported
[2022:07:15:21:53:05]: Debug: REF_FRAMES_RESTRICT: supported
[2022:07:15:21:53:05]: Debug: REF_FRAMES_AUTOSELECT: supported
[2022:07:15:21:53:05]: Debug: SLICE: supported
[2022:07:15:21:53:05]: Debug: CBR: supported
[2022:07:15:21:53:05]: Debug: DYNAMIC_RANGE: unsupported
[2022:07:15:21:53:05]: Debug: VUI_PARAMETERS: supported
[2022:07:15:21:53:05]: Debug: NALU_PREFIX_5b: unsupported
[2022:07:15:21:53:05]: Debug: -------------------
[2022:07:15:21:53:05]: Info: Found encoder nvenc: [h264_nvenc, hevc_nvenc]
[2022:07:15:21:53:05]: Info: Configuration UI available at [https://localhost:47990]
[2022:07:15:21:53:05]: Info: Adding avahi service Sunshine
[2022:07:15:21:53:05]: Debug: TUNNEL :: NONE
[2022:07:15:21:53:05]: Debug: METHOD :: GET
[2022:07:15:21:53:05]: Debug: DESTINATION :: /serverinfo
[2022:07:15:21:53:05]: Debug: User-Agent -- Mozilla/5.0
[2022:07:15:21:53:05]: Debug: Accept-Language -- zh-CN,en,*
[2022:07:15:21:53:05]: Debug: Accept-Encoding -- gzip, deflate
[2022:07:15:21:53:05]: Debug: Connection -- Keep-Alive
[2022:07:15:21:53:05]: Debug: Host -- 10.10.10.217:47989
[2022:07:15:21:53:05]: Debug:  [--] 
[2022:07:15:21:53:05]: Debug: uuid -- d69968c3a52b4ea7be2f27d3369cadac
[2022:07:15:21:53:05]: Debug: uniqueid -- 0123456789ABCDEF
[2022:07:15:21:53:05]: Debug:  [--] 
[2022:07:15:21:53:05]: Debug: TUNNEL :: NONE
[2022:07:15:21:53:05]: Debug: METHOD :: GET
[2022:07:15:21:53:05]: Debug: DESTINATION :: /serverinfo
[2022:07:15:21:53:05]: Debug: User-Agent -- Mozilla/5.0
[2022:07:15:21:53:05]: Debug: Accept-Language -- zh-CN,en,*
[2022:07:15:21:53:05]: Debug: Accept-Encoding -- gzip, deflate
[2022:07:15:21:53:05]: Debug: Connection -- Keep-Alive
[2022:07:15:21:53:05]: Debug: Host -- 10.10.10.217:47989
[2022:07:15:21:53:05]: Debug:  [--] 
[2022:07:15:21:53:05]: Debug: uuid -- 56313432e79d4bf29a41351cca8a381b
[2022:07:15:21:53:05]: Debug: uniqueid -- 0123456789ABCDEF
[2022:07:15:21:53:05]: Debug:  [--] 
[2022:07:15:21:53:06]: Info: Avahi service Sunshine successfully established.
[2022:07:15:21:53:06]: Debug: TUNNEL :: NONE
[2022:07:15:21:53:06]: Debug: METHOD :: GET
[2022:07:15:21:53:06]: Debug: DESTINATION :: /serverinfo
[2022:07:15:21:53:06]: Debug: User-Agent -- Mozilla/5.0
[2022:07:15:21:53:06]: Debug: Accept-Language -- zh-CN,en,*
[2022:07:15:21:53:06]: Debug: Accept-Encoding -- gzip, deflate
[2022:07:15:21:53:06]: Debug: Connection -- Keep-Alive
[2022:07:15:21:53:06]: Debug: Host -- 10.10.10.217:47989
[2022:07:15:21:53:06]: Debug:  [--] 
[2022:07:15:21:53:06]: Debug: uuid -- 4e1bd535ad074b31a017ddf0447ec778
[2022:07:15:21:53:06]: Debug: uniqueid -- 0123456789ABCDEF
[2022:07:15:21:53:06]: Debug:  [--] 
[2022:07:15:21:53:06]: Info: /CN=NVIDIA GameStream Client -- verfied
[2022:07:15:21:53:06]: Debug: TUNNEL :: HTTPS
[2022:07:15:21:53:06]: Debug: METHOD :: GET
[2022:07:15:21:53:06]: Debug: DESTINATION :: /serverinfo
[2022:07:15:21:53:06]: Debug: User-Agent -- Mozilla/5.0
[2022:07:15:21:53:06]: Debug: Accept-Language -- zh-CN,en,*
[2022:07:15:21:53:06]: Debug: Accept-Encoding -- gzip, deflate
[2022:07:15:21:53:06]: Debug: Connection -- Keep-Alive
[2022:07:15:21:53:06]: Debug: Host -- 10.10.10.217:47984
[2022:07:15:21:53:06]: Debug:  [--] 
[2022:07:15:21:53:06]: Debug: uuid -- 7953ea95182f4906b10401d452d08884
[2022:07:15:21:53:06]: Debug: uniqueid -- 0123456789ABCDEF
[2022:07:15:21:53:06]: Debug:  [--] 

...skipped....

[2022:07:15:21:53:16]: Debug: TUNNEL :: HTTPS
[2022:07:15:21:53:16]: Debug: METHOD :: GET
[2022:07:15:21:53:16]: Debug: DESTINATION :: /serverinfo
[2022:07:15:21:53:16]: Debug: User-Agent -- Mozilla/5.0
[2022:07:15:21:53:16]: Debug: Accept-Language -- zh-CN,en,*
[2022:07:15:21:53:16]: Debug: Accept-Encoding -- gzip, deflate
[2022:07:15:21:53:16]: Debug: Connection -- Keep-Alive
[2022:07:15:21:53:16]: Debug: Host -- 10.10.10.217:47984
[2022:07:15:21:53:16]: Debug:  [--] 
[2022:07:15:21:53:16]: Debug: uuid -- fc7cfd3a0ec944cea64588345e9bfe3a
[2022:07:15:21:53:16]: Debug: uniqueid -- 0123456789ABCDEF
[2022:07:15:21:53:16]: Debug:  [--] 
[2022:07:15:21:53:17]: Info: /CN=NVIDIA GameStream Client -- verfied
[2022:07:15:21:53:17]: Debug: TUNNEL :: HTTPS
[2022:07:15:21:53:17]: Debug: METHOD :: GET
[2022:07:15:21:53:17]: Debug: DESTINATION :: /launch
[2022:07:15:21:53:17]: Debug: User-Agent -- Mozilla/5.0
[2022:07:15:21:53:17]: Debug: Accept-Language -- zh-CN,en,*
[2022:07:15:21:53:17]: Debug: Accept-Encoding -- gzip, deflate
[2022:07:15:21:53:17]: Debug: Connection -- Keep-Alive
[2022:07:15:21:53:17]: Debug: Host -- 10.10.10.217:47984
[2022:07:15:21:53:17]: Debug:  [--] 
[2022:07:15:21:53:17]: Debug: localAudioPlayMode -- 0
[2022:07:15:21:53:17]: Debug: gcmap -- 0
[2022:07:15:21:53:17]: Debug: remoteControllersBitmap -- 0
[2022:07:15:21:53:17]: Debug: rikeyid -- 1428387238
[2022:07:15:21:53:17]: Debug: surroundAudioInfo -- 196610
[2022:07:15:21:53:17]: Debug: rikey -- 0a762cc185e62bcf8a3284ddffc0183f
[2022:07:15:21:53:17]: Debug: sops -- 1
[2022:07:15:21:53:17]: Debug: mode -- 1920x1080x60
[2022:07:15:21:53:17]: Debug: appid -- 1
[2022:07:15:21:53:17]: Debug: uuid -- c6f4dc8248ca4f6a80749df649e9122b
[2022:07:15:21:53:17]: Debug: additionalStates -- 1
[2022:07:15:21:53:17]: Debug: uniqueid -- 0123456789ABCDEF
[2022:07:15:21:53:17]: Debug:  [--] 
[2022:07:15:21:53:17]: Debug: Executing [Desktop]
[2022:07:15:21:53:18]: Debug: handle_read(): Handle read of size: 99 bytes
[2022:07:15:21:53:18]: Debug: handle_payload(): Handle read of size: 0 bytes
[2022:07:15:21:53:18]: Debug: type [REQUEST]
[2022:07:15:21:53:18]: Debug: sequence number [1]
[2022:07:15:21:53:18]: Debug: protocol :: RTSP/1.0
[2022:07:15:21:53:18]: Debug: payload :: 
[2022:07:15:21:53:18]: Debug: command :: OPTIONS
[2022:07:15:21:53:18]: Debug: target :: rtsp://10.10.10.217:48010
[2022:07:15:21:53:18]: Debug: CSeq ::  1
[2022:07:15:21:53:18]: Debug: X-GS-ClientVersion ::  14
[2022:07:15:21:53:18]: Debug: Host ::  10.10.10.217
[2022:07:15:21:53:18]: Debug: ---Begin MessageBuffer---
OPTIONS
---End MessageBuffer---
[2022:07:15:21:53:18]: Debug: ---Begin Response---
RTSP/1.0 200 OK
CSeq: 1



---End Response---
[2022:07:15:21:53:18]: Debug: handle_read(): Handle read of size: 175 bytes
[2022:07:15:21:53:18]: Debug: handle_payload(): Handle read of size: 0 bytes
[2022:07:15:21:53:18]: Debug: type [REQUEST]
[2022:07:15:21:53:18]: Debug: sequence number [2]
[2022:07:15:21:53:18]: Debug: protocol :: RTSP/1.0
[2022:07:15:21:53:18]: Debug: payload :: 
[2022:07:15:21:53:18]: Debug: command :: DESCRIBE
[2022:07:15:21:53:18]: Debug: target :: rtsp://10.10.10.217:48010
[2022:07:15:21:53:18]: Debug: CSeq ::  2
[2022:07:15:21:53:18]: Debug: X-GS-ClientVersion ::  14
[2022:07:15:21:53:18]: Debug: Host ::  10.10.10.217
[2022:07:15:21:53:18]: Debug: Accept ::  application/sdp
[2022:07:15:21:53:18]: Debug: If-Modified-Since ::  Thu, 01 Jan 1970 00:00:00 GMT
[2022:07:15:21:53:18]: Debug: ---Begin MessageBuffer---
DESCRIBE
---End MessageBuffer---
[2022:07:15:21:53:18]: Debug: ---Begin Response---
RTSP/1.0 200 OK
CSeq: 2


sprop-parameter-sets=AAAAAU
a=fmtp:97 surround-params=21101
a=fmtp:97 surround-params=642012435
a=fmtp:97 surround-params=660012345
a=fmtp:97 surround-params=85301233456
a=fmtp:97 surround-params=88001233456

---End Response---
[2022:07:15:21:53:18]: Debug: handle_read(): Handle read of size: 188 bytes
[2022:07:15:21:53:18]: Debug: handle_payload(): Handle read of size: 0 bytes
[2022:07:15:21:53:18]: Debug: type [REQUEST]
[2022:07:15:21:53:18]: Debug: sequence number [3]
[2022:07:15:21:53:18]: Debug: protocol :: RTSP/1.0
[2022:07:15:21:53:18]: Debug: payload :: 
[2022:07:15:21:53:18]: Debug: command :: SETUP
[2022:07:15:21:53:18]: Debug: target :: streamid=audio/0/0
[2022:07:15:21:53:18]: Debug: CSeq ::  3
[2022:07:15:21:53:18]: Debug: X-GS-ClientVersion ::  14
[2022:07:15:21:53:18]: Debug: Host ::  10.10.10.217
[2022:07:15:21:53:18]: Debug: Transport ::  unicast;X-GS-ClientPort=50000-50001
[2022:07:15:21:53:18]: Debug: If-Modified-Since ::  Thu, 01 Jan 1970 00:00:00 GMT
[2022:07:15:21:53:18]: Debug: ---Begin MessageBuffer---
SETUP
---End MessageBuffer---
[2022:07:15:21:53:18]: Debug: ---Begin Response---
RTSP/1.0 200 OK
CSeq: 3
Session: DEADBEEFCAFE;timeout = 90
Transport: server_port=48000



---End Response---
[2022:07:15:21:53:18]: Debug: handle_read(): Handle read of size: 212 bytes
[2022:07:15:21:53:18]: Debug: handle_payload(): Handle read of size: 0 bytes
[2022:07:15:21:53:18]: Debug: type [REQUEST]
[2022:07:15:21:53:18]: Debug: sequence number [4]
[2022:07:15:21:53:18]: Debug: protocol :: RTSP/1.0
[2022:07:15:21:53:18]: Debug: payload :: 
[2022:07:15:21:53:18]: Debug: command :: SETUP
[2022:07:15:21:53:18]: Debug: target :: streamid=video/0/0
[2022:07:15:21:53:18]: Debug: CSeq ::  4
[2022:07:15:21:53:18]: Debug: X-GS-ClientVersion ::  14
[2022:07:15:21:53:18]: Debug: Host ::  10.10.10.217
[2022:07:15:21:53:18]: Debug: Session ::   DEADBEEFCAFE
[2022:07:15:21:53:18]: Debug: Transport ::  unicast;X-GS-ClientPort=50000-50001
[2022:07:15:21:53:18]: Debug: If-Modified-Since ::  Thu, 01 Jan 1970 00:00:00 GMT
[2022:07:15:21:53:18]: Debug: ---Begin MessageBuffer---
SETUP
---End MessageBuffer---
[2022:07:15:21:53:18]: Debug: ---Begin Response---
RTSP/1.0 200 OK
CSeq: 4
Session: DEADBEEFCAFE;timeout = 90
Transport: server_port=47998



---End Response---
[2022:07:15:21:53:18]: Debug: handle_read(): Handle read of size: 215 bytes
[2022:07:15:21:53:18]: Debug: handle_payload(): Handle read of size: 0 bytes
[2022:07:15:21:53:18]: Debug: type [REQUEST]
[2022:07:15:21:53:18]: Debug: sequence number [5]
[2022:07:15:21:53:18]: Debug: protocol :: RTSP/1.0
[2022:07:15:21:53:18]: Debug: payload :: 
[2022:07:15:21:53:18]: Debug: command :: SETUP
[2022:07:15:21:53:18]: Debug: target :: streamid=control/13/0
[2022:07:15:21:53:18]: Debug: CSeq ::  5
[2022:07:15:21:53:18]: Debug: X-GS-ClientVersion ::  14
[2022:07:15:21:53:18]: Debug: Host ::  10.10.10.217
[2022:07:15:21:53:18]: Debug: Session ::   DEADBEEFCAFE
[2022:07:15:21:53:18]: Debug: Transport ::  unicast;X-GS-ClientPort=50000-50001
[2022:07:15:21:53:18]: Debug: If-Modified-Since ::  Thu, 01 Jan 1970 00:00:00 GMT
[2022:07:15:21:53:18]: Debug: ---Begin MessageBuffer---
SETUP
---End MessageBuffer---
[2022:07:15:21:53:18]: Debug: ---Begin Response---
RTSP/1.0 200 OK
CSeq: 5
Session: DEADBEEFCAFE;timeout = 90
Transport: server_port=47999



---End Response---
[2022:07:15:21:53:18]: Debug: handle_read(): Handle read of size: 536 bytes
[2022:07:15:21:53:18]: Debug: handle_payload(): Handle read of size: 363 bytes
[2022:07:15:21:53:18]: Debug: Found Content-Length:  1313 bytes
[2022:07:15:21:53:18]: Debug: handle_payload(): Handle read of size: 950 bytes
[2022:07:15:21:53:18]: Debug: Found Content-Length:  1313 bytes
[2022:07:15:21:53:18]: Debug: type [REQUEST]
[2022:07:15:21:53:18]: Debug: sequence number [6]
[2022:07:15:21:53:18]: Debug: protocol :: RTSP/1.0
[2022:07:15:21:53:18]: Debug: payload :: v=0
o=android 0 14 IN IPv4 10.10.10.217
s=NVIDIA Streaming Client
a=x-nv-video[0].clientViewportWd:1920 
a=x-nv-video[0].clientViewportHt:1080 
a=x-nv-video[0].maxFPS:60 
a=x-nv-video[0].packetSize:1024 
a=x-nv-video[0].rateControlMode:4 
a=x-nv-video[0].timeoutLengthMs:7000 
a=x-nv-video[0].framesWithInvalidRefThreshold:0 
a=x-nv-video[0].initialBitrateKbps:82875 
a=x-nv-video[0].initialPeakBitrateKbps:82875 
a=x-nv-vqos[0].bw.minimumBitrateKbps:82875 
a=x-nv-vqos[0].bw.maximumBitrateKbps:82875 
a=x-nv-vqos[0].fec.enable:1 
a=x-nv-vqos[0].videoQualityScoreUpdateTime:5000 
a=x-nv-vqos[0].qosTrafficType:0 
a=x-nv-aqos.qosTrafficType:0 
a=x-nv-general.featureFlags:167 
a=x-nv-general.useReliableUdp:13 
a=x-nv-vqos[0].fec.minRequiredFecPackets:2 
a=x-nv-vqos[0].drc.enable:0 
a=x-nv-general.enableRecoveryMode:0 
a=x-nv-video[0].videoEncoderSlicesPerFrame:1 
a=x-nv-clientSupportHevc:1 
a=x-nv-vqos[0].bitStreamFormat:1 
a=x-nv-video[0].dynamicRangeMode:0 
a=x-nv-video[0].maxNumReferenceFrames:1 
a=x-nv-video[0].clientRefreshRateX100:0 
a=x-nv-audio.surround.numChannels:2 
a=x-nv-audio.surround.channelMask:3 
a=x-nv-audio.surround.enable:0 
a=x-nv-audio.surround.AudioQuality:0 
a=x-nv-aqos.packetDuration:5 
a=x-nv-video[0].encoderCscMode:2 
t=0 0
m=video 47998  
[2022:07:15:21:53:18]: Debug: command :: ANNOUNCE
[2022:07:15:21:53:18]: Debug: target :: streamid=control/13/0
[2022:07:15:21:53:18]: Debug: CSeq ::  6
[2022:07:15:21:53:18]: Debug: X-GS-ClientVersion ::  14
[2022:07:15:21:53:18]: Debug: Host ::  10.10.10.217
[2022:07:15:21:53:18]: Debug: Session ::   DEADBEEFCAFE
[2022:07:15:21:53:18]: Debug: Content-type ::  application/sdp
[2022:07:15:21:53:18]: Debug: Content-length ::  1313
[2022:07:15:21:53:18]: Debug: ---Begin MessageBuffer---
ANNOUNCE
---End MessageBuffer---
[2022:07:15:21:53:18]: Debug: ---Begin Response---
RTSP/1.0 200 OK
CSeq: 6



---End Response---
[2022:07:15:21:53:18]: Debug: handle_read(): Handle read of size: 96 bytes
[2022:07:15:21:53:18]: Debug: handle_payload(): Handle read of size: 0 bytes
[2022:07:15:21:53:18]: Debug: type [REQUEST]
[2022:07:15:21:53:18]: Debug: sequence number [7]
[2022:07:15:21:53:18]: Debug: protocol :: RTSP/1.0
[2022:07:15:21:53:18]: Debug: payload :: 
[2022:07:15:21:53:18]: Debug: command :: PLAY
[2022:07:15:21:53:18]: Debug: target :: /
[2022:07:15:21:53:18]: Debug: CSeq ::  7
[2022:07:15:21:53:18]: Debug: X-GS-ClientVersion ::  14
[2022:07:15:21:53:18]: Debug: Host ::  10.10.10.217
[2022:07:15:21:53:18]: Debug: Session ::   DEADBEEFCAFE
[2022:07:15:21:53:18]: Debug: ---Begin MessageBuffer---
PLAY
---End MessageBuffer---
[2022:07:15:21:53:18]: Debug: ---Begin Response---
RTSP/1.0 200 OK
CSeq: 7



---End Response---
[2022:07:15:21:53:18]: Info: CLIENT CONNECTED
[2022:07:15:21:53:18]: Verbose: type [IDX_ENCRYPTED]
[2022:07:15:21:53:18]: Debug: type [IDX_REQUEST_IDR_FRAME]
[2022:07:15:21:53:18]: Verbose: type [IDX_ENCRYPTED]
[2022:07:15:21:53:18]: Debug: type [IDX_START_B]
[2022:07:15:21:53:18]: Verbose: type [IDX_ENCRYPTED]
[2022:07:15:21:53:18]: Verbose: type [IDX_START_A]
[2022:07:15:21:53:18]: Verbose: Recv: 10.10.10.240:52131 :: VIDEO
[2022:07:15:21:53:18]: Debug: RAISE: 10.10.10.240:52131 :: VIDEO
[2022:07:15:21:53:18]: Debug: Received ping from 10.10.10.240:52131 [474E4950]
[2022:07:15:21:53:18]: Debug: Start capturing Video
[2022:07:15:21:53:18]: Info: Detecting connected monitors
[2022:07:15:21:53:18]: Verbose: type [IDX_ENCRYPTED]
[2022:07:15:21:53:18]: Verbose: type [IDX_ENCRYPTED]
[2022:07:15:21:53:18]: Debug: --begin relative mouse move packet--
deltaX [1]
deltaY [1]
--end relative mouse move packet--
[2022:07:15:21:53:18]: Verbose: type [IDX_ENCRYPTED]
[2022:07:15:21:53:18]: Debug: --begin relative mouse move packet--
deltaX [-1]
deltaY [-1]
--end relative mouse move packet--
[2022:07:15:21:53:18]: Info: Screencasting with X11
[2022:07:15:21:53:18]: Info: Configuring selected monitor (0) to stream
[2022:07:15:21:53:18]: Info: Streaming display: DP-1 with res 1680x1050 offset by 0x0
[2022:07:15:21:53:18]: Info: Color coding [Rec. 709]
[2022:07:15:21:53:18]: Info: Color range: [MPEG]
[2022:07:15:21:53:18]: Verbose: Generating multiple FEC blocks
[2022:07:15:21:53:18]: Verbose: Key Frame [1] :: send [144] shards...
[2022:07:15:21:53:18]: Verbose: Key Frame [1] :: send [144] shards...
[2022:07:15:21:53:18]: Verbose: type [IDX_ENCRYPTED]
[2022:07:15:21:53:18]: Verbose: type [IDX_START_A]
[2022:07:15:21:53:18]: Verbose: Key Frame [1] :: send [143] shards...
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [2] :: send [89] shards...
[2022:07:15:21:53:18]: Verbose: Generating multiple FEC blocks
[2022:07:15:21:53:18]: Verbose: Frame [3] :: send [71] shards...
[2022:07:15:21:53:18]: Verbose: Frame [3] :: send [71] shards...
[2022:07:15:21:53:18]: Verbose: Frame [3] :: send [69] shards...
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [4] :: send [95] shards...
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [5] :: send [90] shards...
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [6] :: send [101] shards...
[2022:07:15:21:53:18]: Verbose: type [IDX_ENCRYPTED]
[2022:07:15:21:53:18]: Debug: type [IDX_REQUEST_IDR_FRAME]
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [7] :: send [96] shards...
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [8] :: send [96] shards...
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [9] :: send [108] shards...
[2022:07:15:21:53:18]: Verbose: Generating multiple FEC blocks
[2022:07:15:21:53:18]: Verbose: Key Frame [10] :: send [147] shards...
[2022:07:15:21:53:18]: Verbose: Key Frame [10] :: send [147] shards...
[2022:07:15:21:53:18]: Verbose: Key Frame [10] :: send [147] shards...
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [11] :: send [92] shards...
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [12] :: send [98] shards...
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [13] :: send [98] shards...
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [14] :: send [95] shards...
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [15] :: send [104] shards...
[2022:07:15:21:53:18]: Verbose: Recv: 10.10.10.240:52129 :: AUDIO
[2022:07:15:21:53:18]: Debug: RAISE: 10.10.10.240:52129 :: AUDIO
[2022:07:15:21:53:18]: Debug: Received ping from 10.10.10.240:52129 [474E4950]
[2022:07:15:21:53:18]: Debug: Start capturing Audio
[2022:07:15:21:53:18]: Debug: Connecting to pulseaudio
[2022:07:15:21:53:18]: Debug: null-sink args: rate=48000 sink_name=sink-sunshine-stereo format=s16le channels=2 channel_map=front-left,front-right sink_properties=device.description=sink-sunshine-stereo
[2022:07:15:21:53:18]: Debug: null-sink args: rate=48000 sink_name=sink-sunshine-surround51 format=s16le channels=6 channel_map=front-left,front-right,front-center,lfe,rear-left,rear-right sink_properties=device.description=sink-sunshine-surround51
[2022:07:15:21:53:18]: Debug: null-sink args: rate=48000 sink_name=sink-sunshine-surround71 format=s16le channels=9 channel_map=front-left,front-right,front-center,lfe,lfe,rear-left,rear-right,side-left,side-right sink_properties=device.description=sink-sunshine-surround71
[2022:07:15:21:53:18]: Info: Setting default sink to: [sink-sunshine-stereo]
[2022:07:15:21:53:18]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [16] :: send [102] shards...
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Recv: 10.10.10.240:52131 :: VIDEO
[2022:07:15:21:53:18]: Verbose: type [IDX_ENCRYPTED]
[2022:07:15:21:53:18]: Verbose: type [IDX_START_A]
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Frame [17] :: send [102] shards...
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Generating single FEC block
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Frame [18] :: send [102] shards...
[2022:07:15:21:53:18]: Verbose: Generating multiple FEC blocks
[2022:07:15:21:53:18]: Verbose: Frame [19] :: send [39] shards...
[2022:07:15:21:53:18]: Verbose: Frame [19] :: send [39] shards...
[2022:07:15:21:53:18]: Verbose: Frame [19] :: send [38] shards...
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Generating multiple FEC blocks
[2022:07:15:21:53:18]: Verbose: Frame [20] :: send [38] shards...
[2022:07:15:21:53:18]: Verbose: Frame [20] :: send [38] shards...
[2022:07:15:21:53:18]: Verbose: Frame [20] :: send [38] shards...
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Generating multiple FEC blocks
[2022:07:15:21:53:18]: Verbose: Dropped silent packet
[2022:07:15:21:53:18]: Verbose: Frame [21] :: send [38] shards...

.......skipped.....

[2022:07:15:21:53:26]: Verbose: Frame [494] :: send [41] shards...
[2022:07:15:21:53:26]: Verbose: Frame [494] :: send [41] shards...
[2022:07:15:21:53:26]: Verbose: Frame [494] :: send [39] shards...
[2022:07:15:21:53:26]: Verbose: Dropped silent packet
[2022:07:15:21:53:26]: Verbose: Dropped silent packet
[2022:07:15:21:53:26]: Verbose: Dropped silent packet
[2022:07:15:21:53:26]: Debug: Waiting for video to end...
[2022:07:15:21:53:26]: Verbose: Dropped silent packet
[2022:07:15:21:53:26]: Info: Setting default sink to: [alsa_output.pci-0000_00_1f.3.analog-stereo]
[2022:07:15:21:53:26]: Verbose: Generating multiple FEC blocks
[2022:07:15:21:53:26]: Verbose: Frame [495] :: send [41] shards...
[2022:07:15:21:53:26]: Verbose: Frame [495] :: send [41] shards...
[2022:07:15:21:53:26]: Verbose: Frame [495] :: send [40] shards...
[2022:07:15:21:53:26]: Debug: Waiting for audio to end...
[2022:07:15:21:53:26]: Verbose: Recv: 10.10.10.240:52129 :: AUDIO
[2022:07:15:21:53:26]: Verbose: Recv: 10.10.10.240:52131 :: VIDEO
[2022:07:15:21:53:26]: Debug: Pulseadio context terminated
[2022:07:15:21:53:26]: Debug: Waiting for control to end...
[2022:07:15:21:53:26]: Debug: Resetting Input...
[2022:07:15:21:53:26]: Debug: Removing references to any connections...
[2022:07:15:21:53:26]: Debug: Session ended
[2022:07:15:21:53:26]: Debug: Waiting for main listening thread to end...
[2022:07:15:21:53:26]: Debug: Waiting for main video thread to end...
[2022:07:15:21:53:26]: Debug: Waiting for main audio thread to end...
[2022:07:15:21:53:26]: Debug: Waiting for main control thread to end...
[2022:07:15:21:53:26]: Debug: All broadcasting threads ended
[2022:07:15:21:53:27]: Debug: Waiting for Gamepad notifications to stop...
[2022:07:15:21:53:27]: Debug: Gamepad notifications stopped
Sunshine exited: Press enter to continue
[2022:07:15:21:53:28]: Info: Interrupt handler called



Sunshine Host Operating System and Version

Manjaro 21.3.2 Ruah

Architecture

64 bit

Sunshine Version

0.14.0

GPU Type

Nvidia

GPU Model

GeForce RTX 3090

GPU Driver/Mesa Version

515.57

Capture Method (Linux Only)

X11

EDIT: Replaced the wrong log file.

happyme531 avatar Jul 09 '22 04:07 happyme531

Looking at the console log, it's not even using nvenc. You're running with a software encoder.

ZeoWorks avatar Jul 12 '22 10:07 ZeoWorks

Looking at the console log, it's not even using nvenc. You're running with a software encoder.

Sorry, I posted a wrong log file... Updated now.

happyme531 avatar Jul 15 '22 13:07 happyme531

pong, im having a similar issue. some colors are swapped when using nvenc but not when using vaapi on igpu.

the last comment was 22 days ago and the issue still exists, my guess is that zeo thought that happy was using software encoder and stopped reading because he thought the new comment was happy realizing the mistake.

please someone help, the topic is not over. the issue persists. its annoying.

Raycert07 avatar Aug 07 '22 00:08 Raycert07

pong, im having a similar issue. some colors are swapped when using nvenc but not when using vaapi on igpu.

the last comment was 22 days ago and the issue still exists, my guess is that zeo thought that happy was using software encoder and stopped reading because he thought the new comment was happy realizing the mistake.

please someone help, the topic is not over. the issue persists. its annoying.

Have you tried various nvidia drivers, does the issue still occur? What about the nvidia settings itself in Nvidia X Server Settings? I usually disable "sync to vblank", "allow flipping" & "use comportment texture clamping".

ZeoWorks avatar Aug 07 '22 00:08 ZeoWorks

I have tried across a ton of different versions of Nvidia drivers, and distros for that matter. I have not modified Nvidia settings.

Raycert07 avatar Aug 07 '22 05:08 Raycert07

I usually disable "sync to vblank", "allow flipping" & "use comportment texture clamping".

i only have an option for "use conformant texture clamping" out of those you listed, and its enabled. thats in opengl settings. opengl has nothing to do with nvenc. disabling this option gives you borderless 2d textures in super old games. i dont see how thats relevant.

i dont see allow flipping anywhere and sync to is set to auto, the only option. these options are the same for me across distros and driver versions, theres nothing wrong with it.

happy updated the log file to be the correct one, you should probably read it to see if you can find anything that could be fixed. me and him have the same issue. hes using arch, im using popos (pretty much ubuntu). driver versions are the same but ive had this issue on drivers way older.

i use NVENC on obs all the time and there is no color flip. as far as i can tell this is a sunshine related issue.

Raycert07 avatar Aug 07 '22 06:08 Raycert07

This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.

LizardByte-bot avatar Nov 06 '22 00:11 LizardByte-bot

This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.

Closing the issue does not fix the bug, only creates duplicate issues.
Actually I am wondering why there are really someone using robot like this in their repos.

happyme531 avatar Nov 07 '22 15:11 happyme531

If those involved in the conversation don't care enough to comment within 10 days, then the issue should be closed. It can always be re-opened if needed.

No activity within 100 days, no point in keeping the issue open. More issues means the maintenance is more overwhelming.

This is handled by an official GitHub provided action and used by 84k+ repositories.

Some projects that use this same technique:

  • https://github.com/home-assistant/core/issues
  • https://github.com/Tautulli/Tautulli/issues

Anyway, this is a community maintained project. If someone submits a PR fixing the address we will consider merging it and likely do so assuming nothing else breaks. Otherwise it's going to sit here and you're going to have to comment once every 100 days or more.

ReenigneArcher avatar Nov 07 '22 16:11 ReenigneArcher

This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.

LizardByte-bot avatar Feb 06 '23 10:02 LizardByte-bot

This issue was closed because it has been stalled for 10 days with no activity.

LizardByte-bot avatar Feb 16 '23 10:02 LizardByte-bot

For what it's worth, I have the exact same issue with Ubuntu 22.10 (as server) and Ubuntu 20.04 (as client). It seems to use nvenc (at least according to nvidia-smi).

Edit : tried with a second client, colors are perfect. This one is 22.04.1 (LTS), and has an NVidia card (while the former is just Intel).

omigeot avatar Feb 28 '23 19:02 omigeot