"Encoder error" with RTX 3080 while streaming apex legends

LobsterNips

New Member
I've looked around and haven't seen an answer to the question yet. I'm running an RTX 3080, ryzen 3600, 32GB ram, and up until today I wasn't having this issue. While playing apex today and streaming after I complete a game and leave to go back to the lobby my i get an "encoder error" and the stream crashes. I'm honestly at a loss hopefully someone on here can help. Log File attached
 

Attachments

  • 2021-02-10 18-18-28.txt
    20.2 KB · Views: 68
Last edited:

qhobbes

Active Member
WINDOWS STUFF
1. The version of Windows you are running (1909) has a limitation which causes performance issues in hardware accelerated applications (such as games and OBS) if multiple monitors with different refresh rates are present. Your system's monitors have 2 different refresh rates (120 and 60 Hz), so you are affected by this limitation.

To fix this issue, we recommend updating to at least the Windows 10 May 2020 Update. Follow these instructions if you're not sure how to update.
2. At least one of your audio devices has a sample rate that doesn't match the rest. This can result in audio drift over time or sound distortion. Check your audio devices in Windows settings (both Playback and Recording) and ensure the Default Format (under Advanced) is consistent. 48000 Hz is recommended.
OBS Sample Rate: 48000 Hz
Speakers (Realtek High Definition Audio): 48000 Hz
Microphone (Voicemod Virtual Audio Device (WDM)): 48000 Hz
Microphone (HyperX Quadcast): 44100 Hz
3. In Windows 10 versions 1809 and newer, we recommend that "Game Mode" be enabled for maximum gaming performance. Game Mode can be enabled via the Windows 10 "Settings" app, under Gaming > Game Mode.
OBS STUFF
4. Uncheck the box for Psycho Visual Tuning. Change the streaming preset to Quality. If you have the bandwidth, just stream at 5000 and use the "use stream recorder" option for recording.
5. Display and Game Capture Sources interfere with each other. Never put them in the same scene (SE PC).
6. Multiple Game Capture sources are usually not needed, and can sometimes interfere with each other. You can use the same Game Capture for all your games! If you change games often, try out the hotkey mode, which lets you press a key to select your active game. If you play games in fullscreen, use 'Capture any fullscreen application' mode.
7. Settings, Advanced, Network, enable Dynamic bitrate.
8. Record to MKV or FLV. If you record to MP4 or MOV and the recording is interrupted, the file will be corrupted and unrecoverable.

If you require MP4 files for some other purpose like editing, remux them afterwards by selecting File > Remux Recordings in the main OBS Studio window or enable auto remux in the advanced settings.
GAME STUFF
9. Cap your games at 120 FPS.
 

LobsterNips

New Member
Took these steps but still the same issue. I completed 2 games of apex and upon going back to the lobby after the second game I got the encoder error again.
-All my scenes now only have one capture source per scene (still says capture interference not sure why)
-Updated my windows but still says my version can cause issues so not sure about that
-Fixed the sample rate for my microphone and that warning is gone now
-Game mode hasn't helped on or off
-Made the recommended OBS changes
-Game has been capped at 120 but this has also happened at a cap of 60 too
Log file from the last session where it crashed
[/QUOTE]
WINDOWS STUFF
1. The version of Windows you are running (1909) has a limitation which causes performance issues in hardware accelerated applications (such as games and OBS) if multiple monitors with different refresh rates are present. Your system's monitors have 2 different refresh rates (120 and 60 Hz), so you are affected by this limitation.

To fix this issue, we recommend updating to at least the Windows 10 May 2020 Update. Follow these instructions if you're not sure how to update.
2. At least one of your audio devices has a sample rate that doesn't match the rest. This can result in audio drift over time or sound distortion. Check your audio devices in Windows settings (both Playback and Recording) and ensure the Default Format (under Advanced) is consistent. 48000 Hz is recommended.
OBS Sample Rate: 48000 Hz
Speakers (Realtek High Definition Audio): 48000 Hz
Microphone (Voicemod Virtual Audio Device (WDM)): 48000 Hz
Microphone (HyperX Quadcast): 44100 Hz
3. In Windows 10 versions 1809 and newer, we recommend that "Game Mode" be enabled for maximum gaming performance. Game Mode can be enabled via the Windows 10 "Settings" app, under Gaming > Game Mode.
OBS STUFF
4. Uncheck the box for Psycho Visual Tuning. Change the streaming preset to Quality. If you have the bandwidth, just stream at 5000 and use the "use stream recorder" option for recording.
5. Display and Game Capture Sources interfere with each other. Never put them in the same scene (SE PC).
6. Multiple Game Capture sources are usually not needed, and can sometimes interfere with each other. You can use the same Game Capture for all your games! If you change games often, try out the hotkey mode, which lets you press a key to select your active game. If you play games in fullscreen, use 'Capture any fullscreen application' mode.
7. Settings, Advanced, Network, enable Dynamic bitrate.
8. Record to MKV or FLV. If you record to MP4 or MOV and the recording is interrupted, the file will be corrupted and unrecoverable.

If you require MP4 files for some other purpose like editing, remux them afterwards by selecting File > Remux Recordings in the main OBS Studio window or enable auto remux in the advanced settings.
GAME STUFF
9. Cap your games at 120 FPS.
 

rockbottom

Active Member
Error code from your first log.
19:03:49.969: [jim-nvenc] get_encoded_packet: nv.nvEncLockBitstream(s, &lock) failed: 8 (NV_ENC_ERR_INVALID_PARAM)

Unfortunately, I have not been able to reproduce this error on my PC so I don't know how to fix it. But, the really bad news, I don't know anybody that has been able to fix it. If you're able figure it out, make sure you post the fix for the other people that are dealing with it.
 

LobsterNips

New Member
I have DVR and Highlights off but ill try turning things down in the game. It's weird because I was able to run it before with things set to reasonable settings and I figure with a 3080 I should be fine but Apex has always been a pain in the ass to stream. I'll try again later today and see if adjusting graphics settings will help
Some info, not sure if it will help but see Carl's workaround (Post #4) in this thread:

https://obsproject.com/forum/threads/encoder-error-locks-up-obs.118029/#post-444515

 

rockbottom

Active Member
Yeah, it's a weird error & if you look at the MantisBT link, the issue has been reopened.

I would also try turning off RTX Voice & raytracing too if you have it enabled.
 

LobsterNips

New Member
Lowering graphics all the way didn't work either. Went from 1080p to 936p as well and still, no luck. When it happens sometimes ill close out OBS and try to relaunch and it'll say it's already running and when I check task manager OBS Studio is running which I don't know where that's coming from so not sure if it's connected. Looks like I just can stream apex for now.
Yeah, it's a weird error & if you look at the MantisBT link, the issue has been reopened.

I would also try turning off RTX Voice & raytracing too if you have it enabled.
 
Top