Question / Help 1080p stream / 4K recording - system questions

rockbottom

Active Member
===================== General =====================
Count : 322
Countof stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Countof video streams : 1
Countof audio streams : 1
Video formats : AVC
Video_Format_WithHint_List : AVC
Codecs Video : AVC
Audio formats : AAC
Audio_Format_WithHint_List : AAC
Audio codecs : AAC LC
Complete name : K:\NVENC HQ FRAME DROP TEST\2020-05-27_19-11-05.mp4
Folder name : K:\NVENC HQ FRAME DROP TEST
File name : 2020-05-27_19-11-05
File extension : mp4
Format : MPEG-4
Format : MPEG-4
Format extensionsusually us : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
Commercial name : MPEG-4
Formatprofile : Base Media
Internet media type : video/mp4
Codec Id : isom
Codec Id : isom (isom/iso2/avc1/mp41)
Codec URL : http://www.apple.com/quicktime/download/standalone.html
CodecID_Compatible : isom/iso2/avc1/mp41
Codec : MPEG-4
Codec : MPEG-4
Codec extensionsusually use : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
File size : 1804646351
File size : 1.68 GB
File size : 2 GB
File size : 1.7 GB
File size : 1.68 GB
File size : 1.681 GB
Duration (ms) : 253300
Duration (ms) : 4mn 13s
Duration (ms) : 4mn 13s 300ms
Duration (ms) : 4mn 13s
Duration (ms) : 00:04:13.300
Duration (ms) : 00:04:13:18
Duration (ms) : 00:04:13.300 (00:04:13:18)
Overall bit rate mode : VBR
Overall bit rate mode : Variable
Overall bit rate : 56996332
Overall bit rate : 57.0 Mbps
Frame rate : 60.000
Frame rate : 60.000 fps
Frame count : 15198
Stream size : 386566
Stream size : 378 KB (0%)
Stream size : 378 KB
Stream size : 378 KB
Stream size : 378 KB
Stream size : 377.5 KB
Stream size : 378 KB (0%)
Proportion of this stream : 0.00021
HeaderSize : 40
DataSize : 1804259793
FooterSize : 386518
IsStreamable : No
File creation date : UTC 2020-05-27 23:11:06.930
File creation date (local) : 2020-05-27 19:11:06.930
File last modification date : UTC 2020-05-27 23:15:19.691
File last modification date : 2020-05-27 19:15:19.691
Writing application : Lavf58.29.100
Writing application : Lavf58.29.100

===================== Video =====================
Count : 334
Countof stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
StreamOrder : 0
Id : 1
Id : 1
Format : AVC
Format info : Advanced Video Codec
Format URL : http://developers.videolan.org/x264.html
Commercial name : AVC
Formatprofile : High@L5.2
Formatsettings : CABAC / 4 Ref Frames
Formatsettings, CABAC : Yes
Formatsettings, CABAC : Yes
Formatsettings, ReFrames : 4
Formatsettings, ReFrames : 4 frames
Formatsettings, GOP : M=3, N=120
Internet media type : video/H264
Codec Id : avc1
Codec info : Advanced Video Coding
Codec URL : http://www.apple.com/quicktime/download/standalone.html
Codec : AVC
Codec : AVC
Codec family : AVC
Codec info : Advanced Video Codec
Codec URL : http://developers.videolan.org/x264.html
Codec/cc : avc1
Codecprofile : High@L5.2
Codecsettings : CABAC / 4 Ref Frames
Codecsettings, CABAC : Yes
RefFrames : 4
Duration (ms) : 253300
Duration (ms) : 4mn 13s
Duration (ms) : 4mn 13s 300ms
Duration (ms) : 4mn 13s
Duration (ms) : 00:04:13.300
Duration (ms) : 00:04:13:18
Duration (ms) : 00:04:13.300 (00:04:13:18)
Bit rate mode : VBR
Bit rate mode : Variable
Bit rate : 56064000
Bit rate : 56.1 Mbps
Maximum bit rate : 120000000
Maximum bit rate : 120 Mbps
Width : 3840
Width : 3 840 pixels
Height : 2160
Height : 2 160 pixels
Sampled_Width : 3840
Sampled_Height : 2160
Pixel aspect ratio : 1.000
Display aspect ratio : 1.778
Display aspect ratio : 16:9
Rotation : 0.000
Frame rate mode : CFR
Frame rate mode : Constant
Frame rate : 60.000
Frame rate : 60.000 fps
Frame count : 15198
Resolution : 8
Resolution : 8 bits
Colorimetry : 4:2:0
Color space : YUV
Chroma subsampling : 4:2:0
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bits
Scan type : Progressive
Scan type : Progressive
Interlacement : PPF
Interlacement : Progressive
Bits/(Pixel*Frame) : 0.113
Stream size : 1794128017
Stream size : 1.67 GB (99%)
Stream size : 2 GB
Stream size : 1.7 GB
Stream size : 1.67 GB
Stream size : 1.671 GB
Stream size : 1.67 GB (99%)
Proportion of this stream : 0.99417
Buffer size : 120000000
Color range : Limited
colour_description_present : Yes
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

