Question / Help Streaming breaks after about 20 minutes

ChurchGuy

New Member
Hi,
We are using OBS to stream/broadcast our Sunday sermon via You Tube. We've been doing this for about a year now and everything has been working great. But the past two Sundays, the streaming shuts down 20+ minutes into the broadcast. (Note this is a year old PC bought for streaming, with a strong internet connection; we are showing low CPU load high bit rate (in green) and no dropped frames.) Different people run the broadcast each Sunday, and a few other people in the church access the PC as well, so it is possible that someone that someone changed a setting somewhere, but I think it is unlikely. During Easter Sunday broadcast (which someone else was running) the broadcast shut down after about 26 minutes. So last week I upgraded to the latest OBS in the hope that might resolve things. I ran a test stream (in an empty sanctuary) afterwards and it ran for ~30 minutes without a problem, so I hoped that the upgrade had resolved things. Unfortunately during Sunday's broadcast, it stopped about 22 minutes into the sermon (at 10:52 AM). Looking in the log, at the time it stopped I see:
10:52:46 AM.509: [jim-nvenc: 'simple_h264_stream'] nvenc_encode_tex: nv.nvEncMapInputResource(enc->session, &map) failed: 15 (NV_ENC_ERR_INVALID_VERSION)
10:52:46 AM.509: Video stopped, number of skipped frames due to encoding lag: 2/40841 (0.0%)


The windows machine says that the video drivers are the latest version. (Windows has recently done a series of updates, not sure if that is important.) I have included the log following this message. Any help that you could offer in resolving this quickly would be greatly appreciated!
 

Attachments

  • log.txt
    10.2 KB · Views: 14

Sukiyucky

Member
The error occurred while you were in the Just Camera Scene. That triggered what seems to be a bug. I say bug because previous log entries show that you performed the same switch to the scene and no error resulted. For some reason, the call to check on the Nvidia encoder version is failing. Whether this is in OBS' code or from inside the API OBS is calling needs more investigation:

10:47:43 AM.295: User switched to scene 'Just Camera'
10:52:46 AM.509: [jim-nvenc: 'simple_h264_stream'] nvenc_encode_tex: nv.nvEncMapInputResource(enc->session, &map) failed: 15 (NV_ENC_ERR_INVALID_VERSION)

Inside that scene you have a video capture device.

10:12:56.008: - scene 'Just Camera':
10:12:56.008: - source: 'Video Capture Device' (dshow_input)

Is that video capture device he Elgato game capture card? Your log shows you have no other video capture devices like a webcam listed.

10:12:59 AM.250: [DShow Device: 'Video Capture Device'] settings updated:
10:12:59 AM.250: video device: Elgato Game Capture HD
10:12:59 AM.250: video path: __elgato
10:12:59 AM.250: resolution: 1920x1080
10:12:59 AM.250: fps: 30.00 (interval: 333333)
10:12:59 AM.250: format: UYVY
10:12:59 AM.250: using video device audio: yes
10:12:59 AM.250: sample rate: 48000
10:12:59 AM.250: channels: 2
10:12:59 AM.250: audio type: Capture

I fso, why are you using an Elgato capture card to deliver a sermon? An Elgato game capture card is for capturing video console output from an PS4 and XBox. Do you play video games and deliver a sermon faceless without a webcam or digital camera?

If you are using it to capture the screen, you don' t need it. OBS Studio does the screen capturing via one of it's own three screen capture source types:
- Window capture - an application window only
- Game capture - whatever is taking over the full screen or a window specified by title
- Display capture - everything on a monitor, including windows desktop

Here's what I would do:

Use an OBS display capture source. Take the Elgato card out. If you need to show your face, get a Logitech webcam and use that instead. You can also use an Elgato Camlink and pair it with a digital camera that the Camlink supports.

If for some reason you must use the Elgato game capture card, try uninstalling and re-installing video display drivers again. Go to Windows Settings | Apps and uninstall everything that is Nvidia. Then, download Nvidia GeForce Experience and install the current drivers. See if that solves the problem.
 

ChurchGuy

New Member
The error occurred while you were in the Just Camera Scene. That triggered what seems to be a bug. I say bug because previous log entries show that you performed the same switch to the scene and no error resulted. For some reason, the call to check on the Nvidia encoder version is failing. Whether this is in OBS' code or from inside the API OBS is calling needs more investigation:

10:47:43 AM.295: User switched to scene 'Just Camera'
10:52:46 AM.509: [jim-nvenc: 'simple_h264_stream'] nvenc_encode_tex: nv.nvEncMapInputResource(enc->session, &map) failed: 15 (NV_ENC_ERR_INVALID_VERSION)

Inside that scene you have a video capture device.

10:12:56.008: - scene 'Just Camera':
10:12:56.008: - source: 'Video Capture Device' (dshow_input)

Is that video capture device he Elgato game capture card? Your log shows you have no other video capture devices like a webcam listed.

10:12:59 AM.250: [DShow Device: 'Video Capture Device'] settings updated:
10:12:59 AM.250: video device: Elgato Game Capture HD
10:12:59 AM.250: video path: __elgato
10:12:59 AM.250: resolution: 1920x1080
10:12:59 AM.250: fps: 30.00 (interval: 333333)
10:12:59 AM.250: format: UYVY
10:12:59 AM.250: using video device audio: yes
10:12:59 AM.250: sample rate: 48000
10:12:59 AM.250: channels: 2
10:12:59 AM.250: audio type: Capture

I fso, why are you using an Elgato capture card to deliver a sermon? An Elgato game capture card is for capturing video console output from an PS4 and XBox. Do you play video games and deliver a sermon faceless without a webcam or digital camera?

If you are using it to capture the screen, you don' t need it. OBS Studio does the screen capturing via one of it's own three screen capture source types:
- Window capture - an application window only
- Game capture - whatever is taking over the full screen or a window specified by title
- Display capture - everything on a monitor, including windows desktop

Here's what I would do:

Use an OBS display capture source. Take the Elgato card out. If you need to show your face, get a Logitech webcam and use that instead. You can also use an Elgato Camlink and pair it with a digital camera that the Camlink supports.

If for some reason you must use the Elgato game capture card, try uninstalling and re-installing video display drivers again. Go to Windows Settings | Apps and uninstall everything that is Nvidia. Then, download Nvidia GeForce Experience and install the current drivers. See if that solves the problem.


Thanks for the reply. The ElGato is actually an external USB instead of an internal card. During the service, the ElGato provides video feed from an HDMI video camera that is set up in the sanctuary. The video provides the video and audio of the church service that we broadcast. It has worked quite nicely for a year now. In addition, for some scenes we use Display capture of the second monitor, which is connected to a projector in the sanctuary displaying bible verses and song lyrics for the church members. (Scenes such as 'Camera and Slides Lower Left' display the camera with the display capture scaled down and overlaid onto the camera image.) Windows indicated that the drivers were the latest, but I will happily try running the GeForce Experience software to see if it provides drivers which are more useful.
 
Top