Question / Help OBS to OBS (2 PCs, via LAN): How to, using AMF?

TL;DR: go to WHAT I WANT :)

MY SETUP


So... I have a dedicated card (Gigabyte RX 460 4GB OC, got it at cheap) just for the encoding and a GTX 1080 for gaming, on the same PC, o'course. Most of you will say it's a waste and unnecessary, and most will be right, but it's amazing for capturing and streaming without impacting my gaming performance also, AMD's AMF is an incredible video engine, and I want to game using nVidia. Also, I had a incredible hard time trying to use QuickSync and I just couldn't get it working 100%. So... please, let's ignore all that and focus on the "problem" in hand :)

The second PC has an i7 doing pretty much nothing, plus 16GB of RAM.

METHOD AND RESULT


I used a pre-recorded video on the first OBS and sent to the second OBS, that encoded and sent to Twitch using regular x264 encode at 3900 bitrate.

WHAT I NOTICED

I actually tried some possible different combination between Container Format and Video Encoder, but I kept getting those artifacts or encode glitches, don't know how to call them. And those glitches were already showing while previewing on the second OBS, before re-encoding (right?), so I was seeing those artifacts/glitches before actually stream to Twitch, so I'm guessing it was caused on the first encode (right?).

Could it be the LAN speed? it's a /1000 network all around, I can transfer files at around 80 MB/s between these PCs.

WHAT I WANT

All that being said... I want to use AMF, somehow, on the first OBS PC, to encode and output the video to the second OBS PC. I just have no idea how to do that.

The quality I was getting at the second PC (OBS or VLC) was no short of amazing, so I want to encode at 20~30.000 bitrate (I couldn't pass 20.000 using the method above) and send it to the second PC, to then, re-encode at 3900~4200 bitrate to Twitch.

The second PC, as I said, is a 4770K + 16GB RAM, that I'll pretty much dedicate to re-encode while streaming, so encoding with x264 at more demanding preset will not be a problem and I'll be able to get the best quality possible out of those 3900~4200 bitrate I'll be sending (right?).

WHY I WANT

Let's be honest, CPU encode has an amazing result, I noticed that the quality at a given (low) bitrate is better using x264 (compared to h264 NVENC and AMF). And even after a first (but with quality) encode, re-encode still looks great, if you dismiss those glitches in the video. Since I have a slow upload speed in my area, I have to squeeze as much quality as I can.
 
I know you want to use udp, but I just found an amazing way to use rtmp and it's flawless for me:

- First PC uses OBS Studio, does all the scenes and streams to rtmp server using MonaServer
https://helping-squad.com/monaserver-setup-and-configuration/
I stream to the rtmp server with NVENC at 20 Mbps High Quality preset. You don't need more than this bitrate for 1080p60. I don't know how this converts to AMF though.

- Second PC runs OBS Classic with Video Source plugin (you have to download it), receives the rtmp stream and nothing more is needed. The stream comes with perfect video and audio quality, synced. Dealing with audio transfer before was a major pain in the a**, I tried a LOT of solutions. Always having problems with quality or syncing.

Then I stream to Twitch at 1080p60, x264 Medium preset.

I was really surprised to realize how light OBS Classic was compared to Studio. It handles the stream at these settings and I can even leave the preview on and watch the stream at the same time. No performance hit. Total PC CPU usage at about 60-70%. I have a Ryzen 1700x / GTX 1050 TI for the streaming PC, and a i7 3770k / GTX 1080 for the gaming PC.
 
I know you want to use udp, but I just found an amazing way to use rtmp and it's flawless for me:

- First PC uses OBS Studio, does all the scenes and streams to rtmp server using MonaServer
https://helping-squad.com/monaserver-setup-and-configuration/
I stream to the rtmp server with NVENC at 20 Mbps High Quality preset. You don't need more than this bitrate for 1080p60. I don't know how this converts to AMF though.

- Second PC runs OBS Classic with Video Source plugin (you have to download it), receives the rtmp stream and nothing more is needed. The stream comes with perfect video and audio quality, synced. Dealing with audio transfer before was a major pain in the a**, I tried a LOT of solutions. Always having problems with quality or syncing.

Then I stream to Twitch at 1080p60, x264 Medium preset.

I was really surprised to realize how light OBS Classic was compared to Studio. It handles the stream at these settings and I can even leave the preview on and watch the stream at the same time. No performance hit. Total PC CPU usage at about 60-70%. I have a Ryzen 1700x / GTX 1050 TI for the streaming PC, and a i7 3770k / GTX 1080 for the gaming PC.
I'll definetely try that tonight. I'll post the results here later tonight or tomorrow. Thank you.
 
Gone with the artifacts/glitches, BUT I think the frame is kinda choppy, I don't know, am I crazy? Is it smooth as it should be and I'm "seeing" things? I used OBS Studio latest version in both. Don't mind my gaming, I suck at videogames :)

Fallout run steady at 60FPS all the time.
PUBG runs at viariable FPS, but the playback video I used was captured at 60FPS.
 
Last edited:
Top