===================== Audio =====================
Count : 272
Countof stream of this kind : 1
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 0
StreamOrder : 1
Id : 2
Id : 2
Format : AAC
Format info : Advanced Audio Codec
Commercial name : AAC
Formatprofile : LC
Codec Id : 40
Codec : AAC LC
Codec : AAC LC
Codec family : AAC
Codec/cc : 40
Duration (ms) : 253270
Duration (ms) : 4mn 13s
Duration (ms) : 4mn 13s 270ms
Duration (ms) : 4mn 13s
Duration (ms) : 00:04:13.270
Duration (ms) : 00:04:12:29
Duration (ms) : 00:04:13.270 (00:04:12:29)
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 320031
Bit rate : 320 Kbps
Channel(s) : 2
Channel(s) : 2 channels
Channel positions : Front: L R
Channel positions : 2/0/0
ChannelLayout : L R
Samples per frame : 1024
Sampling rate : 48000
Sampling rate : 48.0 KHz
Samples count : 12156960
Frame rate : 46.875
Frame rate : 46.875 fps (1024 spf)
Frame count : 11873
Compression mode : Lossy
Compression mode : Lossy
Stream size : 10131768
Stream size : 9.66 MB (1%)
Stream size : 10 MB
Stream size : 9.7 MB
Stream size : 9.66 MB
Stream size : 9.662 MB
Stream size : 9.66 MB (1%)
Proportion of this stream : 0.00561
Title : Track1
Default : Yes
Default : Yes
Alternate group : 1
Alternate group : 1
 

rockbottom

Active Member
NVENC Sessions Capture.JPG
 

rockbottom

Active Member
As you can see, my system is 1080p so I had to set the Base/Output resolutions to 4k & then fit it to the preview screen so it's not a perfect test. But, the 1660 plowed right through it.

BTW, I was recording/streaming a Dead & Company video when I did the test.
 

psnorton23

New Member
Firstly ... THANKS!

I'm not super familiar with what I am looking at but if I am understanding all of that correctly you were streaming 1080p AND recording 4K with NVENC?
Was it New or Old nvenc ...or a mixture?

Either way, if I wanted to stream with the CPU and record with the GPU it should be even easier on that system?

Would you mind running a test to see how your CPU handles streaming 1080p while the GPU records the 4K? I'm wondering if you will be able to get better performance/quality that way.
 

rockbottom

Active Member
Firstly ... THANKS!

I'm not super familiar with what I am looking at but if I am understanding all of that correctly you were streaming 1080p AND recording 4K with NVENC? So if I wanted to stream with the CPU and record with the GPU it should be even easier on that system?

Would you mind running a test to see how your CPU handles streaming 1080p while the GPU records the 4K? I'm wondering if you will be able to get better performance that way.

You're Welcome!!

Correct, streaming @ 1080p & recording @ 4k

I really don't need to, the 6700k is good @ the Very Fast preset. CPU usage will stay around 40%. If I try to push it to the Faster preset, CPU usage goes up to 70% & if I had alot going on, I would get some dropped frames here & there so I always stuck with Very Fast & never had any issues.
 

psnorton23

New Member
Ah. I educated myself....
Jim-nvenc is the new nvenc.
So that was doing the 4K and the 1080p was the old nvenc.
makes sense I just got thrown by the jim thing.


Thanks again.

Since I stream to Facebook with a 4mbps limit (but only at 30fps) and the scaled down 1080p will have to be through the CPU I guess my only question left is: Does streaming a scaled down 1080p from a 4K canvas require more CPU than just streaming 1080p? If it does require more CPU then I'd be interested to know what you think I should aim for.
 

rockbottom

Active Member
Yes, but not too much.

Go back to the Task Manager picture above, you can see what the 6700k was doing (upper left). It was 30-35% utilized during the test & I my PC has been up running for 2 weeks with a boatload of stuff open. (Vegas, Jaksta, VLC, q-bittorrent, ect.....)

Too bad you don't have enough room to get the 1660 in your Dell. You're current CPU might already be strong enough.
 
Last edited:

psnorton23

New Member
Yes, but not too much.

