OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (2022)

Introduction.
For higher compression rate, video encoders usually use methods of representation of each video frame as 3 separate channels: one for luminosity and two for color. This allow to compress color info separately from the luminance. Special math and quantization of this channels bring to us YUV (Y - luma, like "luminance/light"; U and V - chroma, like "chrominance/color").
Human eye is less sensible to color than to brightness of the visual signal, thus chroma info (UV) require less detail and may be compressed higher (with loss). Higher compression of the chroma possible through U and V downscale (by horizontal or vertical). This method is called chroma subsampling.

Quality.
Chroma depend on luma in math calculations, so if you loss some color info - you slightly alternate luminance in some part of the result image. This is noticable on transformations: original_RGB -> compressed_YUV -> restored_RGB, when color sub-sampling take place in the middle of the process.
Additional error introduced by gamma and different standards (BT.601, BT.709 etc.) applied to the encoding and decoding. If video encoded by BT.601 and viewed as BT.709 (i.e. without proper matrix) then you'll get color error ("darker" green than it actually should, and "over-bright" green vise versa).

OBS Studio settings
In OBS Studio (v0.15.4) you can specify:

  • Color Format - this is equal to the chroma subsampling;
  • YUV Color Space* - this is standard** of the color video you are working with;
  • YUV Color Range - this is video range of the resulting footage.

All this settings applies on encoding. To view created footage in the right way (true color) you must ensure that all stages of the post production (including web hosts) doesn't introduce color error in your videos. Professional studios places color bars at the beginning of the video for this purposes. Unfortunately, color bars are hard to understand by casual users. That's why I made this new test charts for OBS Studio.

Test charts (and test videos)
a) Color space, chroma subsampling, color range test charts
b) All charts in one 7z file (~23.1 MB)

How to use these test charts
All color test charts designed to be viewed in native resolution (scale 1:1 or 100%).

  1. Download the test chart (.png image) with resolution equal or less than monitor resolution. For example 1920x1080 [here and further insert your value instead].
  2. Set OBS Studio Settings>Video>Base (Canvas) Resolution to the test chart resolution [1920x1080]
  3. Set OBS Studio Settings>Video>Output (Scaled) Resolution to the test chart resolution [1920x1080]
  4. Add 'Image Source' to the scene. Select downloaded test chart as input image.
  5. Make sure that image positioned at the top left corner of the OBS Studio Preview window.
  6. Make recording or streaming.
  7. Watch recorded or streaming video 100% scale. Do not scale it up or down! For your [1920x1080] monitor you may watch [1920x1080] video full screen.

Results and test chart readings

Color charts

The central part of the test chart has four color marks, by looking on the left color sign you can visually determine what chroma subsampling value has your video source. First row is for 4:4:4 subsampling detection, second - 4:2:2, third - 4:1:1, fourth - 4:2:0. When mark is visible - subsampling is take place. Only one mark at the time can be true. Try to disable hardware acceleration of the video player before watch this test marks (some installations OS+Video+Player+Display+etc due to optimizations forces its own subsampling, hopefully, each user should see the same 'accelerated' picture:).

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (1)

Each sign on the left has reference, to compare it to, on the right:

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (2)


Note: by default, some players could playback 4:4:4 videos as 4:2:2; jpeg and mjpeg can use 4:1:1 (very rare setting, 4:2:0 and 4:2:2 are more common); all my software players playback videos as 4:2:0 by default.

At the bottom of the test chart you can see encoding matrix and sampling origin detection test. This test only applies to the videos with 4:2:0, 4:2:2, 4:1:1 subsampling. The upper part of the test square can has vertical gray stripes or solid gray plate. In case of two thick color stripes, probably you are working with other subsampling or at different scale. Two colored vertical stripes about 2 pixels wide. The greenish for centered sampling (JPEG) and reddish for co-sited to odd columns sampling (MPEG2). These 2 stripes points to used chroma sampling technique. The stripes matches to the corresponding triangle pointers only one at the time. The match ensures that the named sampling technique is in use. The test based only on horizontal position of the sampling point, it may not work for complex filtering like bilinear, bicubic etc. when these filters applies to the color planes.

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (3)

