Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 13th December 2013, 13:52   #1  |  Link
bugmen0t
Banned
 
Join Date: May 2012
Location: _Lies|Greed|Misery_
Posts: 114
Black and white in x264

Hello, I have some black and white content to encode (source material is NTSC DVD), and I have some questions on how x264 handles this content and practices.

1) Are there any changes to the presets that could/should be enabled for black and white content?

2) When x264 encodes color content, approximately what percentage of the bitrstream goes to the luma channel and what percentage to chroma?

3) Is my understanding correct that I could use a lower bitrate on b/w content than what I typically use for color content and still have the same perceived quality since all bits can be devoted to the luma channel since there is no chroma data?

Thanks to those knowledgeable on this. I'm always interested in learning more.




Villa Palmar Timeshare Scam

Last edited by bugmen0t; 21st February 2014 at 23:50.
bugmen0t is offline   Reply With Quote
Old 13th December 2013, 16:03   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by bugmen0t View Post
1) Are there any changes to the presets that could/should be enabled for black and white content?
Not that I'm aware.

Quote:
Originally Posted by bugmen0t View Post
2) When x264 encodes color content, approximately what percentage of the bitrstream goes to the luma channel and what percentage to chroma?
I don't think x264 uses a certain "percentage" for luma or chroma. It's controlled indirectly by the "--chroma-qp-offset" option.

So with a source that has very "complex" chroma (e.g. a lot of chroma noise), the percentage spent for chroma will be higher, compared to a source that has very "simple" chroma.

And a "black and white" (actually greyscale) source has the simplest chroma possible - (ideally) all chroma blocks should be 100% flat - which probably means the chroma will be almost "free" to encode.

Quote:
Originally Posted by bugmen0t View Post
3) Is my understanding correct that I could use a lower bitrate on b/w content than what I typically use for color content and still have the same perceived quality since all bits can be devoted to the luma channel since there is no chroma data?
I think so. But it might not be that much, given that - in a usual YUV 4:2:0 source - the chroma has only 1/4 of the pixel data, compared to the luma, anyway. That plus the chroma qp offset!
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 13th December 2013 at 16:11.
LoRd_MuldeR is offline   Reply With Quote
Old 13th December 2013, 19:33   #3  |  Link
detmek
Registered User
 
Join Date: Aug 2009
Posts: 463
Just in case of chroma noise, Avisynth and Greyscale() could be used to eliminate any chroma residue.
detmek is offline   Reply With Quote
Old 13th December 2013, 20:46   #4  |  Link
bugmen0t
Banned
 
Join Date: May 2012
Location: _Lies|Greed|Misery_
Posts: 114
ok thanks for the help. Is it safe to assume that DVDs authors from big studios won't have chroma noise, or is it safer just to include greyscale() in the avs? Is there any harm done from including this (assuming there aren't opening titles/studio logos in color)?








Villa Palmar Timeshare

Last edited by bugmen0t; 21st February 2014 at 23:50.
bugmen0t is offline   Reply With Quote
Old 14th December 2013, 02:43   #5  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
It's never safe to assume anything about a professional release. Most releases are farmed out to mastering houses to create the structure and encode; some do an amazing job, most just don't care. The older a movie is, the less budget the release gets, too.

The maximum value for --chroma-qp-offset is 32, which would be pretty close to out your chroma bits anyway. (Since the maximum possible qp is 51.)
foxyshadis is offline   Reply With Quote
Old 14th December 2013, 17:25   #6  |  Link
ty2010
Script abuser
 
Join Date: Aug 2012
Location: FWI
Posts: 14
-g for b&w in handbrake if that's what you're using. In addition to foxy's info, settings in your decompressor or image renderer can also introduce chroma noise.
ty2010 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.