Encoder Options for Multistreaming with Aitum - 7700 + 4070S

Koutchise

New Member
OBS Log: https://obsproject.com/logs/BhV2EjtcouUD1eks

I recently upgraded my computer and I found that solo stream performance was better using the settings I want:

  • Base/Canvas resolution: 2K
  • Downscaling to 1080p in "Streaming"
  • P5
  • Look Ahead and AQ off
I am using Aitum and would love to multistream atleast to another platform in vertical for discoverability. But I found that streaming an UE5 game (SHf) made the entire thing choppy.

  • I was using H.264 for all of the encoders initially, sent a feed of 2 horizontal streams (Twitch and YT with 10k bitrate) and 2 vertical streams (TikTok and YT Shorts)
  • All in P5
  • Replay Buffer enabled (using AV1, 31k bitrate)
What would your advice in actually making multistreaming work? I am not sure but it should be fine, but I spent money trying to upgrade my system in order to play newer games on /multi/stream without any hitches.

I haven't tried having the canvas be 1080p, doing a lower preset and while I tried using other encoders, I remember the performance was much bad.

Thank you for all the help here!
 

PaiSand

Active Member
If you have issues with a third party plugin you should contact its dev via the Discussion section on the particular third party plugin page, or where the dev have set for this.
 

Koutchise

New Member
If you have issues with a third party plugin you should contact its dev via the Discussion section on the particular third party plugin page, or where the dev have set for this.
I don't have issues with the plugin itself. What I'm asking for support on is trying to figure out what would work best for someone who's trying to output as many streams I can with optimizing OBS' encoder/stream settings. The fact that I highlighted using Multistreaming options like Aitum brings more context alongside the rig that I'm using.
 

PaiSand

Active Member
This is the forum for OBS Studio support, not a particular plugin. For support of any kind on a particular third party plugin you need to ask on the appropriate place.
 

Koutchise

New Member
But isn't encoder settings within OBS Studio? Apologies if I'm including a lot of information but essentially that's what my inquiry is about.

Anyway, I am testing out:

  • Rescaled streams to 1080p
  • CBR of 6k for the main stream (Twitch) while having an AV1 stream sent to YouTube with CQP of 18.
  • All in Single Pass, P5, AQ on.
I haven't replicated an encoder overload message after test streams but I would like to see an improvement to image quality.

Thanks for your time, PaiSand.
 

rockbottom

Active Member
It's not just encoding lag. Audio is lagging & there's rendering lag/GPU overload too.

As far as your encoding settings are concerned, Multipass is set to Fullres on several of your encodes, for real time encoding, qres or disabled should be used. Also, use lower (faster) Presets. I can run 8 concurrent 1080p encodes with my 3090 using Preset P3.



Personally, I would create a New Scene Collection with just (1) Scene/Source & run a test. See if things improve with a clean slate.

Note, there's over 26k memory leaks in that log.
 
Last edited:

Koutchise

New Member
It's not just encoding lag. Audio is lagging & there's rendering lag/GPU overload too.

As far as your encoding settings are concerned, Multipass is set to Fullres on several of your encodes, for real time encoding, qres or disabled should be used. Also, use lower (faster) Presets. I can run 8 concurrent 1080p encodes with my 3090 using Preset P3.



Personally, I would create a New Scene Collection with just (1) Scene/Source & run a test. See if things improve with a clean slate.

Note, there's over 26k memory leaks in that log.
Hi Rockbottom. Thank you for checking thoroughly on the previous log. I have since then recreated this with P3 settings in mind. https://obsproject.com/logs/LFIRZ09L0lDeaDqc

Made a fresh set of scenes and the case still persists with the memory leak

I only have paid attention in fixing the audio lag and memory leak just now. I will come back with a few more logs with attempts on fixing those. In the meantime, would you have solutions to fix the memory leak and audio lag?
 

rockbottom

Active Member
The rendering & encoding lag has improved significantly, now down to 0% for both. Plugins most like causing your memory leaks.

Bandwidth issues & a conflict (most likely Adobe) is on your system.

17:35:14.629: Output 'aitum_multi_output_YouTube Output': Number of dropped frames due to insufficient bandwidth/connection stalls: 17424 (83.1%)

17:41:12.059: Blocked loading of '\coresync_x64.dll' 12 times.
17:41:12.059: Number of memory leaks: 4353


 

rockbottom

Active Member
Audio is still lagging. This could be caused by system overload, bad audio routing or even a driver issue. Check your mobo's support page, there may be an updated audio driver available. You'll need to dig in figure this one out on your own.

17:11:17.518: Max audio buffering reached!
17:11:17.518: adding 917 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: 1A DESKTOP AUDIO)
17:11:17.518:
17:11:17.539: Source 1A DESKTOP AUDIO audio is lagging (over by 56283.15 ms) at max audio buffering. Restarting source audio.

17:22:58.573: Source 1A DESKTOP AUDIO audio is lagging (over by 38196.16 ms) at max audio buffering. Restarting source audio.
17:22:58.595: Source 1A DESKTOP AUDIO audio is lagging (over by 37867.50 ms) at max audio buffering. Restarting source audio.

17:27:55.363: Source 1A DESKTOP AUDIO audio is lagging (over by 136493.96 ms) at max audio buffering. Restarting source audio.

17:41:11.782: audio_thread(Audio): min=0.006 ms, median=0.113 ms, max=86.063 ms, 99th percentile=10.463 ms
 

Koutchise