BT.601 coefficients on encode, 4:2:0 subsampling. Chroma sample aligned to odd columns (left picture, MPEG2 sampling) or centered in 2x2 box (right picture, JPEG sampling):

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (4)

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (5)

BT.709 coefficients on encode, 4:2:0 subsampling. Chroma sample aligned to odd columns (left picture, MPEG2 sampling) or centered in 2x2 box (right picture, JPEG sampling):

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (6)

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (7)

Note: this test is useful for re-encoding (if you scale or crop - this test fails). If you see two stripes co-siting under the both JPEG and MPEG2 pointers - you got a baby... Sure, the test picture was shifted horizontally, check the test image alignment.

Left to the subsampling detection there is decoding matrix test. This test only applies to the videos with 4:1:1, 4:2:2, 4:4:4 subsampling. You are viewing at the right decoding if image has bright gray vertical rectangle at the middle of the square test sign. The pink or green tint says that wrong matrix is applied on decode (you need to adjust your player settings). Horizontal color stripes or dark gray rectangle says that you are working with other subsampling or at different scale.

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (8)

Video is decoded with BT.601 coefficients while it was encoded with BT.709:

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (9)

Video is decoded with BT.709 coefficients while it was encoded with BT.601:

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (10)

(Video) OBS STUDIO: Full vs Partial Color Ranges EXPLAINED (Limited vs Legal) Streaming RGB Range StreamLabs

Top left corner of the test chart has scale test sign. It consist of white and black stripes of 1 and 2 pixels width (16 and 8 stripes accordingly). When image scaled right - you can see all stripes at maximum contrast and minimal width. When image wrongly scaled - strips can loss the contrast, have smoothed edges, you can see gradients over whole sign or double width stripes.

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (11)

You see wrongly scaled image on the right:

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (12)

There is another one scaling test at right top corner of the test chart. Normal state for the sign is pink circle on white, and magenta square at background. If circles are too dark or image covered with moire then probably you are running test at wrong scale.

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (13)

You see wrongly scaled image on the right:

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (14)

Bottom left corner of the test chart has standard color bars at 75% level for both full range videos (PC) and partial range videos (TV). The noticeable difference in color is seen between green and magenta when wrong decoding is used - one color dimmed other has over-bright.

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (15)

Wrongly decoded BT.601:

(Video) How to use color correction and camera matching tools in OBS

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (16)

Wrongly decoded BT.709:

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (17)

With color sign at bottom you can test detail loss. When subsampling or high compression applied to the video, some details may gone forever. For example, horizontal gray strips over color gradients may disappear.

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (18)

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (19)

Gray strips vanished on the last green:

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (20)

The text blocks lies on the right half of the test chart. It helps to determine contrast loss, brightness shift and readability of the text when different subsampling and encoding options applied to the video.

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (21)

Color spill and blur (4:1:1 format):

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (22)

At bottom right corner of the test chart you can find sharpness test. The sign itself is a 2 crossed lines of the black color on the gray background. The right sharpness level applied to the monitor if both lines doesn't have white contour (outline).

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (23)

Note: this test is useful for analog connections from PC to the display device (D-Sub VGA)

There is geometry test at the center of the test chart. At the background of the main test there is white circle. If image displayed with the right aspect ratio then this sign is round (no stretching).

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (24)


Gray charts

Color Range test chart has row of squares, gray steps from 240 to 255, to compare it side-by-side to rectangles that has fixed 234 bright. Well scaled up Partial (TV) range video displayed on Full (PC) range monitor has gradations through all this 240...255 steps compared to fixed 234 (algorithms may vary a bit but overall "feel" is almost the same - no drops, bright gradation is present, 255 white is very bright and not shaded).

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (25)

(Video) YUV Color Range - Limited (16-235) Test

Color Range test chart has row of squares, gray steps from 0 to 15, to compare it side-by-side to rectangles that has fixed 16 bright. Well scaled up Partial (TV) range video displayed on Full (PC) range monitor has gradations through all this 0...15 steps compared to fixed 16 (algorithms may vary a bit but overall "feel" is almost the same - no drops, bright gradation is present).

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (26)

Note: because of small amount of light energy emission from the dark grey you can try 'Black and White fast test' (see below), where squares are larger in size (more light quantum will be detected by eye).

