Thank you. Glad I didn't even try to re-create that myself!
Cheers,
David.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 31 to 60 of 105
Thread
-
-
You might want to add default values so you don't have to specify them every time you call the function:
Code:# AlignExplode v1.0 # # Requires VideoScope plugin. YUY2 input only! # # Parameters are a text Label and Left, Right, Top, Bottom padding. L/R must be even (mod2). # function AlignExplode(clip c, string "Label", int "L", int "R", int "T", int "B") { Label = default(Label, "") L = default(L, 0) R = default(R, 0) T = default(T, 0) B = default(B, 0) c # Temp TempChromaU = UtoY().VideoScope("bottom",false,HistoTypeBottom="Y") TempChromaV = VtoY().VideoScope("bottom",false,HistoTypeBottom="Y") TempYCScope = VideoScope("both",false,"Y","Y","UV").Crop(0,height,-0,-0) # Layer 1 Pane1Source = ConvertToRGB().AddBorders(L,T,R,B,color_white) Pane2Hist = Histogram().Crop(width,0,-0,-0).ConvertToRGB().AddBorders(0,T,0,B,color_white) Pane3Chroma = TempChromaU.Crop(0,0,width/2,height).ConvertToRGB().AddBorders(L/2,T,R/2,B,color_white) Pane4Chroma = TempChromaV.Crop(0,0,width/2,height).ConvertToRGB().AddBorders(L/2,T,R/2,B,color_white) Layer1 = StackHorizontal(Pane1Source,Pane2Hist,Pane3Chroma,Pane4Chroma) # Layer 2 Pane5YScope = TempYCScope.Crop(0,0,width,256).ConvertToRGB().AddBorders(L,0,R,0,color_white) Pane6CScope = TempYCScope.Crop(width,0,-0,-0).ConvertToRGB() Pane7UScope = TempChromaU.Crop(0,height,-0,-0).ConvertToRGB().AddBorders(L/2,0,R/2,0,color_white) Pane8VScope = TempChromaV.Crop(0,height,-0,-0).ConvertToRGB().AddBorders(L/2,0,R/2,0,color_white) Layer2 = StackHorizontal(Pane5YScope,Pane6CScope,Pane7UScope,Pane8Vscope) # Output stack StackVertical(Layer1,Layer2) AddBorders(0,20,0,0,color_black).Subtitle(Label,size=19,x=2,y=0,font="Courier New").Subtitle("Chroma only",size=19,x=978+L+R,y=0,font="Courier New") return last }
-
Last edited by Brad; 14th Dec 2013 at 21:02.
-
[QUOTE=jagabo;2286933] The two devices will be using different A/D chips, proc amps, AGC, sharpening filters, etc. That makes it difficult to determine what differences are caused by DV compression vs. the other uncontrolled parameters.
What "uncontrolled parameters" are you talking about?
VHS-> TBC -> Proc amp -> capture device -> Lossless
VHS-> TBC -> Proc amp -> capture device -> DV-AVI
The only difference I can see here are the capture devices and the capture output. Everything in front of those two guys stays the same. You're saying that people use sharpeners, AGC, proc amps, etc., only with certain cards? Or what? Your firewire or DV capture device doesn't have a way to disable AGC or sharpeners? But your major objection to a straight test is that that a lossless device and a DV device use different processing chips and codecs? Well, quelle surprise! and DUH!
To me the argument being foisted here is that encoding something twice is better than (or as good as) encoding it once. By that logic, encoding it 3 times is better than encoding it twice, encoding it 4 times is better than encoding it 3 times, and so forth. Saying that "Well, you do lose something, but not that much." Cool. Get a job with a corporation writing programs to keep up their accounts and payroll and tell them that your Magic Bullet Method does make a few payroll errors and screw up some corporate bonuses and loses about 20% to 40% of the profits. But it's not that much!
Good luck with that one.Last edited by sanlyn; 19th Mar 2014 at 08:16.
-
All the hardware I mentioned is within every capture device -- A/D chips, proc amps, gain controls, sharping filters, etc. No two capture devices will deliver exactly the same results. You realize that the first thing a DV capture device does is digitize the incoming video signal exactly the same way an raw capture device does, right? Then it adds DV compression.
Not at all. Everyone already knows using a DV capture device is worse (all else being equal) than using a lossless device. The question is how much worse? All comparisons I've seen are theoretical and/or anecdotal. -
I have no problem with any of that. But why is this loss, whatever the extent, preferred by some? There are "good" DV compressors and "bad" (i.e., more optimal or less for specific sources). And we all know that there were/are plenty of crappy cards for lossless capture. Other than the fact that for some users there is no other choice than DV, I don't see the point in preferring it. Even if performed with very low loss, VHS->DV color looks weird to me, it makes tape noise and defects more difficult to repair, and it almost always has a 'toon look to it with rough sparkles and bristles on high-contrast edges that persist like the devil. So you get re-encoding loss as well as more loss through more filtering. VHS is crappy enough without making it more difficult.
Last edited by sanlyn; 19th Mar 2014 at 08:16.
-
Because they already have a DV capture device? Because DV capture is much easier than raw YUY2 capture? Because there are less A/V sync problems with DV? Because DV gives smaller files? Because they believe their $200 ADVC-110 must be superior to a $50 YUY2 capture device?
-
All true. Thank the saints I'm not stuck with one of those $50 cards.
Last edited by sanlyn; 19th Mar 2014 at 08:17.
-
All of the above except the last one.
At the time I started, you can add "because I knew I could capture DV but didn't think my comparatively low-spec PC would keep up with lossless", and "because it's trivial to edit DV properly (you can preview edits+effects it in real time!) and "losslessly" (no generation loss with simple edits) on a low-spec PC".
Cheers,
David. -
Thank you. I'd agree.
I'm looking for some difference that's visible in the final output though (i.e. restored and encoded for viewing somewhere - DVD, YouTube, BluRay, whatever). I think upscaling to HD might just sometimes reveal a small difference. Maybe. I think even for BluRay the final encoding would create a much bigger difference.
Cheers,
David. -
dianedebuda has posted samples from her Sony TRV480 (VHS passthrough and Hi8) that show chroma macroblocking. (There also doesn't seem to be an option to turn off the chroma NR, but that's a separate issue.)
In viewing these samples I've noticed that AVISource is giving me YV12 with NTSC DV sources even though I have Cedocida installed! How about you? Every instance of "dvsd" in my registry is related to Cedocida so I don't think another codec is taking its place.Last edited by Brad; 22nd Jan 2014 at 10:30.
-
-
I thought about that, but I need a good test to see whether it isn't then just doing 4:1:1 -> 4:2:0 -> 4:2:2. It should be doing 4:1:1 -> 4:2:2 regardless of having YV12 checked since I also have YUY2 checked.
-
-
Well that's dumb! Anyway, I just confirmed it before reading your most recent post.
Encoded this with Cedocida:
Code:ColorBars(720,480,"YUY2")
Code:A = AVISource("ColorBarsDV.avi").ConvertToYUY2(interlaced=true) B = AVISource("ColorBarsDV.avi",true,"YUY2") Interleave(A,B)
Last edited by Brad; 22nd Jan 2014 at 11:40.
-
Me too. I did this:
Code:ColorBars(720, 480, "YUY2") SeparateFields() AssumeFrameBased() SeparateFields() Interleave(SelectEven(), SelectOdd().MergeChroma(Invert())) Weave() AssumeFieldBased() Weave() Trim(0,29)
-
Why? It's delivering MPEG-2 compatible interlaced YV12 by default. That's what most people need. It's not a bug.
I can see the argument that YUY2 is far more faithful for NTSC DV (and slightly more faithful for PAL DV), but if the author changes the default behaviour now, they will break lots of AVIsynth scripts which assume YV12 input because that's what they've always received. Whereas you only need to add a few extra characters to your script to get what you need.
You could more persuasively argue that VirtualDUB and AVIsynth defaulting to progressive chroma rather than interlaced chroma is dumb, given that this assumption causes major damage when wrong, whereas the converse assumption causes less major damage when wrong. Not to mention that there is far more interlaced-encoded video in the world than progressive-encoded video. But it is the way it is. You can't change defaults once something is so widely used.
Cheers,
David. -
I'm not sure what your "most people" is based on. Possibly the idea that most people are just using the codec to open their DV files in an MPEG-2 encoder without doing any processing?
It's downgrading my video without telling me. A note in the dialogue box that it will prefer YV12 output even for NTSC would be sufficient, though I would prefer a tickbox to prefer NTSC->YUY2 while leaving PAL->YV12.
I can see the argument that YUY2 is far more faithful for NTSC DV (and slightly more faithful for PAL DV), but if the author changes the default behaviour now, they will break lots of AVIsynth scripts which assume YV12 input because that's what they've always received. -
Even if they are processing, unless they're upscaling, it's hard to see how they can keep the "extra" chroma resolution. All consumer video formats are 4:2:0/YV12. The bottleneck is usually earlier though - all the decent AVIsynth deinterlacers are 4:2:0 only.
It's downgrading my video without telling me. A note in the dialogue box that it will prefer YV12 output even for NTSC would be sufficient
In a way it is telling you - you just never asked. It can't possibly hide the fact...
info()
see?
(sorry, I know you know this - and if you care about this for some reason, you must be kicking yourself that you didn't check already - we all get caught assuming things though.)
though I would prefer a tickbox to prefer NTSC->YUY2 while leaving PAL->YV12.
Well, change logs do exist for a reason. Not my fault if someone upgrades without reading what they are changing.
Programmers are, rightly, very wary of changing default functionality.
Cheers,
David. -
NTSC DV isn't a consumer video format?!
If you really don't want any downgrading, you need YUY2 for both.
It doesn't sound reasonable though. Anyone who wants this new functionality can already get it by adding a few characters to their script.
"If I got a paper cut, that’s a tragedy. If you fell down an open manhole and died, that's comedy." -
Go on then, consumer video delivery format. Or, frankly, legacy video format.
I would welcome a visual explanation.
http://www.mir.com/DMG/chroma.html
...I'm sure it made sense in the all-analogue world it was born into.
Cheers,
David. -
If I've got this right:
PAL DV -> 4:2:2 = adding 0Cr + 1Cb to create 0CbCr and 1CbCr (no loss)
PAL DV -> MPEG-2 siting = adding 0Cr + 1Cb to create 0CbCr and 1CbCr, then performing 1/4 sample shifting to create "0.25"CbCr and "0.75"CbCr (lossy scaling)
Is that on the right track? -
Here is the developer's response:
As far as I can remember, the output format is requested by the application.
I.e. the application asks the codec if it can decode into YV12 (or any other format) and the codec can accept or deny.
Since YV12 is a supported output format Cedocida accepts this, unless it is configured to *not* use YV12. Therefor you can resctrict the usage of the allowed output formats by means of the settings. -
You may have seen it already, but a user posted a sample from his ADVC-300 that shows mosquito noise I found to be shockingly obvious.
I've done a "proof-of-concept" with a test pattern recorded on VHS. The Cedocida DV conversion of my lossless capture has dancing mosquito edges. They are still visible in an x264 encode, while an encode of the lossless file doesn't show notable mosquito noise.
I need to see if I have any real-world footage that shows the same effect. -
I wasn't reading this forum when the initial posts were made, but the underlying concept that DV is the cause of any significant mosquito noise artifact is very hard to believe. Although any DCT compression (which is what DV uses) is certainly capable of creating mosquito noise if the compression is turned way up, I don't think that is what is going on here.
I looked at the "sample.avi" video in the thread linked to above, and I think perhaps people are confusing the standard VHS "snow" noise with compression artifacts. The sample appears to be VHS captured on "bargain" videotape (note the large numbers of dropouts). If you look at the green trees in the forest on the far shore, and zoom in while playing, you'll see a huge amount of snow noise. This actually indicates that the capture was done properly, with the "edit switch" turned on, thus defeating the VCR's smoothing circuitry which is designed to suppress all this noise, but which also kills detail.
You can reduce this typical VHS noise by averaging several captures, but having pioneered this concept over a decade ago (My "ultimate" VHS tape restoration recipe) , after trying it a few times I gave up on it, not only because of the 2-3x amount of time needed to capture each tape, but also the difficulty in lining up captures, especially since it is quite common to have each capture "off" by one field, something which completely invalidates the process.
(BTW, since I posted that eleven years ago, I learned a LOT about this process, and some of the things I was doing back then, I have since found out are less than optimal).
Back to sample.avi.
I did zoom in on the tree branches and I do see the noise. However, I am reasonably certain that is not noise which was created by the compression process, but is instead simply another example of the noise which is so evident in the green trees.
For my work (I've captured close to 1,000 hours of tapes over the past decade), I treat VHS video, captured via the DV codec embedded in my VHS-DV VCR, with a series of simple AVISynth filters, with the settings turned down as low as possible ("less is more"). These filters get rid of the usual VHS/NTSC chroma problems (the issues with reds); the rainbows; the chroma noise and, of course, the snow.
I still haven't found a good solution to the residual sharpening artifacts which, even with the HQ circuitry bypassed, are still an issue. DeHalo just doesn't work, although I sure have tried.
Bottom line on this clip: no mosquito noise here, and I sure would not recommend wasting time and disk space capturing to uncompressed. DV is a great codec for this application, and it is what I would recommend that everyone use. There are simply too many other much more important issues to consider when digitizing VHS tapes, and editing using the DV codec is so fast, efficient, and simple. -
I'm interested if you've found dancing mosquito noise vaporeon800.
-
Not sure what to tell you. It clearly looks like mosquito noise to me. Blocking is also evident in the trees, in still frames.
If you'd like, add a sharpening filter and compare the result to a noisy lossless VHS capture with the same sharpening.
If you're talking in general, it's very easy to prove for yourself that DV creates mosquito noise on challenging non-VHS material. -
It's pretty similar to a series of ~100kB 720x480 JPEGs. Pixel-sharp detailed images can't be visually losslessly encoded like that, especially if you examine the results upscaled. If there's complex motion or noise, DVD looks even worse.
VHS material is far from pixel sharp, so it's interesting if there's any problem, and surprising if there's a visible difference* after restoration and encoding to the final format.
* - OK, if you freeze frame, upscale and switch back and forth you'll probably see some kind of difference - different MPEG-2 or x264 encoder settings will give a difference under those conditions.
Cheers,
David. -
Presently I have an EP capture of a TV show's end credits: static white text with drop shadow on a motion background.
Lossless > DV > x264: clear mosquito noise
Lossless > DV: clear mosquito noise
Lossless > x264: mosquito noise...?
I haven't found animation that trips it nearly as much. I suppose more vertical filtering is used there to avoid twitter.
Similar Threads
-
Capture lossless but also capture closed captions?
By Brad in forum CapturingReplies: 0Last Post: 21st Mar 2013, 12:07 -
Capture Lossless with WinTV-PVR-150
By rudolf016 in forum CapturingReplies: 50Last Post: 28th Feb 2012, 11:39 -
Recommend a <$100 capture card for analog to lossless AVI codec
By Cheesyii in forum CapturingReplies: 8Last Post: 27th Dec 2011, 08:49 -
VHS to DVD (editting or lossless conversion?)
By fvnesscafe in forum Newbie / General discussionsReplies: 2Last Post: 20th Sep 2010, 22:37 -
Modern consensus on best sub-$250 lossless AVI-capable analog capture card?
By Mini-Me in forum CapturingReplies: 31Last Post: 9th Jul 2010, 05:18