Question / Help NVENC HEVC get some gray mosaic on 1080p-60f, no problem with 30F [SOLVED]

sumirecccp

New Member
PROBLEM SOLVED.
JUST CLOSE THE DESTINATION FOLDER'S NTFS COMPRESS FUNCTION.

=========

hello, my graphic card is RTX2080, and when I set framerate to 60, I will get some ramdom gray mosaic.
ffplay log:
[hevc @ 00000298ed20c3c0] Could not find ref with POC 1230B f=0/0
[hevc @ 00000298ed20c3c0] Could not find ref with POC 122
[hevc @ 00000298ed34a000] Duplicate POC in a sequence: 124. f=0/0
[hevc @ 00000298ed34a000] Error parsing NAL unit #2.
[hevc @ 00000298ed34ea00] Duplicate POC in a sequence: 124.
[hevc @ 00000298ed34ea00] Error parsing NAL unit #2.
[hevc @ 00000298ed34a000] Could not find ref with POC 68 0B f=0/0
[hevc @ 00000298ed34a000] Could not find ref with POC 67
[hevc @ 00000298ed34a000] Could not find ref with POC 66
[hevc @ 00000298ed34ea00] Duplicate POC in a sequence: 69.
[hevc @ 00000298ed34ea00] Error parsing NAL unit #2.
[hevc @ 00000298ecf6f8c0] Duplicate POC in a sequence: 69.B f=0/0
[hevc @ 00000298ecf6f8c0] Error parsing NAL unit #2.
[hevc @ 00000298ecf3e480] Duplicate POC in a sequence: 69.
[hevc @ 00000298ecf3e480] Error parsing NAL unit #2.
[hevc @ 00000298ecf6f8c0] Could not find ref with POC 1520B f=0/0
[hevc @ 00000298ecf6f8c0] Could not find ref with POC 151
[hevc @ 00000298ecf6f8c0] Could not find ref with POC 150
[hevc @ 00000298ecf6f8c0] Could not find ref with POC 1490B f=0/0
[hevc @ 00000298ecf3e480] Duplicate POC in a sequence: 153.
[hevc @ 00000298ecf3e480] Error parsing NAL unit #2.

etc.

but it's ok in 30f mode, and when I try another soft Bandicam using HEVC-60fps ,there's no problem too.
Any idea to solve this problem?

