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 > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd December 2019, 13:38   #1  |  Link
Forteen88
Herr
 
Join Date: Apr 2009
Location: North Europe
Posts: 386
x265: Should I set Blu-ray settings?

I wonder, should I always set,
Quote:
--colorprim bt709 --colormatrix bt709 --transfer bt709 --range limited
when I make x265-reencodes of Blu-ray sources, even though some Blu-ray sources don't have those settings listed when I check with MediaInfo?
Forteen88 is offline   Reply With Quote
Old 3rd December 2019, 14:06   #2  |  Link
excellentswordfight
Lost my old account :(
 
Join Date: Jul 2017
Posts: 116
Quote:
Originally Posted by Forteen88 View Post
I wonder, should I always set,
when I make x265-reencodes of Blu-ray sources, even though some Blu-ray sources don't have those settings listed when I check with MediaInfo?
This is a bit of an strange question, you can ofc set it to those flags if you want the decoder to decode it like that. But ff you want the decoder to handle it the same way as the soruce (which you should want to) use the flags that corresponds with the source, unless you are converting it to something else before encoding.

So for example if you set --range limited for an source that is full range without converting it to limited range, you will get incorrect levels on playback.

Last edited by excellentswordfight; 3rd December 2019 at 14:08.
excellentswordfight is offline   Reply With Quote
Old 3rd December 2019, 19:56   #3  |  Link
Forteen88
Herr
 
Join Date: Apr 2009
Location: North Europe
Posts: 386
Quote:
Originally Posted by excellentswordfight View Post
...
But ff you want the decoder to handle it the same way as the source (which you should want to) use the flags that corresponds with the source, unless you are converting it to something else before encoding.
...
I want the reencode to be as close to the source as possible. Sometimes, those flags are not listed at all in the source Blu-ray though. Should I not set those flags when they're not set in the HD Blu-ray source-video?
Forteen88 is offline   Reply With Quote
Old 3rd December 2019, 20:44   #4  |  Link
froggy1
ffx264/ffhevc author
 
froggy1's Avatar
 
Join Date: May 2007
Location: Belgium
Posts: 1,551
Quote:
Originally Posted by Forteen88 View Post
I want the reencode to be as close to the source as possible. Sometimes, those flags are not listed at all in the source Blu-ray though. Should I not set those flags when they're not set in the HD Blu-ray source-video?
From my experience, virtually all Full HD Blu-rays come in BT709 colorspace, even if mediainfo reports nothing (there are other ways to find out but I only have tools for Linux). The color range is a bit more tricky and needs to be set on a per-file basis
__________________
ffx264--ffhevc--ffxvid
froggy1 is offline   Reply With Quote
Old 3rd December 2019, 22:03   #5  |  Link
Forteen88
Herr
 
Join Date: Apr 2009
Location: North Europe
Posts: 386
Thanks froggy1, I'll make frame-comparisons then (when color range is not set in Full HD Blu-rays source when I look in MediaInfo).
Forteen88 is offline   Reply With Quote
Old 6th December 2019, 21:55   #6  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Germany
Posts: 677
Quote:
Originally Posted by Forteen88 View Post
Thanks froggy1, I'll make frame-comparisons then (when color range is not set in Full HD Blu-rays source when I look in MediaInfo).
The range is the easiest thing to check.
The vast majority of FULL HD H.264 BD are in Limited TV Range 16-235 8bit as it's often required to pass the QC, anyway you can check it with Histogram() or with VideoTek() which will show you the waveform. The big fat brown "lines" show you the border of the 16-235 limit and if the waveform stays inside those brackets, then it's Limited, if it goes outside, then it's probably Full. The bottom shows the black level, the top shows the white level.
This is for Luma, for Chroma is pretty much the same, but you'll have to check the circle with the colors in it instead.

Below you'll find two frames shot with my crappy camera a few days ago in Berlin:

Full Range (8bit) 0-255:



Limited TV Range (8bit) 16-235:



As to the colormatrix, there are others ways in which you can check whether they mastered it in BT709 or not, but it's almost always the case that they used BT709. By the way, if you don't specify anything, the decoder will have to guess and the vast majority of decoders guess BT601 for SD and BT709 for HD and FULL HD.
__________________
Broadcast Encoder
Avisynth memes: 1 - 2 - 3
Videotek - Audacity XP

Last edited by FranceBB; 6th December 2019 at 21:57.
FranceBB 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 11:34.


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