Hi guys, I saw this code on Digital Faq, but I can't make it work
AvsPMod says StackHorizontal: image heights don't match. How can I solve it? Your help is highly appreciated.Code:Mpeg2Source("F:\Svaghi\Video Editing\Report e Guide\Avisynth Guide\[Provati]\[Filtraggio Selettivo]\Registrazione - 0001.d2v", CPU2="ooooxx", Info=3).converttoYV12() AssumeTFF() SeparateFields() # Got this from Jagabo at Videohelp # Show Luma and map Chroma to luma in separate clips so we can see each plane. Y=ColorYUV(off_u=-256, off_v=-256).ColorYUV(off_u=128, off_v=128) U=UtoY() V=VtoY() StackHorizontal(Y, U, V)
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 10 of 10
Thread
-
-
Your source is probably YV12 so the U and V channels are half the size (each dimension) of the Y channel. So you need to resize them or stack differently:
Code:Mpeg2Source("F:\Svaghi\Video Editing\Report e Guide\Avisynth Guide\[Provati]\[Filtraggio Selettivo]\Registrazione - 0001.d2v", CPU2="ooooxx", Info=3).converttoYV12() AssumeTFF() SeparateFields() # Got this from Jagabo at Videohelp # Show Luma and map Chroma to luma in separate clips so we can see each plane. Y=ColorYUV(off_u=-256, off_v=-256).ColorYUV(off_u=128, off_v=128) U=UtoY().BilineaResize(Y.width, Y.height) V=VtoY().BilineaResize(Y.width, Y.height) StackHorizontal(Y, U, V)
Code:Mpeg2Source("F:\Svaghi\Video Editing\Report e Guide\Avisynth Guide\[Provati]\[Filtraggio Selettivo]\Registrazione - 0001.d2v", CPU2="ooooxx", Info=3).converttoYV12() AssumeTFF() SeparateFields() # Got this from Jagabo at Videohelp # Show Luma and map Chroma to luma in separate clips so we can see each plane. Y=ColorYUV(off_u=-256, off_v=-256).ColorYUV(off_u=128, off_v=128) U=UtoY() V=VtoY() StackHorizontal(Y, StackVertical(U, V))
-
U = UtoY()
V = VtoY()
StackHorizontal(U,V)
Histogram(mode="luma") #*** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE -
To see more chroma detail I usually prefer to increase the saturation of the colors before splitting out the chroma or increase the contrast after:
Code:Mpeg2Source("F:\Svaghi\Video Editing\Report e Guide\Avisynth Guide\[Provati]\[Filtraggio Selettivo]\Registrazione - 0001.d2v", CPU2="ooooxx", Info=3).converttoYV12() AssumeTFF() SeparateFields() # Got this from Jagabo at Videohelp # Show Luma and map Chroma to luma in separate clips so we can see each plane. Y=ColorYUV(off_u=-256, off_v=-256).ColorYUV(off_u=128, off_v=128) U=UtoY().ColorYUV(cont_y=500) V=VtoY().ColorYUV(cont_y=500) StackHorizontal(Y, StackVertical(U, V))
-
Actually, this is was what I was looking for: I wanted to know which field has more noise, especially the chroma one. Thanks again.
-
But why U and V fields are in greyscale? Is it possible to see the colors?
-
U and V represent colors that are added or subtracted from the greyscale (Y) value. So you can't view them correctly on their own. You can get a sense of the colors by using a flat, medium, greyscale value but you won't see real colors:
Code:Mpeg2Source("F:\Svaghi\Video Editing\Report e Guide\Avisynth Guide\[Provati]\[Filtraggio Selettivo]\Registrazione - 0001.d2v", CPU2="ooooxx", Info=3).converttoYV12(interlaced=true) AssumeTFF() SeparateFields() Y = ColorYUV(cont_u=-256, cont_v=-256) # flatten U and V, leaving only Y U = ColorYUV(cont_y=-256, cont_v=-256) # flatten Y and V, leaving only U V = ColorYUV(cont_y=-256, cont_u=-256) # flatten Y and U, leaving only V StackHorizontal(Y, U, V)
-
hmm yeah i prefer histogram=luma at least i can better see if there is blocking, to each his own i guess
*** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
Similar Threads
-
Problems Deinterlacing - MBAFF - Separate Fields - Variable Framerate?
By danfgtn in forum Newbie / General discussionsReplies: 4Last Post: 12th May 2018, 19:31 -
Avisynth separate fields without dominance
By Megafox in forum Newbie / General discussionsReplies: 3Last Post: 9th Mar 2018, 19:59 -
How to see individual fields of an interlaced video?
By Gameshow Host in forum Software PlayingReplies: 2Last Post: 3rd Jan 2016, 11:51 -
MeGUI Fields uneditable after reinstall
By ZenMystic in forum Video ConversionReplies: 2Last Post: 31st Jul 2015, 10:52 -
Ripping DVD's - Why DeInterlace? They were 23.97 or 29.97 fields per second
By SyncroScales in forum DVD RippingReplies: 10Last Post: 16th Jan 2015, 04:07