Answers.Body: <p>No. Almost all video on the planet is limited YUV420 (all Blu-rays, even HEVC ones with Dolby Vision, all Youtube, only some satellite FEEDs not for consumers use 4:2:2). Sorry. Of course, there <strong>is</strong> RGB and <strong>even</strong> mathematically lossless mode in all common encoders, H.264/AV1/VP9/HEVC... For lossless AV1 see <a href="https://trac.ffmpeg.org/ticket/7600" rel="nofollow noreferrer">https://trac.ffmpeg.org/ticket/7600</a></p>
  <p>But, alas. It is not used at all.</p>
  <p>Only Dolby Vision in profile 5 that is not HDR10 compatible (it uses IPTPQc2 color instead of YCbCr and <strong>FULL RANGE</strong>) can be good enough for you. It still uses 4:x:x chroma but because of new encoding it is much better looking!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-21T21:20:49.720Z
Answers.Text: Yeah, I suspected. Thanks for your answer. Anyway using OpenGL ("for Windows")  as video output instead of Direct3D(9) also helps a bit. It must use some kind of interpolation, so at least it's just a bit blurred, rather than pixelated.
Answers.UserDisplayName: fanyul
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-26T18:12:00.257Z
Answers.Text: Huh, I randomly found some options (with x265 encoder, but others might have this as well): "CrQPOffset" and "CbQPOffset". With these it is possible to apply different QP ("quality") values for the "Cr" and "Cb" components (relative to the overall QP value). This seems to be about as effective as chromatic subsampling, but more flexible. Using these and YUV444 colors there is no observable resolution loss. :) (Also I think these might be used with NV12/YUV420 or YUV422 to obtain even more compression, but I don't know how this would effect the colors.)
Answers.UserDisplayName: fanyul
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-20T15:40:41.783Z
Answers.LastActivityDate: 2021-03-21T22:08:21.083Z
Answers.LastEditDate: 2021-03-21T22:08:21.083Z
Answers.UserDisplayName: Валерий Заподовников
Body: <p>I was trying to make some recordings of a game (with OBS), but it wasn't really good even with &quot;lossless&quot; options. Some part of the interface was just pixelated... After a while I realized that the chromatic subsampling should cause the problem, as the pixelated interface is red. (In OBS the default color format is NV12, using RGB instead - without subsampling - it was all good.)</p>
  <p>Is there a workaround to keep the resolution of the interface intact, but still do some kind of chromatic subsampling? (Maybe with some other color encoding than YUV?)<br />
  It's Ok if I need to make the recordings without subsampling, and than convert/transcode the videos. I would do it anyway, as OBS can't record with hevc_qsv. Also I don't have an intent to publish these videos on the internet. (Probably I'd like to store the videos using H265 or AV1, to obtain the best compression.)</p>
  
Tags: <encoding><compression><colorspace>
Title: Resolution loss by chromatic subsampling: is there a workaround?
UserDisplayName: fanyul
ThreadText: # Resolution loss by chromatic subsampling: is there a workaround?
  
  (Asked by: username_0 on 2021-03-14)
  
  I was trying to make some recordings of a game (with OBS), but it wasn't really good even with "lossless" options. Some part of the interface was just pixelated... After a while I realized that the chromatic subsampling should cause the problem, as the pixelated interface is red. (In OBS the default color format is NV12, using RGB instead - without subsampling - it was all good.)
  
  Is there a workaround to keep the resolution of the interface intact, but still do some kind of chromatic subsampling? (Maybe with some other color encoding than YUV?)  
  It's Ok if I need to make the recordings without subsampling, and than convert/transcode the videos. I would do it anyway, as OBS can't record with hevc\_qsv. Also I don't have an intent to publish these videos on the internet. (Probably I'd like to store the videos using H265 or AV1, to obtain the best compression.)
  
  **Tags:** encoding, compression, colorspace
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-03-20. Score: 1 | Accepted answer
  
  No. Almost all video on the planet is limited YUV420 (all Blu-rays, even HEVC ones with Dolby Vision, all Youtube, only some satellite FEEDs not for consumers use 4:2:2). Sorry. Of course, there **is** RGB and **even** mathematically lossless mode in all common encoders, H.264/AV1/VP9/HEVC... For lossless AV1 see <https://trac.ffmpeg.org/ticket/7600>
  
  But, alas. It is not used at all.
  
  Only Dolby Vision in profile 5 that is not HDR10 compatible (it uses IPTPQc2 color instead of YCbCr and **FULL RANGE**) can be good enough for you. It still uses 4:x:x chroma but because of new encoding it is much better looking!
  
  > **Comments:**
  > **username_0**: Yeah, I suspected. Thanks for your answer. Anyway using OpenGL ("for Windows")  as video output instead of Direct3D(9) also helps a bit. It must use some kind of interpolation, so at least it's just a bit blurred, rather than pixelated.  
  > **username_0**: Huh, I randomly found some options (with x265 encoder, but others might have this as well): "CrQPOffset" and "CbQPOffset". With these it is possible to apply different QP ("quality") values for the "Cr" and "Cb" components (relative to the overall QP value). This seems to be about as effective as chromatic subsampling, but more flexible. Using these and YUV444 colors there is no observable resolution loss. :) (Also I think these might be used with NV12/YUV420 or YUV422 to obtain even more compression, but I don't know how this would effect the colors.)  
  
  ---
  
  