Moehammered / switch-remote-play

Let the switch remotely play PC games (similar to steam link or remote play)
GNU General Public License v3.0
302 stars 14 forks source link

Black Screen Flicker (On Map Screen) #18

Open bad1dea opened 3 years ago

bad1dea commented 3 years ago

Not sure what to classify this, as it may be game specific.

Game: Horizon Zero Dawn Video: Attached. Config:

Click to expand!

```c# use_manual_mode=yes; broadcast_address=10.10.0.255; manual_ip=10.10.0.253; desired_framerate=60; desktop_resolution=2560x1440; switch_resolution=1280x720; bitrate_kb=8192; vsync_mode=variable frame rate; encoder_preset=medium; quality_control_factor=5; video_codec=h264_nvenc; hwaccel_mode=auto; controller_mode=x360; controller_map=invert xyab; mouse_on_connect=no; mouse_sensitivity=8; decoder_flags1=low delay; decoder_flags2=fast; decoder_hwaccelflags=experimental,ignore level; decoder_skip_loop_filter=discard all; decoder_thread_type=thread slice; decoder_thread_count=4; mouse_left_click=R; mouse_right_click=ZR; ```

Game runs fine, in game has no flicke

https://user-images.githubusercontent.com/10354814/108438129-98044700-721c-11eb-999d-8b0118005878.mp4

ring, but when you go to map screen, there is intensive flicker.. Resolution does not affect the issue at all.

Moehammered commented 3 years ago

Hey there. Thanks so much for providing your config and a video. Much appreciated!

Does the flickering occur when you use the h264 codec?(non nvenc version)

bad1dea commented 3 years ago

Sorry mate, should have provided that information as well.

Doesn't matter which codec I use (h264, nvenc, intel) can't test AMD as I don't have an AMD Card.

CPU Info is the following if it help. Found other places it does it to in the menu - game streams fine as video, just menus here and there have that flicker.

i9-9900k 32GB Ram RTX 2080 SUPER

Moehammered commented 3 years ago

Hmm that is odd. What video/graphics settings are you using in HZD? Particularly are you in fullscreen or borderless fullscreen mode? FFMPEG has trouble capturing some applications and games that use 'fullscreen' mode.

bad1dea commented 3 years ago

