Also, is there no benefit to applying mergechroma vertically by rotating the video to the side?
|
Quote:
A purist would say that progressive means progressive, period. That debate isn't resolved. One school says deinterlacing creates damage, and it does to a certain extent, including sometimes carrying glitches like spots and dropouts into the new full-size frames. Others differ and claim you should eliminate such glitches with SeparateFields routines before going to a full deinterlace. It gets more complicated when you realize that QTGMC and MCTemporalDenoise use SeparateFields internally. Most of us just try it out and see. I tend to use both, but if I have to deinterlace anyway it seems that filters like ChromaShift and anti-alias and dehalos work better with deinterlace. RemoveDirtMC and RemoveSpotsMC don't work on the same things equally. The former is better with dropouts, the latter was never intended for dropouts. I didn't spend more than 90 seconds on the color. Time was catching up on me. Quote:
|
Quote:
|
I changed this:
Code:
#Add fades to some clips Code:
#Add fades to some clips The following is not correct! Code:
BottomField=SelectEven(). RemoveSpotsMC().RemoveSpotsMC3() Even-numbered fields start on the top scanline and are numbered 0, 2, 4, 6, 8, etc. You can call them by any name you want. But physically they are the top fields and are always even numbered. Physically, bottom fields never start at the top line. They are odd-numbrered fields starting at the second scanline, which is never the top line. They are numbered 1, 3, 5, 7, 9, etc. You can call them whatever you want. But phsyically they are the bottom fields and are always odd-numbered. AssumeBFF() and AssumeTFF() have nothing to do with positioning the fields. They determine which fields play first, bottom or top. They handle field playback priority only. They have no influence on field positions. There is some line twitter on the guy's glasses. You can deinterlace the clip and then vertically resize to half-height, then upsize it back again. But this video is too soft and corrupt for that. You are cropping interlaced YV12 vertically in groups of two pixels, which is a no-no. Use YUY2 or RGB. Look atv the table halfway down this page: http://avisynth.nl/index.php/Crop Code:
Weave() You've done as well as you can with really bad color. The guy's hair is blue and the black lapel isn't black. Are those supposed to look that way? code] aud=NicMPG123Source(vidpath+"video2_before Tc0 L2 2ch 48 320 DELAY 0ms.mp2", Normalize=false) vid=MPEG2Source(vidpath+"video2_before.d2v") AudioDub(vid,aud) LoadVirtualdubPlugin("D:\VirtualDub\plugins\ColorM ill.vdf", "ColorMill") ################################################## ####################### /* ################## code below can't be used here ################ AssumeBFF() clip1 = Trim(1505, 4271) clip2 = Trim(9464, 11636) clip3 = Trim(15587, 19197) clip4 = Trim(25203, 28942) clip5 = Trim(35200, 38568) clip6 = Trim(43275, 45038) #Add fades to some clips clip3=Clip3.FadeOut(30) clip4=Clip4.FadeOut(30) clip5=Clip5.FadeOut(30) vid2 = clip1 + clip2 + clip3 + clip4 + clip5 + clip6 vid2 Trim(400, 1300) ################## code above can't be used here ################ */ ################################################## ###################### Levels(15, 1, 255, 16, 235, coring=false, dither=true) ConvertToRGB32(interlaced=true, matrix="Rec601") ColorMill(25700, 25700, 29277, 25700, 16996, 16962, 25700, 25700, 25700, 25152, 25685,\ 25700, 25700, 1124, 1029) ConvertToYV12(interlaced=true) #For vertical ringing FAN(lambda=5) SeparateFields() TopField=SelectEven().RemoveDirtMC(40,false) BottomField=SelectOdd().RemoveDirtMC(40,false) Interleave(TopField,BottomField) #Noise removal super=MSuper(pel=2, sharp=1) backward_vec2 = MAnalyse(super, isb = true, delta =2, overlap=4) backward_vec1 = MAnalyse(super, isb=true, delta=1, overlap=4) forward_vec1 = MAnalyse(super, isb=false, delta=1, overlap=4) forward_vec2 = MAnalyse(super, isb= false, delta=2, overlap=4) MDegrain2(super, backward_vec1, forward_vec1, backward_vec2, forward_vec2, thSAD=400) ChromaShift(C=4) #Chroma bleeding mergechroma(aWarpSharp(depth=25, thresh=0.5, blurlevel=2, cm=1, bm=0)) LimitedSharpenFaster() AddGrainC(var=1.2) Weave() ##-- Can't crop interlaced YV122 in vertical groups of 2 pixels. ##-- ##-- Must use vertical groups of 4, or Use YUY2 or RGB. ##-- ##-- ConvertToYUY2(interlaced=true) Crop(28, 2. 0, -6).AddBorders(16,4,12,4) /*For de-interlaced version QTGMC(preset="medium",ChromaMotion=true) VInverse2() ConvertToRGB32(interlaced=false, matrix="Rec601") */ ConvertToRGB32(interlaced=true, matrix="Rec601") return last [/code] |
2 Attachment(s)
Quote:
https://www.afterdawn.com/guides/arc...nth_page_8.cfm Down the page it says: Quote:
But if what you write above is correct, then SelectEven would always choose the top fields, and this guide is wrong. I am confused.:question: Quote:
Quote:
Quote:
Attachment 11834 Here is before Attachment 11835 Is there anyway to color correct this using VirtualDub? I could not get ColorMill to work. Otherwise, I will have to use Premiere or DaVinci and export a lossless version to VirtualDub. If so, should I export a version from Avisynth/VirtualDub with the noise removed, followed by color correction in a NLE, and then back to Avisynth/VirtualDub? Or just color correct it first in a NLE and then use Avisynth/VirtualDub? I need to color correct before I use Mergechroma() or it will not work correctly because of how skewed the colors are. |
Quote:
Quote:
Code:
QTGMC(use whatever preset) If your NLE can correct the color first, do it separately. I don't use Premiere,but ColorFinesse in my AfterEffects is similar. DaVinci can't work with lossless codecs. |
Thank you. I tried the 6-axis color correction in VirtualDub2 but that did not help either. I guess it does have its limits. I don't know the color got screwed up that badly.
Is it correct that the modulo requirements for cropping borders is different than when adding them? From the Avisynth page, it seems that the height of YV12 video must be divisible by 4 on interlaced video, but on the AddBorders page it says that for YV12 video all four border widths must be divisible by 2. In that case it would seem that I can crop 4 from the top and 8 from that bottom (total = 12), and can add back a border to the top and bottom of 6 and 6. If cropping has a mod4 rule to preserve the colorspace, why doesn't AddBorders follow that as well? http://avisynth.nl/index.php/AddBorders |
AddBorders doesn't change the image. it just adds border pixe4ls.
You can not work with single pixels in TV12. An odd number of pixels on any side means you have an odd number of pixels on at least one side or a frame that's not YV12 compliant. YV12 stores luma and chroma data in even numbers of pixels. If you have odd pixels in YV12, you're missing or displacing some information. |
1 Attachment(s)
Thank you. I changed it to Crop(28, 4, 0 , -8).AddBorders(16,6,12,6). Doesn't AddBorder add to the frame size? It is what it says at the above link "Add black or colored borders, increasing frame size." That is why I did not know why its modulo rules are different.
Also, is there a way to turn a mono track of a video into stereo in Avisynth without resorting to an outside program? I tried to use MergeChannels but the video would not play. The clip in question only had one track, which was mono. Code:
original = AVISource("video.avi") |
Mono and stereo video? Huh?
Those are audio terms. And Avisynth isn't for audio. You want SoundForge. I probably owe you a favor, so I'll process a few audio tracks for you. Unlike video, audio is quick (well, for me, 25 years of experience with SoundForge and others). |
Quote:
What I meant is that my video only had one mono track of audio, and I wanted it in stereo. I was able to get around it easily by converting the .avi to a .wav file and importing that into Audacity, where duplicating tracks is simple. It also had the added benefit of allowing me to apply noise reduction and normalization. I was just curious about what MergeChannels actually does, since it did not do anything for me. |
Quote:
http://avisynth.nl/index.php/MergeChannels' http://avisynth.nl/index.php/ConvertToMono http://avisynth.nl/index.php/MonoToStereo http://avisynth.nl/index.php/MixAudio http://avisynth.nl/index.php/Category:Audio_filters |
Quote:
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.