There is fast detection test for video Color Range in the next test sign. The detection sign contain "black" rectangles (large size) 16; 14; 12; 10; 8; 4; 0 of bright, and "white" rectangles (large size) 234; 236; 238; 240; 244; 248; 252; 255 of bright. For well scaled videos (Full or Partial range), almost all gradations of bright are visible. Scaling required because Partial (TV) color range videos at 8-bit has 16-235 of luma versus 0-255 in Full (PC). At this test, not scaled videos (Full or Partial range) wrongly displayed as two large squares of black and white with a numbers or shaded a lot. Full/Partial range conversion (scaling) usually performed by software or hardware automatically (on the fly) and end users do not change this.

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (27)

Full range video represented on full range monitor without proper scaling are black and white except 234 (wrongly scaled by software as partial range video, adjustment is needed):

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (28)

Partial range video represented on full range monitor without proper scaling are shaded a lot (wrongly scaled by software as full range video, adjustment is needed):

OBS Studio: Color Space, Color Format, Color Range settings Guide. Test charts. (29)

Note: about half of the display devices I saw, had very high brightness (it is adjustable but users do not lower it for some reason, maybe fear to adjust expensive device or don't understand what brightness do). Both contrast and brightness settings of the display device can alter the results of the test.

Note: Take in mind, that when tests performed by TFT displays - try to move your head up or down to change viewing angle, color and contrast could change a bit.

_______________________________________________

Suggestions
Best compatibility for YouTube service is:

  • Color Format - NV12 (or 4:2:0 subsampling);
  • YUV Color Space - 709 (or BT.709);
  • YUV Color Range - Partial (or TV).

(this info is subject to change: services are changing...)

  • On my PC I see that all YouTube videos has 4:2:0 subsampling.
  • On my PC I see that all videos uploaded to YouTube by myself is decoded as BT.709 (chrome browser, acceleration is ON, default and someway popular setting among users). I see that all this videos, scaled down by YouTube itself, still uses BT.709 for both encode & decode.
  • TV range uses less bandwidth. Quality difference: in my browser... I don't see it.

Some applications or services may force to perform video so if as it was encoded in BT.709 standard when size of the image larger than 720 pixels by vertical (progressive frames).

Actually, this affects as many applications as I know ^_^ And many of them just ignore any info about the encoding video standard stored in the file by myself. So, you can change encoding matrix on your wish and videos larger than 720p will use BT.709 on decode; videos smaller 720p will use BT.601 on decode. This info useful for 4:2:0 videos. Yes, in some cases you can step aside (BT.601 has info only about 4:2:2 and 4:4:4). For other types of subsampling - it is better to always follow the standard (720p -> BT.709 on encode; less size -> BT.601 on encode - here I mean, if you working with old + new hardware; usually, you choose only one standard for your production, no matter what size is, this all depends on your target device - where content will be viewed).

(Video) Ultimate Guide to Recording Your Trades Using OBS - Part One - Setup

Q: Where to find suggestions for other services?
A: Trust to your own feelings when working with color. YouTube is popular, I mentioned it for example only, you can make your own tests and share results too. There are a lot of services and applications available for the encoding/decoding. You can test anything, even JPG-converter application from the camera software bundle. Sometimes, it is hard to understand where error is - on converting or on displaying.

Take in mind:

  • NV12, I420 in OBS Studio is equal to 4:2:0 chroma subsampling (formats differ in hw data storing order, addressing).
  • I444, RGB in OBS Studio is equal to 4:4:4 chroma subsampling (no subsampling).
  • For streaming, OBS Studio always forces subsampling 4:2:0. If you setup other subsampling - conversion turned on automatically.
  • RGB doesn't have hw acceleration for conversions (there is warning message about this in OBS Studio log, it's normal).
  • Devices that has TV-out (of any kind) usually has partial range output or configurable parameter for this (look for the device manual). Set OBS Studio's input source settings according to the device setting. If possible, try upload test image to the device and view it 1:1 to determine the output range.

Conclusion
Color tests harder to pass - it depends on person and installation. Of course, you can playback predefined videos from the tests to make sure that you have adjusted equipment and trained eyes. All videos should playback without brightness drops and color shift.
From now on you able to test all compatibility settings for your lovely service/application by yourself.

