Question / Help Why can't I (we) stream/record @ 1920x1080@60fps with NVENC?

DiGG

Member
How come I (we) can't stream/record 1920x1080 at 60fps with NVENC, while it works at 30fps? Is it videocard related? (I mean, my GTX970 can't handle nvenc in 1080p @ 60fps?)
 

DiGG

Member
Don't tell me I'm the only one on the planet who tried streaming with those specs? Surely someone knows something about this...?
 

DiGG

Member
Just tried:
12:13:55.154: CPU Name: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
12:13:55.154: CPU Speed: 3500MHz
12:13:55.154: Physical Cores: 4, Logical Cores: 8
12:13:55.154: Physical Memory: 2047MB Total, 2047MB Free (NOTE: 2 or 4 gigs max is normal for 32bit programs)
12:13:55.154: Windows Version: 10.0 Build 14393 (revision: 447; 64-bit)
12:13:55.154: Running as administrator: false
12:13:55.154: Aero is Enabled (Aero is always on for windows 8 and above)
12:13:55.165: OBS 0.16.2 (windows)
12:13:55.165: ---------------------------------
12:13:55.166: ---------------------------------
12:13:55.166: audio settings reset:
12:13:55.166: samples per sec: 44100
12:13:55.166: speakers: 2
12:13:55.182: ---------------------------------
12:13:55.182: Initializing D3D11..
12:13:55.182: Available Video Adapters:
12:13:55.184: Adapter 1: NVIDIA GeForce GTX 970
12:13:55.184: Dedicated VRAM: 3221225472
12:13:55.184: Shared VRAM: 1073676288
12:13:55.184: output 1: pos={0, 0}, size={2560, 1440}, attached=true
12:13:55.184: output 2: pos={2560, 0}, size={1920, 1080}, attached=true
12:13:55.187: Loading up D3D11 on adapter NVIDIA GeForce GTX 970 (0)
12:13:55.596: D3D11 loaded sucessfully, feature level used: 45056
12:13:56.060: ---------------------------------
12:13:56.060: video settings reset:
12:13:56.060: base resolution: 2560x1440
12:13:56.060: output resolution: 1920x1080
12:13:56.060: downscale filter: Bilinear
12:13:56.060: fps: 60/1
12:13:56.060: format: NV12
12:13:56.061: ---------------------------------
12:13:56.084: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
12:13:56.103: [AMF Encoder] Version 1.3.1.0-1.3.0.5
12:13:56.103: [AMF Encoder] <Plugin::AMD::AMF::AMF> Initializing...
12:13:56.103: [AMF Encoder] <Plugin::AMD::AMF::AMF> Loading of 'amfrt32.dll' failed with error code 126.
12:13:56.154: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/ffmpegsumo.dll' not found, loading of module failed
12:13:56.332: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/libcef.dll' not found, loading of module failed
12:13:56.345: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/libEGL.dll' not found, loading of module failed
12:13:56.397: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/libGLESv2.dll' not found, loading of module failed
12:13:56.419: Failed to load 'en-US' text for module: 'obs-browser.dll'
12:13:56.419: [browser_source: 'Version: 1.25.0']
12:13:56.437: NVENC supported
12:13:56.635: VLC found, VLC video source enabled
12:14:00.262: No blackmagic support
12:14:00.364: ---------------------------------
12:14:00.364: Loaded Modules:
12:14:00.364: win-wasapi.dll
12:14:00.364: win-mf.dll
12:14:00.364: win-dshow.dll
12:14:00.364: win-decklink.dll
12:14:00.364: win-capture.dll
12:14:00.364: vlc-video.dll
12:14:00.364: text-freetype2.dll
12:14:00.364: rtmp-services.dll
12:14:00.364: obs-x264.dll
12:14:00.364: obs-transitions.dll
12:14:00.364: obs-text.dll
12:14:00.364: obs-qsv11.dll
12:14:00.364: obs-outputs.dll
12:14:00.364: obs-filters.dll
12:14:00.364: obs-ffmpeg.dll
12:14:00.364: obs-browser.dll
12:14:00.364: image-source.dll
12:14:00.364: frontend-tools.dll
12:14:00.364: enc-amf.dll
12:14:00.364: coreaudio-encoder.dll
12:14:00.364: ==== Startup complete ===============================================
12:14:00.369: All scene data cleared
12:14:00.369: ------------------------------------------------
12:14:00.386: WASAPI: Device 'Speakers (High Definition Audio Device)' initialized
12:14:00.401: WASAPI: Device 'Digital Audio (S/PDIF) (High Definition Audio Device)' initialized
12:14:00.401: [WASAPISource::WASAPISource] Device '{0.0.1.00000000}.{3eec4e12-d252-499b-9ded-cf7fb346db9f}' not found. Waiting for device
12:14:00.403: [Media Source 'Media Source']: settings:
12:14:00.403: input: D:/Manual Recordings/Default_20161110_18202300.ts
12:14:00.403: input_format: (null)
12:14:00.403: is_looping: no
12:14:00.403: is_forcing_scale: yes
12:14:00.403: is_hw_decoding: yes
12:14:00.403: is_clear_on_media_end: yes
12:14:00.403: restart_on_activate: yes
12:14:00.430: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
12:14:01.711: Switched to scene 'Scene'
12:14:01.711: ------------------------------------------------
12:14:01.711: Loaded scenes:
12:14:01.711: - scene 'Scene':
12:14:01.711: - source: 'Video Capture Device' (dshow_input)
12:14:01.711: - source: 'Game Capture' (game_capture)
12:14:01.711: - source: 'Window Capture' (window_capture)
12:14:01.711: - source: 'DiGG' (text_ft2_source)
12:14:01.711: - source: 'Media Source' (ffmpeg_source)
12:14:01.711: - source: 'Display Capture' (monitor_capture)
12:14:01.711: - source: 'VLC Video Source' (vlc_source)
12:14:01.711: - scene 'VIDE':
12:14:01.711: - source: 'Game Capture 1' (game_capture)
12:14:01.711: ------------------------------------------------
12:14:15.188: ---------------------------------
12:14:15.188: [NVENC encoder: 'streaming_h264'] settings:
12:14:15.188: rate_control: CBR
12:14:15.188: bitrate: 3300
12:14:15.188: cqp: 0
12:14:15.188: keyint: 120
12:14:15.188: preset: bd
12:14:15.188: profile: high
12:14:15.188: level: 4.1
12:14:15.188: width: 1920
12:14:15.188: height: 1080
12:14:15.188: 2-pass: true
12:14:15.188: GPU: 0
12:14:15.188:
12:14:15.188: warning: This encoder is deprecated, use 'h264_nvenc' instead
12:14:15.632: error: InitializeEncoder failed: invalid param (8)
12:14:15.648: [NVENC encoder: 'streaming_h264'] Failed to open NVENC codec: Invalid argument
 

