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. |
![]() |
#1 | Link |
Registered User
Join Date: Mar 2011
Posts: 4,781
|
Compare oddity
The Avisynth wiki says Compare() only supports RGB24, RGB32, YUY2 and YV12.
I couldn't find any changes in the Avisynth+ version history to indicate that had changed, but it does seem to support unsupported formats (Avisynth+ 3.7.2 on XP). For example these seem okay. Code:
Compare(BlankClip(Pixel_Type="YV411"), BlankClip(Pixel_Type="YV411")) Compare(BlankClip(Pixel_Type="YUV422P16"), BlankClip(Pixel_Type="YUV422P16")) Code:
"Convert: Input chroma placement only available with 4:2:0 or 4:2:2 sources" Compare(\ BlankClip(Pixel_Type="YV411").propSet("_ChromaLocation", 0), \ BlankClip(Pixel_Type="YV411").propSet("_ChromaLocation", 0)) Code:
Compare(A, B, show_graph=false) # displays the graph Compare(A, B, logfile="compare.log", show_graph=true) # doesn't display the graph Code:
ColorBarsHD(staticframes=true) # 1 hour video with lots of frames ColorBarsHD(staticframes=false) # 1 hour video with lots of frames |
![]() |
![]() |
![]() |
#2 | Link | ||
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,478
|
Quote:
Quote:
Code:
"Convert: Input chroma placement only available with 4:2:0 or 4:2:2 sources" Last edited by wonkey_monkey; 3rd February 2023 at 00:37. |
||
![]() |
![]() |
![]() |
#3 | Link | |||
Registered User
Join Date: Mar 2011
Posts: 4,781
|
Quote:
Z = ColorBarsHD(width=960, height=540, staticframes=true, Pixel_Type="YV24") Compare(Z, Z) ConvertToYV12() Trim(0,99) ColorBars.mkv (44kB) Quote:
Z = ColorBarsHD(width=960, height=540, staticframes=true, Pixel_Type="YV24") Compare(Z, Z, show_graph=false) ConvertToYV12() Trim(0,99) Quote:
You're probably correct as this produces the same error. BlankClip(Pixel_Type="YV411") propSet("_ChromaLocation", 0) ConvertToRGB32() PropShow() And now I've looked at it, ConvertToYV11 has no ChromaOutPlacement, so I assume YV411 has a fixed chroma location? For Y8 there's no error though when doing the same thing, despite the complete lack of chroma. BlankClip(Pixel_Type="Y8") propSet("_ChromaLocation", 0) ConvertToRGB32() PropShow() killAudio() RGB doesn't seem bothered by an erroneous _ChromaLocation, as long as it's not present when converting from YV411. Moving propShow's location in the script indicates that after a conversion from YUV to RGB, the _ChromaLocation frame property is deleted, but a _ChromaLocation when converting between RGB formats isn't. BlankClip(Pixel_Type="YV24") propSet("_ChromaLocation", 3) ConvertToRGB64() propSet("_ChromaLocation", 4) ConvertToRGB32() PropShow() Last edited by hello_hello; 3rd February 2023 at 14:47. |
|||
![]() |
![]() |
![]() |
#4 | Link | |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,478
|
Quote:
Last edited by wonkey_monkey; 3rd February 2023 at 19:01. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|