* YUV (Y'CbCr in our case), it may transform into RGB and vise versa through BT.601 or BT.709 standards. All digital videos stored as Y'CbCr, nonlinear values (gamma applied).

** Since v26.0.0 of OBS Studio new value was added for selection to the Color Space field: sRGB - this is only "name" and means that the BT.709 standard is in use but with sRGB gamma function (TRC tagged as sYCC) applied instead of native BT.709 one. Rubbish? Maybe, but for PC screen capture it's OK. Why it was added? Because most displays itself are sRGB devices and content displayed on PC usually adapted for them (on the fly as well). Usually, users make edits of theirs recordings, thus the final video may get completely different characteristics. This all depends on your post-production (software and ways you edit your lovely videos).

Human eye is less sensitive to small color inaccuracies if side-by-side comparison doesn't take place. Soft image look better.
Human eye can get tired of the saturated colors. If you look at solid color too long, then you'll get color blind for this color for a few seconds (you'll see bright objects with different color tint).
Human eye most sensitive to wavelengths near 555 nm (feel of the "green" color).
Human eye may have color blindness of any kind from the born.

In FFmpeg chroma subsampling usually named "pixel format" (yuv420p, yuv444p, yuv422p etc.)

Optionally, you can make your own test movies with ffmpeg. By default encoded as BT.601, partial range:

ffmpeg -loop 1 -i "640x480_chroma_subsampling_test_chart.png" -c:v jpeg2000 -t 10 -pix_fmt yuv411p out_colorsub_test411.avi
ffmpeg -loop 1 -i "640x480_chroma_subsampling_test_chart.png" -c:v libx264 -t 10 -pix_fmt yuv422p out_colorsub_test422.mp4

Some useful color correction LUTs in PNG format (and few info on them) you can find at this post: https://obsproject.com/forum/threads/chroma-shifting-for-video-game-capture.69337/#post-299246

Original test videos was rendered with OBS Studio v24.0.0.

Designed to view on devices with color temperature ~6500K, gamma ~2.2, RGB 8-bit per channel.

  • Chroma_detail_loss_test.png

    3.4 KB · Views: 42,970

  • Chroma_encoding_matrix_is709.png

    4.4 KB · Views: 42,296

  • Chroma_detail_loss_test_less_detail.png

    10.3 KB · Views: 42,851

  • Chroma_encoding_matrix_is601.png

    5 KB · Views: 42,048

FAQs

What color format should I use for OBS? ›

RGB is the a good choice for recording, and I consider it the best choice. Why? Because it's recording the data straight off the screen, without any processing to convert to I444 or I420 or NV12.

What is the best color format for recording? ›

Member. XRGB, YUY2 and NV12 are color data settings. XRGB is the highest internal bandwith, highest quality option. It's the 4:4:4 RGB color data.

How do I change the color of my range on OBS? ›

OBS STUDIO: Full vs Partial Color Ranges EXPLAINED ... - YouTube

How do I change the recording quality on OBS? ›

If you've got a better graphics card than the x264 in OBS settings, select the graphics card you want. Select rate control to CBR and set the bitrate to 40000. If you have low-end specs, you will need to downscale the bitrate to 15000-25000. If your computer can handle it, you can upscale bitrate.

What is the best color space? ›

For the time being, sRGB the best color space available. Photographers want their work to be viewed and appreciated as they intended. Whether you're shooting in sRGB or Adobe RGB, only the former can safeguard your vision—only sRGB can enable you to take the best photographs possible.

What is HDMI color range? ›

It is possible to enforce a 'Full Range RGB 0-255' signal over HDMI or incorrectly functioning DisplayPort by setting a custom resolution. This resolution can be set such that it is treated exactly the same as the default native resolution of the monitor but with the colour signal corrected.

What is the best file format for OBS? ›

For many users, the best settings for OBS recording are: Video file format: MP4. Audio track: 1. Encoder: x264.

What rate control should I use for OBS? ›

If you are only streaming audio, you can get away with bitrate settings as low as 64 kbps. However, for better quality, you should up your audio bitrate settings to 192-320 kbps.

What recording format should I use? ›