ADD: OBS LOG
13:27:59.843: CPU Name: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
13:27:59.843: CPU Speed: 3392MHz
13:27:59.843: Physical Cores: 4, Logical Cores: 8
13:27:59.843: Physical Memory: 16318MB Total, 4449MB Free
13:27:59.843: Windows Version: 10.0 Build 17763 (revision: 253; 64-bit)
13:27:59.843: Running as administrator: false
13:27:59.843: Aero is Enabled (Aero is always on for windows 8 and above)
13:27:59.843: Windows 10 Gaming Features:
13:27:59.843: Game Bar: On
13:27:59.843: Game DVR: On
13:27:59.843: Game DVR Background Recording: Off
13:27:59.843: Game Mode: On
13:27:59.847: Sec. Software Status:
13:27:59.850:
13:27:59.851:
13:27:59.851:
13:27:59.852: Browser Hardware Acceleration: true
13:27:59.852: Portable mode: false
13:28:00.128: OBS 22.0.2 (64-bit, windows)
13:28:00.128: ---------------------------------
13:28:00.133: ---------------------------------
13:28:00.133: audio settings reset:
13:28:00.133: samples per sec: 48000
13:28:00.133: speakers: 2
13:28:00.165: ---------------------------------
13:28:00.165: Initializing D3D11...
13:28:00.167: Available Video Adapters:
13:28:00.171: Adapter 1: NVIDIA GeForce RTX 2080
13:28:00.171: Dedicated VRAM: 4104126464
13:28:00.171: Shared VRAM: 4260395008
13:28:00.171: output 1: pos={0, 0}, size={3840, 2160}, attached=true
13:28:00.205: Loading up D3D11 on adapter NVIDIA GeForce RTX 2080 (0)
13:28:00.316: D3D11 loaded successfully, feature level used: 45056
13:28:01.319: ---------------------------------
13:28:01.319: video settings reset:
13:28:01.319: base resolution: 1280x720
13:28:01.319: output resolution: 1280x720
13:28:01.319: downscale filter: Lanczos
13:28:01.319: fps: 60000/1001
13:28:01.319: format: I420
13:28:01.319: YUV mode: 709/Partial
13:28:01.321: Audio monitoring device:
13:28:01.321: name: 既定
13:28:01.321: id: default
13:28:01.325: ---------------------------------
13:28:01.658: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
13:28:01.676: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
13:28:01.817: [AMF] AMF Test failed due to one or more errors.
13:28:01.817: Failed to initialize module 'enc-amf.dll'
13:28:02.240: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
13:28:02.271: LoadLibrary failed for '../../obs-plugins/64bit/libEGL.dll': The specified procedure could not be found.
13:28:02.271: (127)
13:28:02.271: Module '../../obs-plugins/64bit/libEGL.dll' not loaded
13:28:02.350: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
13:28:02.427: [obs-browser]: Version 2.1.5
13:28:02.620: NVENC supported
13:28:02.990: Couldn't find VLC installation, VLC video source disabled
13:28:03.052: No blackmagic support
13:28:03.143: ---------------------------------
13:28:03.143: Loaded Modules:
13:28:03.143: win-wasapi.dll
13:28:03.143: win-mf.dll
13:28:03.143: win-ivcam.dll
13:28:03.143: win-dshow.dll
13:28:03.143: win-decklink.dll
13:28:03.143: win-capture.dll
13:28:03.143: vlc-video.dll
13:28:03.143: text-freetype2.dll
13:28:03.143: rtmp-services.dll
13:28:03.143: obs-x264.dll
13:28:03.143: obs-vst.dll
13:28:03.143: obs-transitions.dll
13:28:03.143: obs-text.dll
13:28:03.143: obs-qsv11.dll
13:28:03.143: obs-outputs.dll
13:28:03.143: obs-filters.dll
13:28:03.143: obs-ffmpeg.dll
13:28:03.143: obs-browser.dll
13:28:03.143: image-source.dll
13:28:03.143: frontend-tools.dll
13:28:03.143: enc-amf.dll
13:28:03.143: coreaudio-encoder.dll
13:28:03.143: ---------------------------------
13:28:03.143: ==== Startup complete ===============================================
13:28:03.165: All scene data cleared
13:28:03.165: ------------------------------------------------
13:28:03.192: [window-capture: 'ウィンドウキャプチャ'] update settings:
13:28:03.192: executable: firefox.exe
13:28:03.234: WASAPI: Device 'VoiceMeeter Output (VB-Audio Cable A)' initialized
13:28:03.234: Switched to scene 'シーン'
13:28:03.261: ------------------------------------------------
13:28:03.261: Loaded scenes:
13:28:03.261: - scene 'シーン':
13:28:03.261: - source: 'ウィンドウキャプチャ' (window_capture)
13:28:03.261: - source: '音声入力キャプチャ' (wasapi_input_capture)
13:28:03.261: ------------------------------------------------
13:28:03.282: adding 64 milliseconds of audio buffering, total audio buffering is now 64 milliseconds
13:28:03.900: CalculateFileHash: Failed to open file 'C:\Users\Snowball\AppData\Roaming\obs-studio\updates\whatsnew.json':
13:28:07.579: ---------------------------------
13:28:07.579: video settings reset:
13:28:07.579: base resolution: 1920x1080
13:28:07.579: output resolution: 1920x1080
13:28:07.579: downscale filter: Lanczos
13:28:07.579: fps: 60000/1001
13:28:07.579: format: I420
13:28:07.579: YUV mode: 709/Partial
13:28:07.585: Audio monitoring device:
13:28:07.585: name: 既定
13:28:07.585: id: default
13:28:07.600: Switched to profile '1920x1080 hevc' (1920x1080_hevc)
13:28:07.600: ------------------------------------------------
13:29:05.194: Switched to scene '(null)'
13:29:05.194: WASAPI: Device 'VoiceMeeter Output (VB-Audio Cable A)' Terminated
13:29:05.199: All scene data cleared
13:29:05.199: ------------------------------------------------
13:29:05.200: [window-capture: 'ウィンドウキャプチャ'] update settings:
13:29:05.200: executable: firefox.exe
13:29:05.222: WASAPI: Device 'VoiceMeeter Output (VB-Audio Cable A)' initialized
13:29:05.224: Switched to scene 'シーン'
13:29:05.224: ------------------------------------------------
13:29:05.225: Loaded scenes:
13:29:05.225: - scene 'シーン':
13:29:05.225: - source: 'ウィンドウキャプチャ' (window_capture)
13:29:05.225: - source: '音声入力キャプチャ' (wasapi_input_capture)
13:29:05.225: ------------------------------------------------
13:29:05.235: Switched to scene collection 'channel1080' (channel1080.json)
13:29:05.235: ------------------------------------------------
13:29:15.007: ==== Recording Start ===============================================
13:30:39.924: Output 'adv_ffmpeg_output': stopping
13:30:39.924: Output 'adv_ffmpeg_output': Total frames output: 5086
13:30:39.924: Output 'adv_ffmpeg_output': Total drawn frames: 5162
13:30:39.925: ==== Recording Stop ================================================
 

