HEVC_NVENC 4K stream + H264_NVENC 1080p stream possible?

EveryGameGuru

New Member
I am learning as much as I can about ffmpeg, muxer settings, encoding/decoding, etc.

I'm at a roadblock, as I can't seem to find the right combination to make this work.

What I want:
HEVC_NVENC (4K60 HDR) HLS stream to YouTube
H264_NVENC (1080p60 NO-HDR) ffmpeg "record to url" SRT stream to CASTR

What has worked:
HEVC_NVENC (4K60 NO-HDR) HLS stream to YouTube
H264_NVENC (1080p60 NO-HDR) RTMP ffmpeg "record to url"

I know I can make this happen in the "Muxer settings" under the RECORD tab, I'm just not sure the exact commands.

Basically, I'd like to take my scene and stream it as h.265 4:2:0 for YouTube and h.264 rec 709 Limited to a Castr HLS server.

As a side note, I've only gotten MPEGTS container to work with the CASTR SRT server with both audio and video, though certain combinations of the MP4/MP2/AAC encoders will work for either video or audio, but not both.

I have a 12900K with dual 3090s with the NVLink bridge if that helps (I can enable or disable SLI) so if worse comes to worse I can always use Intel's GPU or the other 3090 to encode the 1080p stream.

Thank you thank you thank you in advance to anybody who takes the time to even read this. Any help is greatly appreciated.
 

EveryGameGuru

New Member
It's all pointless and inappropriate. How many people will be able to watch your broadcast in 4K and even more so in HDR? You should stream via RTMP in 2K SDR on youtube and FHD SDR on Twitch via plugin https://github.com/sorayuki/obs-multi-rtmp/releases/
What you want is possible, but not practical. Does Castr have HLS?
I think I was asking about how to accomplish this (as you stated, it is possible) not whether it was practical, or suggestions on how to run my YouTube channel, but your input is appreciated and noted. Yes, Castr has HLS.

Also, I'm not sure I can take you serious when you just suggested switching from HLS to RTMP on YouTube.
 

EveryGameGuru

New Member
It's all pointless and inappropriate. How many people will be able to watch your broadcast in 4K and even more so in HDR? You should stream via RTMP in 2K SDR on youtube and FHD SDR on Twitch via plugin https://github.com/sorayuki/obs-multi-rtmp/releases/
What you want is possible, but not practical. Does Castr have HLS?
Also, you realize that since OBS has ffmpeg implemented natively, you don't need to use multi-rtmp anymore. You can "record to url" alongside your main stream, within OBS, no add-on required, [edit] Which also enables multiple HLS streams, not limiting you to RTMP. [/edit]
 

sandrix

Member
Also, you realize that since OBS has ffmpeg implemented natively, you don't need to use multi-rtmp anymore. You can "record to url" alongside your main stream, within OBS, no add-on required, [edit] Which also enables multiple HLS streams, not limiting you to RTMP. [/edit]
No one will bother with ffmpeg settings and it will only cause a lot of problems. The plugin is much more practical and simpler.
 

EveryGameGuru

New Member
No one will bother with ffmpeg settings and it will only cause a lot of problems. The plugin is much more practical and simpler.
Lmfao. No one uses ffmpeg, nobody owns a 4K TV, nobody watches in HDR. Ffmpeg is INFINITELY more powerful, customizable, and on "MULTI RTMPS" own site they say their software is outdated and useless now that ffmpeg is native in OBS. Why are you in forums giving advice for people to use old software, with old streaming standards, just because you can't figure out ffmpeg?
 
At the same time

With a profile to broadcast in HDR to Youtube in 4k HDR ( HLS, P010, 2100 PQ, main 10 etc) No problem, follow the tutorial. Create a scene projector from this broadcast.

In another instance of OBS that you open at the same time, with a profile for SDR (and another set of scenes):

Capture the projector of the previous instance and transmit to Twitch in SRD (or record the video at 1080p).

You need to do the broadcast with a second PC , with a single PC and playing and broadcasting at the same time to two sites at the same time can be very demanding . Broadcasting in 4k HDR is very demanding, do not exceed 22500 kpbs, profile 4, and one pass, not two.

On Twitch there is no problem, you can get close to 8000kps and with maximum quality.
 

Attachments

  • TWITCH SDR 3.jpg
    TWITCH SDR 3.jpg
    442 KB · Views: 91
  • YOUTUBE HDR 2.jpg
    YOUTUBE HDR 2.jpg
    501.4 KB · Views: 95
  • YOUTUBE HDR 1.jpg
    YOUTUBE HDR 1.jpg
    492.9 KB · Views: 90
  • TWITCH SDR 2.png
    TWITCH SDR 2.png
    218.9 KB · Views: 83
  • TWITCH SDR 1.jpg
    TWITCH SDR 1.jpg
    430.1 KB · Views: 74