So what do you choose for recording your audio? For pristine quality, always record in uncompressed formats like wav or aiff, at atleast 44,100 khz and 24 bit. Any subsequent processing like mixing, editing etc will not result in any degradation of the quality.

Should you force GPU as render device? ›

Forcing GPU rendering definitely makes sense on devices with a weaker CPU. If your device is anything less than a quad-core, I would recommend you leave it on at all times. But keep in mind that GPU rendering is only efficient with 2d applications.

What is color range in video? ›

Color space is a mathematical representation of a range of colors. When referring to video, many people use the term “color space” when actually referring to the “color model.” Some common color models include RGB, YUV 4:4:4, YUV 4:2:2, and YUV 4:2:0.

How do I make OBS more colorful? ›

Best way to COLOR GRADE YOUR WEBCAM for your stream (OBS ...

What is a good bitrate for 1080p recording? ›

To record in 1080p at 60 frames, it's recommended that you set the bitrate from 5,000 to 10,000 kbps in order to get the best video; although you can always go up to 60,000 kbps for 4k. For the audio bitrate, you can start as low as 64 kbps and can go up to 320 kbps for clearer sound.

What output resolution should I use for streaming? ›

Recommended Encoding Settings
QualityResolutionVideo Bitrate
Med640x360800 - 1200 kbps
High960x540 / 854x4801200 - 1500 kbps
HD 7201280x7201,500 - 4,000 kbps
HD 10801920x10804,000-8,000 kbps
2 more rows

Which bitrate is best for video? ›

Recommended video bitrates for SDR uploads
TypeVideo Bitrate, Standard Frame Rate (24, 25, 30)Video Bitrate, High Frame Rate (48, 50, 60)
1080p8 Mbps12 Mbps
720p5 Mbps7.5 Mbps
480p2.5 Mbps4 Mbps
360p1 Mbps1.5 Mbps
3 more rows

What is color format NV12? ›

NV12 is a biplanar format with a full sized Y plane followed by a single chroma plane with weaved U and V values. NV21 is the same but with weaved V and U values. The 12 in NV12 refers to 12 bits per pixel. NV12 has a half width and half height chroma channel, and therefore is a 420 subsampling.

What is the difference between sRGB and Rec 709? ›

As previously stated, sRGB and Rec. 709 primaries share the same chromaticity values (and therefore the same gamut). However, Rec. 709 differs slightly in its encoding transfer function, and doesn't actually specify an inverse transfer function for display.

What is sRGB used for? ›

The sRGB color space is composed of a specific amount of color information; this data is used to optimize and streamline colors between devices and technical platforms, such as computer screens, printers, and web browsers. Each color within the sRGB color space provides the possibility of variations of that color.

What Encoder should I use OBS? ›

The (New) Nvenc encoder is easily the best OBS encoder available, assuming you have a modern NVIDIA graphics card with the improved ASIC chip. With zero performance impact while encoding and high-quality frames even at low bitrates, it is a strong contender as a streaming encoder.

Videos

1. Resolve Color Grades in OBS! - OBS LUT Tutorial For HDMI Cameras
(Casey Faris)
2. How I Live Stream & Color Grade + Capture Card Guide [Feat. EposVox]
(Gerald Undone)
3. Best OBS Recording Settings For Low End PC | 1080p60 NO LAG & HIGH QUALITY | 2022!
(EverythingTech)
4. YCbCr and RGB Colour
(Computer Science)
5. MGS V OBS test
(John Ryder)
6. OBS Optimizing Guide - Ultimate Guide for 60 FPS Streaming
(Blasten)

You might also like

Latest Posts

Article information

Author: Terence Hammes MD

Last Updated: 10/05/2022

Views: 5963

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Terence Hammes MD

Birthday: 1992-04-11

Address: Suite 408 9446 Mercy Mews, West Roxie, CT 04904

Phone: +50312511349175

Job: Product Consulting Liaison

Hobby: Jogging, Motor sports, Nordic skating, Jigsaw puzzles, Bird watching, Nordic skating, Sculpting

Introduction: My name is Terence Hammes MD, I am a inexpensive, energetic, jolly, faithful, cheerful, proud, rich person who loves writing and wants to share my knowledge and understanding with you.