Attachments

  • 2016-11-12 12-13-55.txt
    5.9 KB · Views: 26

RytoEX

Forum Admin
Forum Moderator
Developer
From your log:
12:14:15.188: [NVENC encoder: 'streaming_h264'] settings:
12:14:15.188: rate_control: CBR
12:14:15.188: bitrate: 3300
12:14:15.188: cqp: 0
12:14:15.188: keyint: 120
12:14:15.188: preset: bd
12:14:15.188: profile: high
12:14:15.188: level: 4.1
12:14:15.188: width: 1920
12:14:15.188: height: 1080
12:14:15.188: 2-pass: true
12:14:15.188: GPU: 0
12:14:15.188:
12:14:15.188: warning: This encoder is deprecated, use 'h264_nvenc' instead
12:14:15.632: error: InitializeEncoder failed: invalid param (8)
12:14:15.648: [NVENC encoder: 'streaming_h264'] Failed to open NVENC codec: Invalid argument
You've provided an invalid parameter to NVENC, meaning one of your settings is invalid. You're using level 4.1, which only supports 1920x1080 at up to 30FPS. Either set it to 4.2, or set it to auto to take the guesswork out of your settings.

Also, you probably really shouldn't stream with NVENC using the Blu-ray preset. You should probably use Default or High Quality. Using the "high" Profile may have downsides (not all sites support it, older hardware may not support decoding it). You'll have to examine the pros/cons there if you want to use it, or just use the "main" profile.
 

sam686

Member
Depends on where you streaming to. Youtube does transcoding to multiple resolutions (1080p 720p 480p) so compatibility won't be affacted, and will accept 2560x1440 at 60fps using large amount of bitrate.

Twitch have limited bitrate (3500 Kbps?) and mostly does not do any transcoding so bye bye compatibility to most mobile devices when going above level 4.1 (1080p60 requires level 4.2), and viewers with weak and outdated computer suffer from trying to watch 1080p60. Very old mobile devices are limited to level 3.1 and may not support high profile.

Level limits are shown here. https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels
 

DiGG

Member
Ya but NO MATTER where I stream (even to highend custom sites), it doesn't even START to stream. I press 'Start Streaming' and nothing happens! And that's specifically when with NVENC and 1080p and 60fps (at 30fps, it works)...

That doesn't tell me why it won't even try to stream...
 
Last edited:

sam686

Member
You've provided an invalid parameter to NVENC, meaning one of your settings is invalid. You're using level 4.1, which only supports 1920x1080 at up to 30FPS. Either set it to 4.2, or set it to auto to take the guesswork out of your settings.
@DiGG Can you show us a new log file after fixing the NVENC settings as suggested above?
 

RytoEX

Forum Admin
Forum Moderator
Developer
Ya but NO MATTER where I stream (even to highend custom sites), it doesn't even START to stream. I press 'Start Streaming' and nothing happens! And that's specifically when yout NVENC and 1080p and 60fps (at 30fps, it works)...

That doesn't tell me why it won't even try to stream...
@DiGG
I already explained why it won't start streaming - you've provided an invalid NVENC setting. Please adjust your settings and try again.

You've provided an invalid parameter to NVENC, meaning one of your settings is invalid. You're using level 4.1, which only supports 1920x1080 at up to 30FPS. Either set it to 4.2, or set it to auto to take the guesswork out of your settings.

Also, you probably really shouldn't stream with NVENC using the Blu-ray preset. You should probably use Default or High Quality. Using the "high" Profile may have downsides (not all sites support it, older hardware may not support decoding it). You'll have to examine the pros/cons there if you want to use it, or just use the "main" profile.

The alternative is to lower your encoder/OBS FPS to 30, but you should still set Level to "auto" unless you have a specific reason not to do so.
 

DiGG

Member
Thanks guys, it was indeed just the problem with 4.1... wow, I feel noobish having purposefully selected it *for no real reasons* you're telling me hehehe.

Thanks, all good now. :)
 
Top