Replay Source

Replay Source 1.7.0

Niklas Sahlin

New Member
Hi @Exeldro

Do you have knowlage on using Replay Source together with NDi?

My setup when streaming icehockey is one main camera placed on middle longside runing together with a grabber in to OBS and that´s working ok, and I have two iPhones behind each goal running NDi CAM app sending NDi stream in the network for OBS to grabb by OBS NDi plugin.

It´s no problem for OBS to switch between the CAMs on different angles.

After I added Replay Source in to OBS I got som strange slowness in to the system.
I have done almost everything we talked about before and updated everything to newest version etc, but this slowness keeps poping up on various times.

One thing:
1. I have one Profile but several Scen collections (soccer, hockey, meetings etc) and after I added Replay Sourse (RS) the system takes 20 sek to shift between the Scen collections and sometimes it just crash. I have looked in to the log but nothing is consistend to let me follow up on. Very strange and if I remov RS files it works fast again and no sporradic crashes

2. Memory runns away to mutch on each NDi CAM I connect to be RS connected and deliver Replays. I understand every RS feed should consume memory, but not 15-20 GB on two cameras running 10 sec replay. I will test more but I thought maby this could be NDi related problems and RS maybe not built for NDi streams?

I have a good setup, alot of memory and fast graphicscard and SSD drives I think, but still I feel something is wrong here if this setup is not enough to run Replay Source?

I'll try more and come back with result but I just whant to check if you now any known issues with RS and NDi

//Niklas
11:37:49.435: CPU Name: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
11:37:49.436: CPU Speed: 2208MHz
11:37:49.436: Physical Cores: 6, Logical Cores: 12
11:37:49.436: Physical Memory: 32610MB Total, 28634MB Free
11:37:49.436: Windows Version: 10.0 Build 18362 (revision: 535; 64-bit)
11:37:49.436: Running as administrator: true
11:37:49.436: Aero is Enabled (Aero is always on for windows 8 and above)
11:37:49.436: Windows 10 Gaming Features:
11:37:49.436: Game DVR: On
11:37:49.440: Sec. Software Status:
11:37:49.442: Current Date/Time: 2020-01-07, 11:37:49
11:37:49.442: Browser Hardware Acceleration: true
11:37:49.442: Portable mode: false
11:37:49.761: OBS 24.0.3 (64-bit, windows)
11:37:49.761: ---------------------------------
11:37:49.773: ---------------------------------
11:37:49.773: audio settings reset:
11:37:49.773: samples per sec: 44100
11:37:49.773: speakers: 2
11:37:49.777: ---------------------------------
11:37:49.777: Initializing D3D11...
11:37:49.777: Available Video Adapters:
11:37:49.786: Adapter 0: NVIDIA GeForce GTX 1060
11:37:49.786: Dedicated VRAM: 2051014656
11:37:49.786: Shared VRAM: 4212287488
11:37:49.786: output 0: pos={0, 0}, size={1920, 1080}, attached=true
11:37:49.786: output 1: pos={-1920, 0}, size={1920, 1080}, attached=true
11:37:49.786: Adapter 1: Intel(R) UHD Graphics 630
11:37:49.786: Dedicated VRAM: 134217728
11:37:49.786: Shared VRAM: 4212287488
11:37:49.790: Loading up D3D11 on adapter NVIDIA GeForce GTX 1060 (0)
11:37:50.706: D3D11 loaded successfully, feature level used: b000
11:37:50.706: D3D11 GPU priority setup success
11:37:51.148: ---------------------------------
11:37:51.148: video settings reset:
11:37:51.148: base resolution: 1920x1080
11:37:51.148: output resolution: 1920x1080
11:37:51.148: downscale filter: Lanczos
11:37:51.148: fps: 50/1
11:37:51.148: format: NV12
11:37:51.148: YUV mode: 709/Full
11:37:51.148: NV12 texture support enabled
11:37:51.149: Audio monitoring device:
11:37:51.149: name: Högtalare (RODECaster Pro Stereo)
11:37:51.149: id: {0.0.0.00000000}.{d3ad73b0-b5e7-403a-a7e1-27f8d3e6622e}
 
How do I save a replay to disk? I setup a directory folder and enabled hot key F1. While replay iis playing I hit the F1 key but get nothing.
 

asicisa

New Member
@asicisa Yes, that is possible. Do you have problems setting it up?
Yes,i have this settings:
OBS 24.0.3 (64-bit, windows) - Profilo_ Senza titolo - Scene_ test 21_01_2020 13_31_44.jpgOBS 24.0.3 (64-bit, windows) - Profilo_ Senza titolo - Scene_ test 21_01_2020 13_32_30.jpgOBS 24.0.3 (64-bit, windows) - Profilo_ Senza titolo - Scene_ test 21_01_2020 13_32_47.jpgOBS 24.0.3 (64-bit, windows) - Profilo_ Senza titolo - Scene_ test 21_01_2020 13_32_56.jpg
When I'm live with CAM 1 and i press Alt+1, all work fine!
When I'm live with CAM 2 and i press Alt+2, all work fine!
When I'm live with CAM 1 and I want to play the replay of CAM 2, I press Alt+2:
replay starts but the source have a strange delay (4 or 5 seconds depends)
Can you help? Do you need a video?
 