Fullscreen Borderless for 99% of my gaming, I rarely do exclusive fullscreen since I have a triple monitor setup (I've adjusted this to 1 monitor for HZD to test for flicker same thing)

Moehammered commented 3 years ago

Does playing around with the graphics settings effect it at all?

Could you test the below ffmpeg commands while running the game and checking out the menus?

To test them just open a command prompt or powershell window in the directory that has ffmpeg.exe in it. (if you hold shift and right click inside of a folder the right-click menu will include an option to 'open a powershell window here')

I'm suspecting the videos will still flicker but just to make sure. Thanks.

bad1dea commented 3 years ago

No flicker in the captures, Had to zip the videos as mkv files weren't supported.

dshow output

```c# C:\Apps\Switch\switch-remote-play-install_v0.8.3>ffmpeg -f dshow -i video="screen-capture-recorder" dshow.mkv ffmpeg version 4.3.1-2020-11-19-essentials_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers built with gcc 10.2.0 (Rev5, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100 leaving aero onInput #0, dshow, from 'video=screen-capture-recorder': Duration: N/A, start: 14400.704000, bitrate: N/A Stream #0:0: Video: rawvideo, bgr0, 2560x1440, 30 fps, 30 tbr, 10000k tbn, 10000k tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Press [q] to stop, [?] for help [libx264 @ 0000027a91ac5940] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0000027a91ac5940] profile High 4:4:4 Predictive, level 5.0, 4:4:4, 8-bit [libx264 @ 0000027a91ac5940] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'dshow.mkv': Metadata: encoder : Lavf58.45.100 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 2560x1440, q=-1--1, 30 fps, 1k tbn, 30 tbc Metadata: encoder : Lavc58.91.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A [dshow @ 0000027a91abd700] real-time buffer [screen-capture-recorder] [video input] too full or near too full (969% of size: 3041280 [rtbufsize parameter])! frame dropped! Last message repeated 32 times frame= 142 fps= 12 q=-1.0 Lsize= 11632kB time=00:00:09.66 bitrate=9856.0kbits/s speed=0.829x video:11630kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.015098% [libx264 @ 0000027a91ac5940] frame I:7 Avg QP:16.83 size:572818 [libx264 @ 0000027a91ac5940] frame P:64 Avg QP:21.73 size:118804 [libx264 @ 0000027a91ac5940] frame B:71 Avg QP:23.26 size: 4159 [dshow @ 0000027a91abd700] real-time buffer [screen-capture-recorder] [video input] too full or near too full (969% of size: 3041280 [rtbufsize parameter])! frame dropped! [libx264 @ 0000027a91ac5940] consecutive B-frames: 29.6% 8.5% 8.5% 53.5% [libx264 @ 0000027a91ac5940] mb I I16..4: 5.5% 62.7% 31.8% [libx264 @ 0000027a91ac5940] mb P I16..4: 1.1% 11.9% 4.7% P16..4: 20.0% 7.2% 6.2% 0.0% 0.0% skip:48.9% [libx264 @ 0000027a91ac5940] mb B I16..4: 0.0% 0.1% 0.1% B16..8: 10.5% 0.6% 0.2% direct: 0.6% skip:87.9% L0:34.3% L1:61.9% BI: 3.8% [libx264 @ 0000027a91ac5940] 8x8 transform intra:65.4% inter:59.1% [libx264 @ 0000027a91ac5940] coded y,u,v intra: 86.9% 40.5% 36.2% inter: 9.1% 1.1% 0.6% [libx264 @ 0000027a91ac5940] i16 v,h,dc,p: 17% 14% 5% 64% [libx264 @ 0000027a91ac5940] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 12% 16% 9% 10% 9% 9% 10% 11% [libx264 @ 0000027a91ac5940] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 14% 9% 10% 12% 10% 11% 9% 11% [libx264 @ 0000027a91ac5940] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0000027a91ac5940] ref P L0: 68.1% 15.6% 11.1% 5.2% [libx264 @ 0000027a91ac5940] ref B L0: 89.6% 9.7% 0.7% [libx264 @ 0000027a91ac5940] ref B L1: 94.9% 5.1% [libx264 @ 0000027a91ac5940] kb/s:9721.22 [dshow @ 0000027a91abd700] real-time buffer [screen-capture-recorder] [video input] too full or near too full (969% of size: 3041280 [rtbufsize parameter])! frame dropped! Last message repeated 7 times Exiting normally, received signal 2. ```

gdi output

```c# C:\Apps\Switch\switch-remote-play-install_v0.8.3>ffmpeg -f gdigrab -framerate 60 -i desktop gditest.mkv ffmpeg version 4.3.1-2020-11-19-essentials_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers built with gcc 10.2.0 (Rev5, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100 [gdigrab @ 000002856205d900] Capturing whole desktop as 7680x1440x32 at (-2560,0) [gdigrab @ 000002856205d900] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, gdigrab, from 'desktop': Duration: N/A, start: 1613943125.887935, bitrate: 21233689 kb/s Stream #0:0: Video: bmp, bgra, 7680x1440, 21233689 kb/s, 60 fps, 1000k tbr, 1000k tbn, 1000k tbc Stream mapping: Stream #0:0 -> #0:0 (bmp (native) -> h264 (libx264)) Press [q] to stop, [?] for help [libx264 @ 0000028562061b40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0000028562061b40] profile High 4:4:4 Predictive, level 6.0, 4:4:4, 8-bit [libx264 @ 0000028562061b40] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'gditest.mkv': Metadata: encoder : Lavf58.45.100 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 7680x1440, q=-1--1, 60 fps, 1k tbn, 60 tbc Metadata: encoder : Lavc58.91.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A frame= 59 fps=3.4 q=-1.0 Lsize= 11021kB time=00:00:11.35 bitrate=7953.7kbits/s speed=0.656x video:11020kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.010236% [libx264 @ 0000028562061b40] frame I:1 Avg QP:13.88 size:1299535 [libx264 @ 0000028562061b40] frame P:19 Avg QP:16.96 size:365739 [libx264 @ 0000028562061b40] frame B:39 Avg QP:19.29 size: 77817 [libx264 @ 0000028562061b40] consecutive B-frames: 8.5% 3.4% 20.3% 67.8% [libx264 @ 0000028562061b40] mb I I16..4: 27.7% 56.0% 16.3% [libx264 @ 0000028562061b40] mb P I16..4: 1.0% 8.2% 4.0% P16..4: 17.2% 7.8% 6.1% 0.0% 0.0% skip:55.7% [libx264 @ 0000028562061b40] mb B I16..4: 0.9% 0.8% 0.5% B16..8: 14.2% 4.8% 2.0% direct: 1.7% skip:75.2% L0:52.3% L1:42.7% BI: 5.0% [libx264 @ 0000028562061b40] 8x8 transform intra:55.8% inter:58.4% [libx264 @ 0000028562061b40] coded y,u,v intra: 70.7% 35.3% 31.0% inter: 10.7% 2.5% 1.8% [libx264 @ 0000028562061b40] i16 v,h,dc,p: 71% 13% 3% 13% [libx264 @ 0000028562061b40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 16% 16% 7% 8% 7% 8% 8% 10% [libx264 @ 0000028562061b40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 16% 10% 8% 11% 9% 10% 8% 10% [libx264 @ 0000028562061b40] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0000028562061b40] ref P L0: 42.9% 7.1% 29.7% 20.4% [libx264 @ 0000028562061b40] ref B L0: 73.4% 20.4% 6.1% [libx264 @ 0000028562061b40] ref B L1: 90.2% 9.8% [libx264 @ 0000028562061b40] kb/s:7449.85 Exiting normally, received signal 2. ```

captures.zip

Moehammered commented 3 years ago

No flicker in the captures, Had to zip the videos as mkv files weren't supported.

dshow output gdi output captures.zip

Thank you for the captures. (Amazing desktop btw :) ) So it looks like then there might be a configuration option that is causing some issues in the ffmpeg command switch-remote-play builds. I'll update this post to provide more sample ffmpeg commands so we can test but from preliminary research I've seen some mention of flickering caused by the vsync option of ffmpeg and/or opengl driver issues.

