Question / Help OBS can't handle video encoding?

CampbellChemin

New Member
Hi! I'm a partnered Twitch streamer who has a dedicated rig for this task, a Ryzen 7 1700 oced @ 4GHz. (1060 as GPU) streaming at 1080p60 8000Kbps Medium. (Yes I know theorical limit is 6000). This rig handles these settings easy in any game, from Minesweeper to Apex.

It works great, but recently I made a rework of all the design of my stream. I hired a guy to make new alerts, backgrounds, etc; in After Effects, and they look awesome. Problem is that my CPU goes nuts trying to encode some backgrounds. They all are 2560x1440 (as is the canvas), and I've tried webm and mp4 format. None seems to work, the CPU gets to 100% pretty easy. Even my regular gaming scene has gone up from an average 50% CPU usage to around 85% (i changes upper and bottom bars).

I've tried sending these backgrounds through HDMI from my main computer and it only takes about 40% of CPU power to encode it, but if added as a media source... well, as I said 100% in one second and CPU skips frames at a 30-50% rate.

Any ideas?
Thanks!
 

R1CH

Forum Admin
Developer
What codec are your alerts encoded in? Perhaps transcoding to a easier to decode format like huffyuv will help.
 

CampbellChemin

New Member
What codec are your alerts encoded in? Perhaps transcoding to a easier to decode format like huffyuv will help.

Hello R1CH, thanks for the reply. As far as I know, they're regular H264/AVC, I'll add mediainfo's info at the end of the post.

I even tried manually re-exporting the original video I got sent to me to a more regular output (like the one used for youtube), but happens the same. Even downscaling at 1080p OBS seems to have a hard time encoding it for some reason.

Any ideas?
Thanks again!

Code:
General
Complete name                            : /Users/Campbell/Videos/BG_3_final.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/mp41)
File size                                : 71.6 MiB
Duration                                 : 1 min 0 s
Overall bit rate                         : 10.0 Mb/s
Encoded date                             : UTC 2019-03-04 06:42:47
Tagged date                              : UTC 2019-03-04 06:42:48
TIM                                      : 00:00:00:00
TSC                                      : 60
TSZ                                      : 1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L5.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1 min 0 s
Bit rate                                 : 9 979 kb/s
Width                                    : 2 560 pixels
Height                                   : 1 440 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 60.000 FPS
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.045
Stream size                              : 71.4 MiB (100%)
Language                                 : English
Encoded date                             : UTC 2019-03-04 06:42:47
Tagged date                              : UTC 2019-03-04 06:42:47
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
 
Last edited:

astrals

New Member
Hello R1CH, thanks for the reply. As far as I know, they're regular H264/AVC, I'll add mediainfo's info at the end of the post.

I even tried manually re-exporting the original video I got sent to me to a more regular output (like the one used for youtube), but happens the same. Even downscaling at 1080p OBS seems to have a hard time encoding it for some reason.

Any ideas?
Thanks again!

Code:
General
Complete name                            : /Users/Campbell/Videos/BG_3_final.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/mp41)
File size                                : 71.6 MiB
Duration                                 : 1 min 0 s
Overall bit rate                         : 10.0 Mb/s
Encoded date                             : UTC 2019-03-04 06:42:47
Tagged date                              : UTC 2019-03-04 06:42:48
TIM                                      : 00:00:00:00
TSC                                      : 60
TSZ                                      : 1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L5.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1 min 0 s
Bit rate                                 : 9 979 kb/s
Width                                    : 2 560 pixels
Height                                   : 1 440 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 60.000 FPS
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.045
Stream size                              : 71.4 MiB (100%)
Language                                 : English
Encoded date                             : UTC 2019-03-04 06:42:47
Tagged date                              : UTC 2019-03-04 06:42:47
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Your at 2560/1440 reduce to 1920/1080
 

thesaka24

New Member
Hey, I just registered and I had this issue
I was able to fix it by converting the files using Wondershare converter but I guess any converter that can convert to WebM would do.
I converted mine from 1080p 1000kbps WebM to 720p 2000kbps(that was as low as Wondershare convert could go) and now my cpu usage dropped to about 13% when I add three different FULL SCREEN media sources.

So yea I hope that helps, here is how my mediainfo looked like before converting

Code:
Format                                   : WebM
Format version                           : Version 2
File size                                : 1.21 MiB
Duration                                 : 10s 0ms
Overall bit rate                         : 1 016 Kbps
Writing application                      : Lavf58.17.103
Writing library                          : Lavf58.17.103

Video
ID                                       : 1
Format                                   : VP9
Codec ID                                 : V_VP9
Duration                                 : 10s 0ms
Bit rate                                 : 969 Kbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 60.000 fps
Bits/(Pixel*Frame)                       : 0.008
Stream size                              : 1.16 MiB (95%)
Writing library                          : Lavc58.23.100 libvpx-vp9
Language                                 : English
Default                                  : Yes
Forced                                   : No
HANDLER_NAME                             : Apple Video Media Handler
TIMECODE                                 : 00:00:00:00
DURATION                                 : 00:00:10.000000000

And here is after

Code:
Format                                   : WebM
Format version                           : Version 2
File size                                : 2.24 MiB
Duration                                 : 9s 968ms
Overall bit rate                         : 1 887 Kbps
Encoded date                             : UTC 2019-08-20 04:23:27
Writing library                          : WonderShare Matroska Muxer

Video
ID                                       : 1
Format                                   : VP8
Codec ID                                 : V_VP8
Duration                                 : 9s 967ms
Bit rate                                 : 1 805 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 30.000 fps
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.065
Stream size                              : 2.14 MiB (96%)
Default                                  : Yes
Forced                                   : No

This WebM file also had transparency, it was intermission screen with chat on right side and game lobby screen in middle where I can add client of some game, lets say League of Legends client could go there or maybe if I pause a game it can show there.
After converting, the file lost its transparency and I'm guessing its because this converter doesn't convert transparent files and keep them transparent so I will have to find a workaround like for example, transparent part was gray color, I can edit that in some video editor and change it to green and then use OBS filters to green screen it or I can find some other converter that keeps transparency.

That's that, hope it works for you.
 
Top