Go back to the Task Manager picture above, you can see what the 6700k was doing (upper left). It was 30-35% utilized during the test & I my PC has been up running for 2 weeks with a boatload of stuff open. (Vegas, Jaksta, VLC, q-bittorrent, ect.....)

Too bad you don't have enough room to get the 1660 in your Dell. You're current CPU might already be strong enough.
Agreed.

I actually have 2 PCs in here. #1 for streaming and #2 for office work, CAD, video editing, etc. I may take the #2 and move it over to the streaming spot, then just build myself a new #2 PC for video editing monstrosity. Current #2 PC is a mid tower so a little more room there but still a Dell so still some constraints. It's running the same I7-6700 but should have some open PCI slots. The catch is that to get 3 cameras working I need 3 USB root hubs/controllers and it only has 1. That means I need to add 2 USB cards. So I need to double check that I can fit the GPU and 2 more USB cards in there. And then I need to make sure that I'm not overloading the mobo. Might be easier though to still just do a new streaming rig so I don't have to move over all my settings to a new computer, twice. Decisions, decisions....
 

psnorton23

New Member
Yes, but not too much.

Go back to the Task Manager picture above, you can see what the 6700k was doing (upper left). It was 30-35% utilized during the test & I my PC has been up running for 2 weeks with a boatload of stuff open. (Vegas, Jaksta, VLC, q-bittorrent, ect.....)

Too bad you don't have enough room to get the 1660 in your Dell. You're current CPU might already be strong enough.

I did some testing on the current system, just to get some baseline numbers... It's a 6700 (not K).
At 1080p 30FPS streaming and recording via CPU my task manager performance tab says OBS usage is about 50%.
This is with 2 camera sources, audio & background music going.
If I get animated and throw on an intense overlay, I hit about 80% in task manager.
I can hit 100% in Task Manager if I am purposely jumping around a lot and waving my arms in both cameras.

I'd be interested to see if your system fairs better with everything at 1080P and 2 cameras going since the K series CPUs are a bit better.

Side note, OBS constantly is reporting lower usage than the Task manager says it is using.
 

rockbottom

Active Member
I'll get back to you in a bit. I did some driver updates last night & need to straighten out a few things before I start.
 

rockbottom

Active Member
Streaming & recording 1080p 30FPS with x264.

Streaming, CBR = 4Mb/s (to match your Facebook streams), Keyframe Interval = 2 Seconds, Very Fast Preset, Profile = High

Recording, CRF = 15, Keyframe Interval = 2 Seconds, Very Fast Preset, Profile High

Task Manager is showing the 6700k is running roughly 20% lower than your numbers but it hasn't been over 75% utilized yet. The test has been running for over 30 minutes with multiple sources using my recordings as well as a few Blu-rays. There been no dropped frames yet.... Unfortunately, I can't test how this would all work with cameras & a capture card as I don't use either but I'm going to let it run & throw some more sources at it to see if I can get it to overload.
 

rockbottom

Active Member
I reset to simple/indistinguishable. The only real difference is the Keyframe Interval, I had it set at every 2 Seconds (60 frames), your settings are inserting a keyframe every 250 frames. More Keyframes = more CPU load.

From the log recording simple/indistinguishable

15:30:15.306: [x264 encoder: 'simple_h264_recording'] preset: veryfast
15:30:15.306: [x264 encoder: 'simple_h264_recording'] profile: high
15:30:15.306: [x264 encoder: 'simple_h264_recording'] settings:
15:30:15.306: rate_control: CRF
15:30:15.306: bitrate: 0
15:30:15.306: buffer size: 0
15:30:15.306: crf: 16
15:30:15.306: fps_num: 30
15:30:15.306: fps_den: 1
15:30:15.306: width: 1920
15:30:15.306: height: 1080
15:30:15.306: keyint: 250
 

rockbottom

Active Member
BTW, I ran the test for just over 2 hours using about 20 different sources & had no dropped frames. Depending on what was being encoded, the 6700k fluctuated from 40 - 55% & spiked occasionally but never went above 75%.
 

psnorton23

New Member
I really appreciate all your help.
I'm going to take a step back, digest and figure out some sort of plan.

I definitely think I can stream to FB in 1080p (or 720p) and record in 4K by using a good GPU.
I'm not sure what the file sizes will be but one thing at a time right!?

Thanks again.
 

rockbottom

Active Member
YW!

Yep, just find a GPU that will fit & you'll be good to go.

I did a 2 hour 4k test recording after we finished up the other day using the same settings from the short 4 minute recording above (CQP/CQ 18) & it's 45GB's. Recording @ 30FPS will result in a smaller file & after you get started, just adjust the CQ # to get the quality/file size you're comfortable with.
 
Top