Flagamer

New Member
It's all pointless and inappropriate. How many people will be able to watch your broadcast in 4K and even more so in HDR? You should stream via RTMP in 2K SDR on youtube and FHD SDR on Twitch via plugin https://github.com/sorayuki/obs-multi-rtmp/releases/
What you want is possible, but not practical. Does Castr have HLS?
4K HDR displays is affordable nowadays with youtube app on Smart TVs. Fiber optic cable internet with huge upload speeds make it 4K streaming possible.
 

sandrix

Member
Lmfao. No one uses ffmpeg, nobody owns a 4K TV, nobody watches in HDR. Ffmpeg is INFINITELY more powerful, customizable, and on "MULTI RTMPS" own site they say their software is outdated and useless now that ffmpeg is native in OBS. Why are you in forums giving advice for people to use old software, with old streaming standards, just because you can't figure out ffmpeg?
There is a thing called statistics. I don't think you'll need my help. Good luck!
 

sandrix

Member
4K HDR displays is affordable nowadays with youtube app on Smart TVs. Fiber optic cable internet with huge upload speeds make it 4K streaming possible.
I'm not here to prove anything to anyone and argue. You may be living in a world where everyone has great internet and the reality of 4K HDR is here, but that's not the case. I constantly run into a problem where users experience network drop frames after 13,000 kbps when using the HLS protocol. For a huge number of users, the speed is severely limited by the provider and they cannot do anything.

Based on Steam statistics, 65% of users use monitors with a resolution of 1920x1080, 11% 2K and only 2.6% 4K.
Therefore, for owners of Full HD monitors, when watching a video on youtube, the resolution of 1080p will most often be automatically indicated, even if higher ones are available.

There is also a study by Steve Robertson, indicating that about 90% of users do not care about video quality.

Once again, no one cares about streaming in 4K, at least for now. It only makes sense to stream in 2K for the sake of getting the VP 9 codec.
 

Flagamer

New Member
I'm not here to prove anything to anyone and argue. You may be living in a world where everyone has great internet and the reality of 4K HDR is here, but that's not the case. I constantly run into a problem where users experience network drop frames after 13,000 kbps when using the HLS protocol. For a huge number of users, the speed is severely limited by the provider and they cannot do anything.

Based on Steam statistics, 65% of users use monitors with a resolution of 1920x1080, 11% 2K and only 2.6% 4K.
Therefore, for owners of Full HD monitors, when watching a video on youtube, the resolution of 1080p will most often be automatically indicated, even if higher ones are available.

There is also a study by Steve Robertson, indicating that about 90% of users do not care about video quality.

Once again, no one cares about streaming in 4K, at least for now. It only makes sense to stream in 2K for the sake of getting the VP 9 codec.
According to statistics on my channel, viewers from TV has just surpassed desktop viewers. Even though it's still a way behind mobile viewers, it gets almost to 20% of the total viewers with higher watch time compared to mobile viewers. The study quoted by you also reached to the same conclusion. Those 10% who allegedly cares about video quality represented 1/4 of the total amount of minutes spent on YouTube. It's very significative.

You may be right 4K streaming is still premature, even though some internet providers offer this option, however I agree with you 2K Streaming is now more viable as you can broadcast in higher bitrates with better compression algorithm and most mid-end gaming machines can now play and stream games in 1440p.

And that study need to be remade. The behavior of some viewers in 2022 might be different from 2018 (back then only 2-3% of viewers watched videos on large screen). While back then 480p is "acceptable", today it might been replaced to 720p/1080p. That study had a purpose to improve algorithm video compression on lower resolutions using machine learning specially while watching on 4G networks.
 

EveryGameGuru

New Member
At the same time

With a profile to broadcast in HDR to Youtube in 4k HDR ( HLS, P010, 2100 PQ, main 10 etc) No problem, follow the tutorial. Create a scene projector from this broadcast.

In another instance of OBS that you open at the same time, with a profile for SDR (and another set of scenes):

Capture the projector of the previous instance and transmit to Twitch in SRD (or record the video at 1080p).

You need to do the broadcast with a second PC , with a single PC and playing and broadcasting at the same time to two sites at the same time can be very demanding . Broadcasting in 4k HDR is very demanding, do not exceed 22500 kpbs, profile 4, and one pass, not two.

On Twitch there is no problem, you can get close to 8000kps and with maximum quality.
I have it working now with HEVC_NVENC streaming to YouTube at 25000kbps, then H.264_NVENC downscaling to 1080p and "recording to URL" with ffmpeg to castr.io at 6000kbps.
 
Top