YorVeX / xObsBeam

OBS plugin to transmit video and audio feeds between OBS instances, raw, or with lossless or lossy compression. NDI alternative.
https://obsproject.com/forum/resources/beam.1705/
MIT License
89 stars 5 forks source link

Logs show dropped frames (1sec 60 frames) almost every 10 seconds #24

Closed Naruske closed 1 year ago

Naruske commented 1 year ago

So not sure how this is happening. I have a beefy laptop, AC powered. It is connected to my game PC through a Thunderbolt to 10Gbit connection. The game PC has a USB 3.2 gen 2 to 5Gbit connection. It's only configured for OBS, so nothing else is on that network.

With compression or without compression it seemingly stutters every couple of seconds, sometimes 2, sometimes 10.

YorVeX commented 1 year ago

I figure this is mostly my fault for not putting a template here saying this when creating an issue, but for 90% of issues people encounter with Beam I will need a log of both the sender and receiver to be able to investigate what's going on. This will also provide lots of other information that I need, like operating system (and distro/version), OBS version, Beam version, OBS resolution and color format and so on.

In your case, please do a fresh start of both sender and receiver OBS, let it run and transmit a feed for a few minutes, then exit both OBS instances, restart, and upload the previous logs from both OBS instances: image

Also I am not familiar with connections of two PCs through Thunderbolt, it's very interesting for me though (and probably for others who want to do lossless raw transmission with Beam), can you give me more information on that? A quick Google search just told me there is something called "Thunderbolt Networking", is that what you're using? image

I assume in the system these appear like network adapters? And since you said this is only meant for OBS, am I right that

To rule out a bug in Beam interface selection, do you have a way of verifying that the feed is actually sent through this Thunderbolt connection? If it's Windows, you should see all interfaces in the Task Manager, the big amount of traffic during an active Beam feed should be visible on the Thunderbolt interface. E.g. for me I have this virtual interface and my Wi-Fi interface, so I could say where exactly the traffic is flowing: image

It would also be interesting to see how much traffic you see there. When you test with Beam in raw mode we could also compare the traffic that would be expected vs. what you see in the measurements. Maybe something is wrong with that Thunderbolt connection and it doesn't provide the bandwidth it should.

Naruske commented 1 year ago

I'm going to create a log for you this afternoon. I'll explain my network setup as of right now. Not really too complicated.

PC > USB A 3.2 GEN 2 (capable of 10gbit) > a QNAP UC5G1T adapter > CAT 7 cable of roughly 1 meter > a OWC Thunderbolt 3 to 10 Gbit adapter > Thunderbolt 3 connection on laptop.

They each have their own IP (192.168.1.1 and 2)

I can verify it was being passed through the adapters. With no compression selected, it was transmitting 1080p60 at 1.5Gbit speed. Fluctuating a lot of course.

I've attempted the stream with compression (tested JPEG, QOI and L24) through my regular home network and that too lagged every couple of seconds.

Laptop has an i7 13800H, 64GB DDR5 RAM, RTX A2000 and it's connected to the charger. PC is just AMD Ryzen 5800x, 16GB DDR4 RAM, RTX 3080 My OBS at the time had the following: Streamelements overlay (1 piece of text) Webcam 1080p and game capture.

Again, I'll get some logs in about 4-5 hrs.

Thanks!

Naruske commented 1 year ago

https://obsproject.com/logs/LyKlRferx9spqPZ2 sender

https://obsproject.com/logs/ZzCrvsmSAjNjVhN5 receiver

YorVeX commented 1 year ago

Fixed in 0.8.3, please update to the new version.