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. |
|
|
Thread Tools | Search this Thread | Display Modes |
29th January 2022, 10:48 | #41 | Link | |
Registered User
Join Date: Dec 2013
Posts: 640
|
Quote:
If I understand quietvoid correctly, the crop values don't matter to dovitool. It would set the size of letterbox bars to zero. Which does make me wonder if "undercropping" would cause issues. With undercropping I mean cropping, but not entirely removing the black bars. Last edited by von Suppé; 29th January 2022 at 10:51. |
|
29th January 2022, 11:47 | #42 | Link |
QfG Group Germany
Join Date: Oct 2018
Location: Germany
Posts: 247
|
Wrong Informations. Correct answer here:
https://forum.doom9.org/showpost.php...6&postcount=45
__________________
Last edited by -QfG-; 29th January 2022 at 21:34. |
29th January 2022, 17:31 | #43 | Link | ||
Registered User
Join Date: Mar 2011
Posts: 435
|
Quote:
Quote:
|
||
29th January 2022, 17:36 | #44 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,802
|
My assumption is that whenever the final result doesn't have any black borders, you use the cropping option for the RPU.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
29th January 2022, 21:23 | #45 | Link |
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 574
|
Yes that's correct.
__________________
LG C2 OLED | GitHub Projects |
29th January 2022, 22:00 | #46 | Link |
Registered User
Join Date: Jan 2002
Posts: 581
|
I makes sense, but how do you know how it crops the RPU?. I mean you will need to crop the end result just like the Crop function works on the RPU file. But as you dont set any crop resolution, how do you know how it cropped it ? Ex. Source UHD: 3840 x 2160 -> Crop RPU = Resolution ? - Reencoded and cropped movie: 3840 x 1680. So what if the Cropped RPU has a resultion of 3840 x 1685 and the reencoded is 3840 x 1680, then its off by 5 pixel (not sure you can see that). Wouldnt it be better if Dovi_tool took crop (Top, Bottom, Left, Right) values, so the RPU matches the Reencoded movie ? |
29th January 2022, 22:12 | #47 | Link | ||
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 574
|
Quote:
For example, a source file with resolution 3840x2160 might have an actual aspect ratio of 2.4 without letterbox bars, so the active area is 3840x1600. In that case, the RPU has a L5 metadata entry with top and bottom offsets set to 280 pixels. In playback, some devices would use this offset to apply tone mapping to the active area only. If the RPU is "cropped", the 280 pixel offsets are set to zero. That indicates to the decoder that the video has no letterbox bars. If the offsets were kept the same as the original, and the letterbox bars are not in the final video, then some players might overcrop the video on playback. Quote:
Say you have a final video of resolution 1920x1080 which contains letterbox bars. And the source is the example above, with actual active area of 3840x1600. That means the offsets need to be halved to match the new resolution, giving us 140 pixels. You could edit the RPU active area with this: Code:
{ "mode": 2, "active_area": { "presets": [ { "id": 0, "left": 0, "right": 0, "top": 140, "bottom": 140 } ], "edits": { "all": 0 } } }
__________________
LG C2 OLED | GitHub Projects |
||
30th January 2022, 00:03 | #49 | Link | |
Registered User
Join Date: Aug 2008
Location: Italy
Posts: 46
|
Quote:
Since I am not able to edit the crop values of the rpu, it would be of great use if a future version of the -QfG- tool would allow, after enabling the crop, to set the crop values (left, right, top, bottom) before creating the rpu, in order to adapt it exactly to each encoding. And I think the left and top crop values are positive, and what to do with the right and bottom crop values? Positive or negative? Not sure but maybe they all have to be positive (if different from 0). And finally hdr10plus_tool.exe contained in the -QfG- tool is obsolete (1.2.1), the new version has been released (1.2.2). By the way, great job to both of you, quietvoid and -QfG- Last edited by cool advertise; 30th January 2022 at 00:20. |
|
30th January 2022, 00:24 | #50 | Link | |
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 574
|
Quote:
They simply represent the size of the letterbox bars, in pixels.
__________________
LG C2 OLED | GitHub Projects |
|
30th January 2022, 02:28 | #51 | Link |
Registered User
Join Date: Aug 2008
Location: Italy
Posts: 46
|
OK, maybe now I understand.
So if I want to do an x265 encode and crop the top and bottom (or left and right) letterbox bars, dovi_tool allows this via the -c command or the CROP RPU "YES" option of the -QfG- tool. If you don't cut letterbox bars then don't use -c or use CROP RPU "NO" of the -QfG- tool. There is no way or need to specify how many pixels these letterbox bars are via dovi_tool, if coding using crop. The editor allows via a json configuration file, in case the encoding has letterbox bars and is therefore not cropped to specify the pixel size of these bars by skipping the default ones, or something like that. I'm writing because I don't have a Dolby Vision TV, and I can't do tests, but I think I understand this. Last edited by cool advertise; 30th January 2022 at 02:34. |
30th January 2022, 17:20 | #54 | Link |
Registered User
Join Date: Jun 2010
Posts: 24
|
Hi!
I know this isn't the specific thread, but i need a little help. How can i extract the dolby vision meta datas to .xml format? I have rpu.bin and .json files with using dovi_tool I need this format /.xml/ for an program. Thank You! |
30th January 2022, 17:30 | #55 | Link |
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 574
|
You can't.
__________________
LG C2 OLED | GitHub Projects |
30th January 2022, 21:14 | #58 | Link | |
Registered User
Join Date: Jan 2002
Posts: 581
|
Quote:
You can use a online converter to convert from JSON to XML. It might work, it might not. https://www.freeformatter.com/json-t...converter.html |
|
30th January 2022, 23:17 | #60 | Link | |
Registered User
Join Date: Jun 2010
Posts: 24
|
Quote:
Hi! Yes, i tried. .JSON file is to big..... But Thank You! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|