Exeldro

Active Member
If a source is not displayed it is not rendered in order to save resources. If it is not rendered the replay can not be captured.
 

pehmonippe

New Member
In case it is of any help, this is the crash log of save replay. If not every time, then at least on every third time.

Unhandled exception: c0000005
Date/Time: 2020-03-04, 20:54:24
Fault address: 7FFF88BA2C1C (c:\windows\system32\ucrtbase.dll)
libobs version: 24.0.3 (64-bit)
Windows version: 10.0 build 16299 (revision: 371; 64-bit)
CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz


Thread 34A8 (Crashed)
Stack EIP Arg0 Arg1 Arg2 Arg3 Address
000000866F55E338 00007FFF88BA2C1C 0000000000000010 00007FF77B9E8D64 0000E50042E03701 000000866F55F4A8 ucrtbase.dll!0x7fff88ba2c1c
000000866F55E340 00007FFF88B87758 000000866F55E3B0 000000866F55E4A0 00000000FFFFFFF5 00007FFF88C41300 ucrtbase.dll!0x7fff88b87758
000000866F55E370 00007FFF88B87CA3 6320302220000000 000000866F55E4A0 00007FFF88C41E70 000000866F55E908 ucrtbase.dll!0x7fff88b87ca3
000000866F55E3C0 00007FFF88B87FDC 00007FFF29D18918 000000866F55E500 0000000000000FFF 0000000000000002 ucrtbase.dll!0x7fff88b87fdc
000000866F55E400 00007FFF88B86231 000000866F55FA40 0000000000000000 0000000000000000 0000000000000000 ucrtbase.dll!0x7fff88b86231
000000866F55E960 00007FF77B9E8AB9 000001AD6FC3C840 0000000000000000 000001AD7625D560 0000000000000000 obs64.exe!do_log+0x79
000000866F55FA00 00007FFF3C85EC1D 000001AD6FC3C840 00007FFF29D18918 000001AD75FCE100 0000000000008000 obs.dll!blog+0x1d
000000866F55FA30 00007FFF29CEBFA3 0000000000000000 000001AD6FC3C840 0000000000000000 0000000000000000 replay-source.dll!replay_save+0x4e3
000000866F55FB90 00007FFF29CE75F2 0000002E20A10DE6 000001AD75FAD660 0000002E1FA2BD00 0000000000000000 replay-source.dll!replay_source_tick+0xe2
000000866F55FCA0 00007FFF3C8854A4 000001AD75FAD660 0000002E20A10DE6 0000000000000000 0000000000000000 obs.dll!obs_source_video_tick+0x104
000000866F55FCE0 00007FFF3C8BFD03 0000000000000000 0000000000000000 0000002E1FA2BD00 0000000003487000 obs.dll!tick_sources+0x103
000000866F55FD20 00007FFF3C8BE4E8 0000000000000000 0000000000000000 0000000000000000 0000000000000000 obs.dll!obs_graphics_thread+0x1e8
000000866F55FDE0 00007FFF5987757A 000000002FB90000 000001AD6FB0FFA0 0000000000000000 0000000000000000 w32-pthreads.dll!ptw32_threadStart+0x8a
000000866F55FE70 00007FFF88B9DC05 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ucrtbase.dll!0x7fff88b9dc05
000000866F55FEA0 00007FFF8C331FE4 0000000000000000 0000000000000000 0000000000000000 0000000000000000 kernel32.dll!0x7fff8c331fe4
000000866F55FED0 00007FFF8C7EF061 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ntdll.dll!0x7fff8c7ef061

Complete log file attached.

Since this has been a quite well hiding bug, would it be just something stupid like off-by-one or going over file name buffer or similar...
 

Attachments

  • Crash 2020-03-04 20-54-24.txt
    74.3 KB · Views: 19

lindenkron

Member
It's pretty inconceivable to expect people to be able to set aside 1GB Ram/sec of replay they want to do. Surely there's a way to lower that seeing as the default replay buffer function of OBS is like 7 MB fo 10 sec.

This plugin seems cool overall, but it's just not feasible to demand 10GB of ram being set aside to do a simple 10 sec replay clip, unfortunately.

Is this intended or memory leaking hard?

-lindenkron
 

Exeldro

Active Member
The plugin keeps the replays uncompressed in memory, so depending on the resolution en framerate. For 1920 ×1080 60FPS you need 1 GB per second of replay
 

kb_schro

New Member
Love the plugin. haven't been able to use it for a couple updates as i just couldnt get it to work. Now i can get it to show up properly, but i have no options for hotkeys in the source settings or in the OBS setting. Any suggestions?
 
Top