Could you try running these commands? (They're the same just with vsync options appended to them)

If these captures don't exhibit flickering then I'll need to build a full example command the switch would send and test that.

Thanks.

bad1dea commented 3 years ago

I did new captures, with the new command options, and there are no flickers in menus as before.

They are a big larger and I cannot attach them, if you still need them I can upload to alternative let me know. Here's the output from ffmpeg.

dshow output

```c# C:\Apps\Switch\switch-remote-play-install_v0.8.3>ffmpeg -f dshow -vsync 2 -i video="screen-capture-recorder" dshow.mkv ffmpeg version 4.3.1-2020-11-19-essentials_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers built with gcc 10.2.0 (Rev5, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100 leaving aero onInput #0, dshow, from 'video=screen-capture-recorder': Duration: N/A, start: 48276.401000, bitrate: N/A Stream #0:0: Video: rawvideo, bgr0, 2560x1440, 30 fps, 30 tbr, 10000k tbn, 10000k tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Press [q] to stop, [?] for help [libx264 @ 0000018b28395940] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0000018b28395940] profile High 4:4:4 Predictive, level 5.0, 4:4:4, 8-bit [libx264 @ 0000018b28395940] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'dshow.mkv': Metadata: encoder : Lavf58.45.100 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 2560x1440, q=-1--1, 30 fps, 1k tbn, 30 tbc Metadata: encoder : Lavc58.91.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A [dshow @ 0000018b2838d740] real-time buffer [screen-capture-recorder] [video input] too full or near too full (969% of size: 3041280 [rtbufsize parameter])! frame dropped! Last message repeated 1 times [dshow @ 0000018b2838d740] real-time buffer [screen-capture-recorder] [video input] too full or near too full (969% of size: 3041280 [rtbufsize parameter])! frame dropped! Last message repeated 11 times [dshow @ 0000018b2838d740] real-time buffer [screen-capture-recorder] [video input] too full or near too full (969% of size: 3041280 [rtbufsize parameter])! frame dropped! Last message repeated 4 times [dshow @ 0000018b2838d740] real-time buffer [screen-capture-recorder] [video input] too full or near too full (969% of size: 3041280 [rtbufsize parameter])! frame dropped! Last message repeated 4 times [dshow @ 0000018b2838d740] real-time buffer [screen-capture-recorder] [video input] too full or near too full (969% of size: 3041280 [rtbufsize parameter])! frame dropped! Last message repeated 99 times frame= 224 fps=9.5 q=-1.0 Lsize= 34809kB time=00:00:18.36 bitrate=15524.7kbits/s speed=0.779x video:34807kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.007191% [libx264 @ 0000018b28395940] frame I:13 Avg QP:16.61 size:733523 [libx264 @ 0000018b28395940] frame P:77 Avg QP:22.15 size:225948 [libx264 @ 0000018b28395940] frame B:134 Avg QP:25.56 size: 64982 [libx264 @ 0000018b28395940] consecutive B-frames: 15.2% 10.7% 13.4% 60.7% [libx264 @ 0000018b28395940] mb I I16..4: 3.9% 58.7% 37.4% [libx264 @ 0000018b28395940] mb P I16..4: 1.0% 14.0% 8.5% P16..4: 14.4% 5.5% 5.0% 0.0% 0.0% skip:51.5% [libx264 @ 0000018b28395940] mb B I16..4: 0.8% 2.0% 1.8% B16..8: 12.0% 4.1% 2.4% direct: 2.9% skip:74.0% L0:35.6% L1:44.2% BI:20.2% [libx264 @ 0000018b28395940] 8x8 transform intra:56.8% inter:44.4% [libx264 @ 0000018b28395940] coded y,u,v intra: 89.3% 58.0% 52.3% inter: 14.4% 2.6% 2.0% [libx264 @ 0000018b28395940] i16 v,h,dc,p: 55% 13% 10% 22% [libx264 @ 0000018b28395940] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 11% 18% 7% 8% 10% 7% 10% 10% [libx264 @ 0000018b28395940] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 12% 11% 8% 10% 12% 9% 11% 9% [libx264 @ 0000018b28395940] Weighted P-Frames: Y:11.7% UV:10.4% [libx264 @ 0000018b28395940] ref P L0: 61.0% 16.7% 15.4% 6.7% 0.2% [libx264 @ 0000018b28395940] ref B L0: 88.6% 8.8% 2.6% [libx264 @ 0000018b28395940] ref B L1: 94.5% 5.5% [libx264 @ 0000018b28395940] kb/s:15220.57 [dshow @ 0000018b2838d740] real-time buffer [screen-capture-recorder] [video input] too full or near too full (969% of size: 3041280 [rtbufsize parameter])! frame dropped! Last message repeated 7 times Exiting normally, received signal 2. ```

gdi output

```c# C:\Apps\Switch\switch-remote-play-install_v0.8.3>ffmpeg -f gdigrab -framerate 60 -vsync 2 -i desktop gditest.mkv ffmpeg version 4.3.1-2020-11-19-essentials_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers built with gcc 10.2.0 (Rev5, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100 [gdigrab @ 000002797fb0e180] Capturing whole desktop as 7680x1440x32 at (-2560,0) [gdigrab @ 000002797fb0e180] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, gdigrab, from 'desktop': Duration: N/A, start: 1614578822.013613, bitrate: 21233689 kb/s Stream #0:0: Video: bmp, bgra, 7680x1440, 21233689 kb/s, 60 fps, 1000k tbr, 1000k tbn, 1000k tbc Stream mapping: Stream #0:0 -> #0:0 (bmp (native) -> h264 (libx264)) Press [q] to stop, [?] for help [libx264 @ 000002797fb11bc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 000002797fb11bc0] profile High 4:4:4 Predictive, level 6.0, 4:4:4, 8-bit [libx264 @ 000002797fb11bc0] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'gditest.mkv': Metadata: encoder : Lavf58.45.100 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 7680x1440, q=-1--1, 60 fps, 1k tbn, 60 tbc Metadata: encoder : Lavc58.91.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A frame= 94 fps=3.4 q=-1.0 Lsize= 22871kB time=00:00:20.43 bitrate=9168.8kbits/s speed=0.744x video:22869kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.006149% [libx264 @ 000002797fb11bc0] frame I:1 Avg QP: 9.01 size:1625622 [libx264 @ 000002797fb11bc0] frame P:29 Avg QP:14.66 size:389074 [libx264 @ 000002797fb11bc0] frame B:64 Avg QP:18.72 size:164197 [libx264 @ 000002797fb11bc0] consecutive B-frames: 5.3% 8.5% 9.6% 76.6% [libx264 @ 000002797fb11bc0] mb I I16..4: 62.2% 13.6% 24.2% [libx264 @ 000002797fb11bc0] mb P I16..4: 6.0% 6.8% 5.3% P16..4: 10.0% 1.4% 1.6% 0.0% 0.0% skip:68.9% [libx264 @ 000002797fb11bc0] mb B I16..4: 0.1% 1.8% 2.0% B16..8: 4.8% 1.2% 0.8% direct: 1.5% skip:87.8% L0:44.0% L1:45.3% BI:10.6% [libx264 @ 000002797fb11bc0] 8x8 transform intra:37.4% inter:53.7% [libx264 @ 000002797fb11bc0] coded y,u,v intra: 65.7% 47.6% 44.4% inter: 5.2% 1.3% 1.1% [libx264 @ 000002797fb11bc0] i16 v,h,dc,p: 88% 6% 3% 3% [libx264 @ 000002797fb11bc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 13% 17% 6% 7% 9% 7% 9% 10% [libx264 @ 000002797fb11bc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 14% 11% 7% 10% 11% 9% 10% 10% [libx264 @ 000002797fb11bc0] Weighted P-Frames: Y:6.9% UV:6.9% [libx264 @ 000002797fb11bc0] ref P L0: 41.5% 5.0% 18.4% 35.0% 0.1% [libx264 @ 000002797fb11bc0] ref B L0: 74.7% 19.0% 6.3% [libx264 @ 000002797fb11bc0] ref B L1: 90.8% 9.2% [libx264 @ 000002797fb11bc0] kb/s:8767.82 Exiting normally, received signal 2. ```

bad1dea commented 3 years ago

Found a few more games that this happens on.

Moehammered commented 3 years ago

Found a few more games that this happens on.

Thanks for keeping in touch and letting me know. Could you list the games that you found so I can see if I own any and use them to test with?

eco9898 commented 2 years ago

This happens to me to when I launch steam big picture mode, but only on certain screens. I thought it might have been a dropped frame issue? I haven't tested any games yet