Attachments

  • 2019-02-03 23-28-00.ts_20190203_234130.124.jpg
    2019-02-03 23-28-00.ts_20190203_234130.124.jpg
    263.2 KB · Views: 187
  • 20190206134002.jpg
    20190206134002.jpg
    39.8 KB · Views: 148
Last edited:
First up, OBS seems to use only it's own "custom settings" format, being <string=value> (space for seperation).

Secondly, an OBS log is prefered over a FFplay log.
 
While it isn't exactly important, it's definitely worth mentioning:
13:27:59.843: Windows 10 Gaming Features:
13:27:59.843: Game Bar: On
13:27:59.843: Game DVR: On
13:27:59.843: Game DVR Background Recording: Off
13:27:59.843: Game Mode: On
It is recommended to turn windows gaming features completely off, not just the GameDVR.
 
You may be interested in this thread: https://obsproject.com/forum/threads/nvenc-performance-improvements-beta.98950/ (slightly different implementation of the encoder. You may check if it works any way better for you).

Log shows that the NTSC fps is set, not the 60. Is there any reason to do so, for you?
Why color format: I420 ?
both 59.94fps and 60fps mode have this problem. 29.97fps and 30fps don't have this problem.
also NV12 mode has gray mosaic issue too.

that thread: I will try it later.

While it isn't exactly important, it's definitely worth mentioning:

It is recommended to turn windows gaming features completely off, not just the GameDVR.
I tried closed GAMEDVR and GAMEbar, but issue persists.
 
NVIDIA own recording tools works better (no grey blocks artifacts)?
Is this artifacts part of the image or they can disappear if you rewind video back for few seconds?
 
NVIDIA own recording tools works better (no grey blocks artifacts)?
Is this artifacts part of the image or they can disappear if you rewind video back for few seconds?
They're part of recorded video. but if use Bandicam, there won't be any gray blocks on 60f mode.
I think this may be a bug of OBS22.
 
Maybe preset is too slow for the mentioned task? Are the Bandicam videos has any MediaInfo about the used settings? Can you compare it?
 
Code:
bandicam, ffplay:
[hevc @ 000001ebce874000] SPS 0 does not exist.KB sq=    0B f=0/0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'H:\OBSrecord\bandicam 2019-02-07 20-56-11-293.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: mp41
    creation_time   : 2019-02-07T11:56:12.000000Z
    encoder         : Bandicam 4.3.0.1479 / GDI / Nvidia NVENC
    encoder-eng     : Bandicam 4.3.0.1479 / GDI / Nvidia NVENC
  Duration: 00:01:26.35, start: 0.000000, bitrate: 21865 kb/s
    Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 21737 kb/s, 59.75 fps, 59.94 tbr, 59940 tbn, 59.94 tbc (default)
    Metadata:
      creation_time   : 2019-02-07T11:56:12.000000Z
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 118 kb/s (default)
    Metadata:
      creation_time   : 2019-02-07T11:56:12.000000Z
      handler_name    : SoundHandler
[hevc @ 000001ebd573f800] SPS 0 does not exist.
  86.30 A-V:-17.411 fd= 206 aq=    0KB vq=    0KB sq=    0B f=0/0
 
 
  bandicam, mediainfo:
 
  General
Complete name               : H:\OBSrecord\bandicam 2019-02-07 20-56-11-293.mp4
Format                      : MPEG-4
Format profile              : Base Media
Codec ID                    : isom (mp41)
File size                   : 225 MiB
Duration                    : 1 min 26 s
Overall bit rate mode       : Variable
Overall bit rate            : 21.9 Mb/s
Encoded date                : UTC 2019-02-07 11:56:12
Tagged date                 : UTC 2019-02-07 11:56:12
Writing application         : Bandicam 4.3.0.1479 / GDI / Nvidia NVENC

Video
ID                          : 1
Format                      : HEVC
Format/Info                 : High Efficiency Video Coding
Format profile              : Main@L4@Main
Codec ID                    : hvc1
Codec ID/Info               : High Efficiency Video Coding
Duration                    : 1 min 26 s
Bit rate                    : 21.7 Mb/s
Width                       : 1 920 pixels
Height                      : 1 080 pixels
Display aspect ratio        : 16:9
Frame rate mode             : Variable
Frame rate                  : 59.755 FPS
Minimum frame rate          : 9.990 FPS
Maximum frame rate          : 60.000 FPS
Original frame rate         : 59.940 (60000/1001) FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Bits/(Pixel*Frame)          : 0.175
Stream size                 : 224 MiB (99%)
Language                    : English
Encoded date                : UTC 2019-02-07 11:56:12
Tagged date                 : UTC 2019-02-07 11:56:12
Codec configuration box     : hvcC

