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. |
![]() |
#301 | Link |
Registered User
Join Date: Jul 2018
Posts: 407
|
avsresize_r22 (pass: m6UEtJm68sPV):
- interlaced now works with use_props=1 too. If interlaced is not specified, frame property "_FieldBased" is read to enable/disable the interlaced mode. If interlaced is specified, "_FieldBased" doesn't have effect. - zimg v3.0.5. |
![]() |
![]() |
![]() |
#302 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,582
|
Quote:
edit: everything seems ok, what about chroma subsampling parameter? https://forum.doom9.org/showthread.p...50#post1989150
__________________
See My Avisynth Stuff Last edited by real.finder; 8th July 2023 at 02:37. |
|
![]() |
![]() |
![]() |
#303 | Link | |
Registered User
Join Date: Jul 2018
Posts: 407
|
Quote:
|
|
![]() |
![]() |
![]() |
#304 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,582
|
Quote:
edit: maybe it also worth adding bit_bepth parameter too and both chroma_subsampling and bit_bepth will be ignored when pixel_type is used
__________________
See My Avisynth Stuff Last edited by real.finder; 8th July 2023 at 13:29. |
|
![]() |
![]() |
![]() |
#305 | Link | |
Registered User
Join Date: Jul 2018
Posts: 407
|
Quote:
Code:
z_ConvertFormat(pixel_type="yuv444p" + (ComponentSize() == 4 ? "s" : String(BitsPerComponent()))) Don't get me wrong. There are already a lot of parameters that making the usage a bit complicated at first look. Adding more parameters with actions that are already covered is unnecessary further complication imo. |
|
![]() |
![]() |
![]() |
#306 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,582
|
if the problem that it got lot of parameters, then can we got pixel_type to accept things like "444" (or "yuv444*") or "Y" (without any number or "Y*") and same with bitbepth (like *P16)
__________________
See My Avisynth Stuff |
![]() |
![]() |
![]() |
#307 | Link |
Registered User
Join Date: Jul 2018
Posts: 407
|
avsresize_r23 (pass: m6UEtJm68sPV):
- Added parameter bit_depth: output bit depth. It doesn't have effect if pixel_type is defined; - Added parameter chroma_subsampling: output chroma subsampling. It doesn't have effect if pixel_type is defined; - zimg v3.0.5. Last edited by StvG; 10th July 2023 at 02:29. Reason: Fix typo |
![]() |
![]() |
![]() |
#308 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,582
|
Quote:
__________________
See My Avisynth Stuff |
|
![]() |
![]() |
![]() |
#311 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,719
|
Perfect, so it won't break any of my supply chains.
![]() Well, I'm suffering from insomnia due to the heatwave (I'm currently in Milan, Italy and not in the UK unfortunately) and the fan is just blowing hot air on me, which is useless... So... I might just get up, take a shower, have breakfast, go to the office (where I actually have AC) and update all my servers xD |
![]() |
![]() |
![]() |
#312 | Link |
Registered User
Join Date: Jul 2013
Posts: 38
|
I'm not sure if I'm using chromaloc_op correctly. I haven't used it so far.
I want to convert HDR PQ to SDR: Example 1: z_ConvertFormat(pixel_type="RGBP16", colorspace_op="2020ncl:st2084:2020:limited=>rgb:st2084:2020:full", chromaloc_op="top_left=>top_left", dither_type="none") Cube("D:\5-NBCU_PQ2SDR_DL_Adobe_v1.cube", interp=1, fullrange=1) z_ConvertFormat(pixel_type="YV12", colorspace_op="rgb:709:709:full=>709:709:709:limited", chromaloc_op="top_left=>left", dither_type="ordered") Example 2: z_ConvertFormat(pixel_type="YUV444P16",colorspace_op="2020ncl:st2084:2020:l=>2020ncl:st2084:2020:l",chromaloc_op="top_left=>top_left",dither_type="none") ConvertYUVtoXYZ(Color=0,HDRMode=0,OOTF=false,OutputMode=2) ConverXYZ_BT2446_C_HDRtoSDR(PQMode=true,Lhdr=50000.0,Lsdr=100.0,pColor=0,pct_ref=0.6,pct_ip=0.6,pct_wp=1.0,pct_sdr_skin=1.0,pct_hdr_skin=0.44) ConvertXYZtoYUV(Color=2,pColor=0,OOTF=false) z_ConvertFormat(pixel_type="YV12",colorspace_op="709:709:709:l=>709:709:709:l",chromaloc_op="top_left=>left",dither_type="ordered") I think the change to "left" (mpeg2), which is the standard for Rec709, should be placed at the end of the scripts ? Last edited by joearmstrong; 30th July 2023 at 10:09. |
![]() |
![]() |
![]() |
#313 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,719
|
It should, in theory, be fine.
When you upscale the chroma to RGB, you're essentially going to the same resolution for both luma and chroma and, just like with 4:4:4, the chroma location loses its meaning. When you're downscaling the chroma to go back to 4:2:0, however, it actually matters, but given that by default it assumes that you want the classic 4:2:0 (i.e left) and not type 2 (i.e top left), it will automatically get it right even if you don't specify it ![]() |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|