New Member
Audio is still lagging. This could be caused by system overload, bad audio routing or even a driver issue. Check your mobo's support page, there may be an updated audio driver available. You'll need to dig in figure this one out on your own.

17:11:17.518: Max audio buffering reached!
17:11:17.518: adding 917 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: 1A DESKTOP AUDIO)
17:11:17.518:
17:11:17.539: Source 1A DESKTOP AUDIO audio is lagging (over by 56283.15 ms) at max audio buffering. Restarting source audio.

17:22:58.573: Source 1A DESKTOP AUDIO audio is lagging (over by 38196.16 ms) at max audio buffering. Restarting source audio.
17:22:58.595: Source 1A DESKTOP AUDIO audio is lagging (over by 37867.50 ms) at max audio buffering. Restarting source audio.

17:27:55.363: Source 1A DESKTOP AUDIO audio is lagging (over by 136493.96 ms) at max audio buffering. Restarting source audio.

17:41:11.782: audio_thread(Audio): min=0.006 ms, median=0.113 ms, max=86.063 ms, 99th percentile=10.463 ms
Hey Rockbottom. You're such a MVP. I fully appreciate you taking your time on this query.

New Log: https://obsproject.com/tools/analyzer?log_url=https://obsproject.com/logs/tEKI9qmStgdrOS14

I streamed on YouTube and TikTok simultaneously for the first 10 mins. Used H.264 for both Twitch/Tiktok; AV1 is causing issues with YouTube apparently with Replay Buffer/Recording set to AV1 as well. I then ended the YouTube feed and it was smooth sailing after

Only had to restart everything once due to bitrate fluctuations. I can't pinpoint any audio delay but I understand it may be more of an "under-the-hood" thing where the system is being affected in the backend.

Some questions
  • How many encoders should I run to make everything run efficiently?
  • I realize a potential conflict for this is having the Audio Settings record the entire desktop audio WHILE having audio stacked up to one another. Would that be a potential cause?
  • Is it normal to not notice any kind of audio lag while the above is happening?
Thank you so much for your time.
 

rockbottom

Active Member
NVENC supports up to (8) concurrent encodes but you're still using Presets P5 & P6 for most of your encodes. Those presets are too slow....

You're using both Global & Source audio. I don't & never have. One or the other, never both.

I get absolutely no audio lag on my rig.

Scene Collection is way too large, it's wasting your resources.
 

rockbottom

Active Member

Build Simpler Scenes​


OBS Studio allows you to build wildly complex scenes and make scene collections as large as you want. However, more complexity comes at a price. Every source requires some amount of resources to be shown in the scene. Most sources will also require some resources even if they aren't visible. This is to allow smoother transitions between scenes in the same scene collection, among other benefits.

If your scenes get very complex or your scene collections become too large, OBS Studio may require more resources than your system can spare while doing other things, like gaming. Fortunately, this can be remedied by following a few practices, which we'll go over below:

Limit Your Sources​

Limiting the usage of expensive (hard to run) sources can be very beneficial for performance.

  • Use lower resolutions in Video Capture Sources, or lower resolution media files in Media Sources
    • For example: you do not need to display 4K video if you're not recording/streaming in 4K, or if the Source is scaled down
  • Use several smaller resolution media files or Browser Sources and place them where they need to be
    • Browser and Media Sources that take up the entire Base (Canvas) Resolution (usually 1080p) with, empty spaces use a lot of resources

Reduce Filters​

Filters can let you do all sorts of cool stuff: color adjustments, image masking, image sharpening, render delays, and more! However, filters, like everything else, require some resources to compute and render their effects. In fact, some filters can be pretty resource hungry.

  • Try disabling some filters
    • If this improves performance, consider removing that filter
  • Apply filters to the smallest possible sources rather than to sources (such as entire scenes)
  • If you don't want to remove any filters, consider deactivating sources with lots of filters when they are not needed

Reduce Browser Sources​

Web browsers are amazingly complex feats of software engineering, able to render text, images, 2D graphics, 3D graphics, and animations, and they can play audio, video, and even games. However, they can be very resource intensive.

This also applies for the Browser Source, which is often used to display stream chats, custom animations, overlays, and many other things. Using a lot of browser sources in a scene (or scene collection) can use a lot of system resources which can have a significant performance impact.

  • Try to reduce the number of Browser Sources that you use
  • Reduce Browser Sources' width and height to the minimum required size
  • If you have static assets (non-animated overlays), try other source types
    • For images, use an Image Source
    • For video or audio files, use Media Source or VLC Source
  • Some stream overlays, such as tip jars, often employ complex JavaScript to simulate physics. These can have a large performance impact. Try disabling these overlays to see if performance improves

Keep Scene Collections Small and Focused​

OBS Studio uses Scene Collections to organize scenes. You don't need to keep every single scene you'll ever use in the same scene collection. If you find OBS performance is not as snappy as it was when you first started, consider splitting your scene collection up into multiple scene collections.

  • Create new Scene Collections from the Scene Collection menu at the top of the OBS Studio window
  • You can also duplicate your current Scene Collection, then remove the scenes you don't need on a per-collection basis
 

rockbottom

Active Member
4070 Super, single NVENC in that bad boy. 4070TI & TI Super add a 2nd NVENC circuit. Still a (8) encode limit but those GPU's would allow the slower presets to be used without the encoding lag.
 

rockbottom

Active Member
I don't know how the AMD iGPU's are working these days with OBS but I off-load all of my out-going streams to my Intel iGPU & only use my 3090 to encode my recordings.
 
Top