4k stream + Record + 1080p Stream
Hey,
I was wondering how exactly to set this up in OBS. I am using the Vertical plugin (just so that I can get a 2nd stream), but I don't know if it's actually necessary anymore with version 30.1.1.
I have heard mixed things about how much bitrate you need to use for AV1 at 4k. I know that Youtube says you can go up to 51k or something super high up. I have great upload speed so I am not worried about that. My NVME's are in a raid0 so they shouldn't have any problems with write speed.
I'll toss in my settings, I think it should work in theory, but I can't be sure and I haven't seen anyone really do it before.
21 Replies
The weird thing is that when I share my screen and camera on discord I go down to basically 10FPS on both.
I think I have this completely backwards. I think I have to have all the 4k stuff in the main setup and then use the Twitch stream on the Vertical addon.
GG @StriderStone, you just advanced to level 3 !
I did some testing with those settings and just recording, but also using source record to grab my webcam and game by itself.
I thought it would be a decent "test" to see if it would work, it failed almost instantly.
Anyone know of ways that I can optimize the recording or streaming of 4k with AV1?
I just feel that my settings are off but there just doesn't seem to be a lot of people who use it.
Here's my crash logs"
https://obsproject.com/tools/analyzer?log_url=https%3A%2F%2Fobsproject.com%2Flogs%2FGI4xQEhl7jCGVuBe
https://obsproject.com/logs/GI4xQEhl7jCGVuBe
Analyzer | OBS
OBS (Open Broadcaster Software) is free and open source software for video recording and live streaming. Stream to Twitch, YouTube and many other providers or record your own videos with high quality H264 / AAC encoding.
I looked at the error and I thought maybe it was just a weird 4k error so I did a test with just the webcam (1080p) enabled and then the game (4k) enabled and it worked just fine...
https://obsproject.com/logs/iHfEgTicvcNRe9UK
https://obsproject.com/tools/analyzer?log_url=https%3A%2F%2Fobsproject.com%2Flogs%2FiHfEgTicvcNRe9UK
it looks like it's doing really weird stuff with my resolutions though still.
I still can't even do more than 5 FPS in discord when I use my virtural Camera either.
I have just invested like 3 months of no content creation changing everything and I don't want to start over again 😦
Analyzer | OBS
OBS (Open Broadcaster Software) is free and open source software for video recording and live streaming. Stream to Twitch, YouTube and many other providers or record your own videos with high quality H264 / AAC encoding.
Drop your preset value for the av1 stuff to p1
I haven't checked the quality if it's at P1 but I would assume that it's not very good if it's "the worst" but I'll give it a test!
Basically presets determine how much work your hardware does to try to save space / bitrate in the encode
This was important for h264 especially with Twitch's 8mbps bitrate cap.
With AV1 being so bitrate efficient, even AV1 P1 preset will look drastically better than h264 P7
If you need higher quality for recording specifically, just lower the CQP value
I'm not sure why it was at h264 to be honest, it was supposed to be at AV1.
The issue is that when a recorded file is put into Resolve I would get random "media not found" messages. This would only happen with audio though. There was a point where all of my audio broke because I thought it was randomly windows 10 so I upgraded to win11 and :HOPIUM: that it was going to fix it but it didn't
I was able to narrow down the issue to the fact that there is an issue with an audio codec SOMEWHERE, but I have no idea where or why or what changed.
I uninstalled the k-light codec mega pack and it still has the same codecs in OBS which is odd, but I am assuming that it's a lot like VLC player where it has the same kind of system where the codecs are built into the software?? question mark question mark
I attached a sample file in case you were interested. I heard that turning down the audio sample rate to 44.100kHz was a fix but that didn't seem to resolve the issue.
I am recreating a profile right now, if that doesn't resolve the issue I am going to just reinstall which would suck.
ok, so for some reason pressing the record button manually in OBS resolved the issue.
I was using the stream deck to press record like I have always done but for some reason it didn't like that. I still have ABSOLUTELY no idea why...
So we narrowed it down to ONLY the audio codec which makes 0 sense what-so-ever
I ran OBS in portable mode and that seemed to have fixed the issue for the most part, it just doesn't interact with stream deck at all now and I'd have to setup the scenes again
but the next problem is that even with that, the VoD on Twitch and Youtube were both messed up so I couldn't even use the downloaded versions from there either 😦
I don't know if this will get me banned or not, I really hope it won't. I will IMMEDIATELY delete the message and never do it again but right now I am currently OMEGA desparate because there is a new update for the main game that I play that came out today and I haven't been able to stream or make content for like 3-4 months now.
is there any possibility that I could offer you money to either connect to my computer or have an OBS call just to do the settings and make sure everything is ok?
I am going to assume it's a no because you typically reply at 3-5AM my time but I thought I'd ask or any other mods that have experience with multi-streaming 4k and 1080p (I'm using the Atium Vertical Plugin to do it)
Again, if this is an unacceptable post, please let me know and I'll delete it.
I unfortunately do not have the time to be able to help you with this in a call
What issues are you still having
if you open up dat video file in resolve you'll see that whenever I start talking you'll get a media not found error on the screen. even though the media plays, the video cuts out with that error
https://www.twitch.tv/videos/2116478251
https://youtube.com/live/gsLhnKy9jj4
if you look at my stream on both twitch and youtube you'll see either audio cutting out big time (doesn't seem to be through a noise gate) or the video pausing but audio playing.
I can do basically all of the OBS stuff pretty quickly, but that's the MAIN issue. I think it's some addon so it comes down to a reinstall or a plugin thing.
once I open OBS in portable mode, the issue with the media not found goes away.
I narrowed it down to the audio codec
In the end my goal is:
- stream to youtube at 4k 60fps
- record locally at 4k (great quality so that my editor can make videos from it)
- stream to twitch 1080p 60fps
When I had that twitch stream, it was limiting EVERYONE to 720p even though all the settings in OBS were set to 1080p (I am a partner so that's not the issue).
When you watch the playback, you can get 1080p, so that's also weird to me.
I guess I would just need to know the best method of doing it or a tutorial because I literally can't find it anywhere.
I use the Aitum addon to stream to 2 different sources but since I can only stream to 1080p on Twitch, it's weird with the setup I feel. I'd have a canvas size of 4k or 1080 and then SUPER down scale it or SUPER upscale it?
In the previous images, you should that the primary stream was to Twitch, but you were also upscaling the canvas from 1080p to 4k. Twitch doesn't support 4k officially and there are going to be issues when doing that
You ideally should be using YT as the primary streaming platform at 4k, and having Vertical handle streaming to Twitch at 1080p
That way you can also record in 4k without having to rescale the output in multiple places
As for codec stuff, YT and recording should both be using AV1 with preset P1, where YT should take CBR of something like 20Mbps (any higher is just placebo) and recordign should use CQP of like 20 or so
Also not sure why but the video file metadata reports that it's using Full color range which you shouldn't be using
Lastly in terms of your issue with resolve, I don't edit video or use Resolve so I can't help much there, but it's either and audio or video codec issue. I used a script to extract the individual audio tracks to files, and take the video track into it's own file. You can try importing all of these into Resolve and seeing if the audio or video are causing you issues
I'm wondering if the issue would be due to using an MP4 container for AV1 instead of something like MOV
STATEMENTS
- in the previous images with my settings, they were outdated. I haven't updated the screenshots at all yet, which I appologize for, I'll do that here in a second.
- It wasn't just in editing, it was in the VOD's as well.
- I know that Twitch can't handle 4k which is why this is a headache for me to begin with, if I didn't have to change resolutions, I don't think there would be an issue at all.
- The file won't even play in quicktime which is weird, but it will play in VLC just fine
- There was a point where I had no audio and I had no issues, so I believe it's an audio issue at its core
- I started using the Fragmented MP4 container just in case my computer turned off or OBS crashed or something so that I would still have a local recording because I didn't want to deal with MKV files. It was working for quite some time.
- Yeah now that I think about it, the plugin shouldn't rescale at all. Vertical is a plugin and not an actual rescaling
QUESTIONS
1. I heard that I shouldn't have
Look-ahead
enabled for Youtube stream because it's "not supported" and I think that's basically the same thing as what the Stream Latency
setting is, is that correct?
UPDATES:
- The reason that the Youtube vod was most likely being all weird/wonky was because the rtmp stream key that it generates for you by default is 720p (I had 0 idea)
- and of course with this change, you can only have Normal latency
selected which will be a 10-15 second delay from what I hear but I have not confirmed
- I will most likely end up reinstalling OBS and starting from scratch but I think it's an audio issue.
- I upgraded to windows 11
- I had my audio card drivers uninstalled because I thought that since I had my headphones plugged into the mixer (DLZ Creator) and I was hearing everything from my computer it was essentially acting as an audio card.
- I know that my native audio drivers (Realtek) on my motherboard have problems and that's why I got an audio card to begin with
- I tried to install the audio drivers again but my computer crashes when installing them, so once I pass that hurdle, I'll let you know lol
Thanks for all the help so far!I heard that I shouldn't have Look-ahead enabled for Youtube stream because it's "not supported" and I think that's basically the same thing as what the Stream Latency setting is, is that correct?Lookahead is not the same nor related to stream latency. Lookahead is the number of frames the encoder will use to look forward to better see what to compress (since encoders save space by saving some full frames and mostly only retaining the differences between those full frames). Lookahead is recommended to be 2x your framerate
Lookahead doesn't show any numbers for me. I thought it was only enabled for the max b-frames and I have enver seen anyone put that to even above 4 let alone double their FPS.
I was also told to keep it unchecked by someone because b-frames aren't supported on Youtube. I didn't actually dig into it though.
Ah I should've clarified
For software encoding of h264, hevc, and AV1 you specify lookahead
GPU encoders just have a toggle for it
For streaming you would want lookahead off and psycho-visual tuning on
for recording you would do the opposite
Also again, drop the preset to P1. Presets are just how much effort the encoder puts into efficiently allocating bits within an allotted bitrate, and with recording that's not really important. If you want higher quality, lower the CQP value staying at preset P1
The preset for streaming AND recording, set to P1 or just recording?
Recording AV1 should be P1
Streaming to YT you could also do P1 and just raise the bitrate up to like 20-25 mbps