Audio
ID                          : 2
Format                      : AAC LC
Format/Info                 : Advanced Audio Codec Low Complexity
Codec ID                    : mp4a-40-2
Duration                    : 1 min 26 s
Duration_LastFrame          : -8 ms
Bit rate mode               : Variable
Bit rate                    : 119 kb/s
Maximum bit rate            : 304 kb/s
Channel(s)                  : 2 channels
Channel layout              : L R
Sampling rate               : 48.0 kHz
Frame rate                  : 46.875 FPS (1024 SPF)
Compression mode            : Lossy
Stream size                 : 1.22 MiB (1%)
Language                    : English
Encoded date                : UTC 2019-02-07 11:56:12
Tagged date                 : UTC 2019-02-07 11:56:12
Code:
OBS,ffplay:
preset=fast rc=constqp qp=18  profile=main

Input #0, mpegts, from 'H:\OBSrecord\2019-02-07 21-06-48.ts':=0/0
  Duration: 00:01:27.38, start: 0.000000, bitrate: 14308 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: hevc (Main) ([36][0][0][0] / 0x0024), yuv420p(tv, bt709/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 240 kb/s
[hevc @ 0000021f1827e100] Could not find ref with POC 1480B f=0/0
[hevc @ 0000021f1827f980] Duplicate POC in a sequence: 149. f=0/0
[hevc @ 0000021f1827f980] Error parsing NAL unit #2.
[hevc @ 0000021f11865180] Could not find ref with POC 38 0B f=0/0
[hevc @ 0000021f11837980] Duplicate POC in a sequence: 39.
[hevc @ 0000021f11837980] Error parsing NAL unit #2.
[hevc @ 0000021f1827dcc0] Could not find ref with POC 67 0B f=0/0
[hevc @ 0000021f1827e100] Duplicate POC in a sequence: 68.
[hevc @ 0000021f1827e100] Error parsing NAL unit #2.
[hevc @ 0000021f1827f980] Duplicate POC in a sequence: 68.B f=0/0
[hevc @ 0000021f1827f980] Error parsing NAL unit #2.
[hevc @ 0000021f11865a80] Could not find ref with POC 65 0B f=0/0
[hevc @ 0000021f1827dcc0] Duplicate POC in a sequence: 66.B f=0/0
[hevc @ 0000021f1827dcc0] Error parsing NAL unit #2.
[hevc @ 0000021f18654040] Could not find ref with POC 1740B f=0/0
[hevc @ 0000021f11864d00] Duplicate POC in a sequence: 175.
[hevc @ 0000021f11864d00] Error parsing NAL unit #2.
[hevc @ 0000021f18654040] Could not find ref with POC 37 0B f=0/0
[hevc @ 0000021f11864d00] Duplicate POC in a sequence: 38.B f=0/0
[hevc @ 0000021f11864d00] Error parsing NAL unit #2.
[hevc @ 0000021f11865180] Duplicate POC in a sequence: 38.
[hevc @ 0000021f11865180] Error parsing NAL unit #2.
[hevc @ 0000021f11837980] Could not find ref with POC 2820B f=0/0
[hevc @ 0000021f11865600] Duplicate POC in a sequence: 283.
[hevc @ 0000021f11865600] Error parsing NAL unit #2.
[hevc @ 0000021f11837980] Could not find ref with POC 64 0B f=0/0
[hevc @ 0000021f11865600] Duplicate POC in a sequence: 65.B f=0/0
[hevc @ 0000021f11865600] Error parsing NAL unit #2.
[hevc @ 0000021f11865a80] Duplicate POC in a sequence: 65.
[hevc @ 0000021f11865a80] Error parsing NAL unit #2.
[hevc @ 0000021f11865600] Could not find ref with POC 1460B f=0/0
[hevc @ 0000021f11865a80] Duplicate POC in a sequence: 147. f=0/0
[hevc @ 0000021f11865a80] Error parsing NAL unit #2.
[hevc @ 0000021f1827dcc0] Duplicate POC in a sequence: 147.
[hevc @ 0000021f1827dcc0] Error parsing NAL unit #2.
[hevc @ 0000021f11864d00] Could not find ref with POC 1190B f=0/0
[hevc @ 0000021f11865180] Duplicate POC in a sequence: 120. f=0/0
[hevc @ 0000021f11865180] Error parsing NAL unit #2.
[hevc @ 0000021f11837980] Duplicate POC in a sequence: 120.
[hevc @ 0000021f11837980] Error parsing NAL unit #2.
[hevc @ 0000021f11864d00] Could not find ref with POC 63 0B f=0/0
[hevc @ 0000021f11865180] Duplicate POC in a sequence: 64.B f=0/0
[hevc @ 0000021f11865180] Error parsing NAL unit #2.
[hevc @ 0000021f11837980] Duplicate POC in a sequence: 64.
[hevc @ 0000021f11837980] Error parsing NAL unit #2.
[hevc @ 0000021f11865600] Duplicate POC in a sequence: 64.B f=0/0
[hevc @ 0000021f11865600] Error parsing NAL unit #2.
[hevc @ 0000021f1827dcc0] Could not find ref with POC 2280B f=0/0
[hevc @ 0000021f1827e100] Duplicate POC in a sequence: 229. f=0/0
[hevc @ 0000021f1827e100] Error parsing NAL unit #2.
[hevc @ 0000021f1827dcc0] Could not find ref with POC 9  0B f=0/0
[hevc @ 0000021f1827e100] Duplicate POC in a sequence: 10.
[hevc @ 0000021f1827e100] Error parsing NAL unit #2.
[hevc @ 0000021f11865a80] Could not find ref with POC 90 0B f=0/0
[hevc @ 0000021f1827dcc0] Duplicate POC in a sequence: 91.
[hevc @ 0000021f1827dcc0] Error parsing NAL unit #2.
[hevc @ 0000021f1827e100] Duplicate POC in a sequence: 91.B f=0/0
[hevc @ 0000021f1827e100] Error parsing NAL unit #2.
[hevc @ 0000021f1827e100] Could not find ref with POC 35 0B f=0/0
[hevc @ 0000021f1827f980] Duplicate POC in a sequence: 36.
[hevc @ 0000021f1827f980] Error parsing NAL unit #2.
[hevc @ 0000021f18654040] Duplicate POC in a sequence: 36.B f=0/0
[hevc @ 0000021f18654040] Error parsing NAL unit #2.
  87.32 A-V: -1.029 fd=  10 aq=    0KB vq=    0KB sq=    0B f=0/0
 
 
  OBS,MEDIAINFO:
  General
ID                          : 1 (0x1)
Complete name               : H:\OBSrecord\2019-02-07 21-06-48.ts
Format                      : MPEG-TS
File size                   : 149 MiB
Duration                    : 1 min 27 s
Overall bit rate mode       : Variable
Overall bit rate            : 14.3 Mb/s

Video
ID                          : 256 (0x100)
Menu ID                     : 1 (0x1)
Format                      : HEVC
Format/Info                 : High Efficiency Video Coding
Format profile              : Main@L4@Main
Codec ID                    : 36
Duration                    : 1 min 27 s
Width                       : 1 920 pixels
Height                      : 1 080 pixels
Display aspect ratio        : 16:9
Frame rate                  : 59.940 (60000/1001) FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Color range                 : Limited
Matrix coefficients         : BT.709

Audio
ID                          : 257 (0x101)
Menu ID                     : 1 (0x1)
Format                      : AAC LC
Format/Info                 : Advanced Audio Codec Low Complexity
Format version              : Version 4
Muxing mode                 : ADTS
Codec ID                    : 15-2
Duration                    : 1 min 27 s
Bit rate mode               : Variable
Channel(s)                  : 2 channels
Channel layout              : L R
Sampling rate               : 48.0 kHz
Frame rate                  : 46.875 FPS (1024 SPF)
Compression mode            : Lossy
Delay relative to video     : -21 ms

Menu
ID                          : 4096 (0x1000)
Menu ID                     : 1 (0x1)
Duration                    : 1 min 27 s
List                        : 256 (0x100) (HEVC) / 257 (0x101) (AAC)
Service name                : Service01
Service provider            : FFmpeg
Service type                : digital television
 
The only info I see is: https://forums.geforce.com/default/...uared-artifacts-after-upgrading-to-1080-ti/1/
Also, you may try to contact manufacturer of the video card (NVENC is part of your video card), maybe their stuff knows more.

By the way, can you perform the test: https://obsproject.com/mantis/view.php?id=624#c3790
and share the result to see how precise is floating point calculations on your card? (It has nothing to do with the original issue - I'm just wondering, is the expensive card works better in all ways or not).
 
Another user previously posted a similar thread, in regards to high resolution monitors,and the same artifacting issue.
Don't know if it's a bug in NVENC overall, but it could very well be.
 
Back
Top