![]() |
Interlacing from TBC has no combing?
Hi all,
Through a process of trial and error, I'm about ready (I think) to start my workflow in earnest. But there's one last thing that's bugging me. I'm currently sampling my video from a VHS deck with built-in TBC, and through another TBC supplied by LordSmurf, to an ATI 600 USB. I'm using VirtualDub for Capture. I'm using Lagarith Lossless compression because I discovered during experiments that Huffyuv glitches in Premiere Pro when I'm doing my final edit (fade ins/outs etc - stuff that VirtualDub can't do). Anyway, I'm wondering if anyone can supply clarification on interlacing? If I watch my raw AVI in 1:1 in VLC and go through it frame by frame, I don't see any combing. And if I bring up the file in MediaInfo, it doesn't have an entry for 'Scan Type' (whereas an MPEG2 file has 'Lower field first' and an H264 has 'Progressive'). Thing is, I can't see where any conversion to a deinterlaced format would be taking place - unless the ATI is doing it on the fly? Assuming, then, that I have deinterlaced files at my raw stage, can someone explain why I'd then RE-interlace them for inclusion on DVD-Video discs? Couldn't I just keep them Progressive - especially since the final movies will be played on a DVD player but watched on LCD TVs? Any tips or advice gratefully received. Regards to all, Discy |
You can't always go by MediaInfo in this regard. It often displays interlaced factors incorrectly. It just does the best it can when what it gets, especially since many videos have incomplete metadata. It's possible that you have a physically progressive video that has been encoded or recorded with fake interlace flags, or a video that uses 3:2 pulldown flags (a mix of progressive and interlaced frames if telecine is hard-coded, or a video of progressive frames with soft-coded pulldown flags). It's difficult to say because we can't see your video from here. But if the source is VHS, it's physically interlaced.
Quote:
Quote:
Quote:
Neuron2_How To Analyze Video Frame Structure.zip Be careful about using then term "raw" when referring to video. "Raw" doesn't mean what you think it does. But in this case we know what you mean to say, so take that advice with a grain of salt. |
Quote:
Quote:
I know that H264 has to be Progressive - that's how Adobe Premiere Pro outputs it anyway. My query was whether, if for some reason the initial import files are not interlaced, I should still interlace the DVD Video MPEG 2 files or not? Quote:
Neuron2_How To Analyze Video Frame Structure.zip Be careful about using then term "raw" when referring to video. "Raw" doesn't mean what you think it does. But in this case we know what you mean to say, so take that advice with a grain of salt.[/quote] Thanks for your reply. But I'm not really any the wiser on whether there's a concrete, easy way to find out whether or not my files are interlaced or not? -- merged -- Incidentally, if I import one of the initial capture files into Premiere Pro and ask it to Interpret Footage, its analysis comes back saying 'Progressive Scan' so No Field Order. I can't quite work out how VHS footage going from the SVHS socket of my JVC deck to the ATI USB 600 and then through VirtualDub would not be interlaced, I guess...? |
Since your mind is decided on all of the above, it has me wondering what your question is. Not much more that anyone can advise without a short sample of what you're working with. A sample is worth much more than a thousand words. It seems a bit sad that you're encoding before doing any real cleanup of VHS, which you can't do with Adobe except for color correction. Adobe doesn't resize or deinterlace well anyway, so it's probably a plus that you don't have to do any of that. BTW, h.264 can be interlaced or progressive, and can be telecined. I'm surprised that at Adobe's price point you have so little flexibility with h.264. After all, many h.264/AVC BluRay formats are interlaced or telecined as required by official BluRay spec. Not all BluRay formats are progressive. For example 29.97 NTSC and 25fps PAL at 1920x1080 or SD 720x480 or 720x576 are required in BluRay encoding to be interlaced or telecined. At BluRay 1920x1080 only film speeds (23.97 or 24 fps) can be progressive.
Quote:
You're also might be confusing interlaced playback flags with physical interlacing. A frame can be described as interlaced or as having interlace playback flags, but if both fields appear to be identical images, the frame is not physically interlaced. "Interlace" infers that the frame consists of two interwoven fields from two different instances in time, those instances being 1/50 (PAL) or 1/60 second (NTSC) apart. Truly interlaced 25fps or 30fps frames play 50 or 60 different field images per second. Physically progressive non-interlaced video when played on interlace media players (such as a VCR with its video heads) will play 50/60 fields per second but every two fields will be duplicates, so the same image is captured as two duplicate fields in one frame. If you deinterlace non-interlaced video in an editor you'll see two identical images with every deinterlaced frame. If you deinterlace interlaced video in an editor you'll see two different images with every deinterlaced frame. |
Quote:
(24fps film on NTSC is a bit more complicated). |
Thanks for the advice. My mind isn't decided upon anything, beyond the end goal - an H264 file that plays nicely on my Kodi box via my LCD TV, and the best-quality DVDs that I can provide to the original tape suppliers. Totally open to advice and suggestions from those with vastly more experience here. I've just become confused because I thought that the mix of VHS --> TBC --> ATI USB 600 --> VirtualDub AVI would give me an obviously interlaced file, and it hasn't.
How's best to supply a sample here? If I do so, perhaps someone might be able to suggest some of the more obvious cleanup processes that I could apply to it. :) Regards to all, Discy |
Quote:
Quote:
Open the AVI in VirtualDub and use its scroll and edit controls to create your selection. In order to prevent unwanted processing or colorspace conversion when saving the file, click the top main-menu "Video" item, and in the drop-down menu select "direct stream copy". Then click "File.." --> "Save AVI", give your sample a name and location, and save the output. Sign into the forum and go to this current thread to make a new reply. Just below the last post, you'll see the Quick Reply window. You will have to click on the "Go Advanced" button at the bottom of that reply window in order to access the "Additional Options" box if it doesn't appear below the reply window. In the Options window you'll see a left-hand button for "Manage Attachments". Click that button and the upload dialog will appear, which is pretty much self-explanatory. Click the dialog's "Browse" button, locate and select your sample on your computer, and then click "upload". This procedure is general SOP for most forums of this type. Don't forget to enter a message or remarks you want to make in the reply window. Also, this forum runs a virus check on submissions, so give your sample plenty of time to upload. When upload is complete, close the dialog window, complete your reply, and click "Submit". Wishing you the best in your projects.... |
2 Attachment(s)
Thanks again for all your help. I've attached a couple of Direct Stream Copy from my Lagarith VirtualDub Capture files, as suggested. All advice gratefully received!
Kind regards, Discy |
1 Attachment(s)
Thank you for the two samples. Well done.
I'll give them a closer look and see what can be done smooth out some rather ragged lines and edges. Meanwhile, I can say for certain that the two samples are interlaced. You can verify this at home by opening the video in VirtualDub and loading VirtualDub's built-in deinterlace filter. Configure the deinterlace for "yadif" on the left-hand side of the dialog, and on the right-hand side for "Double frame rate, top field first" (which means that no fields will be discarded). You can then cruise through the video using the frame-by-frame scroll icon in the lower left panel. As you scroll one frame at a time, the left-hand "Input" window will show the same image twice but the right-hand "output" panel will show two different images in succession with each click. This demonstrates that each frame contains two distinct images from different instants in time.You can also note along the bottom of the VirtualDub window that when the deinterlace filter is activated the frame count in the first snippet sample changes from 142 original frames to 284 deinterlaced images. The image below shows how I set up the VirtualDub yadif deinterlace for this test: http://www.digitalfaq.com/forum/atta...1&d=1534691605 |
That's really useful info - thanks. And yes, I've now performed that test in VirtualDub and seen the every-other-frame movement and the increased count.
Interested to hear how you think I can clean things up. Kind regards, Discy -- merged -- Incidentally, one initial improvement that I may be able to make is within Premiere Pro itself. There is a setting for each clip you import, under Clip>Modify>Interpret Footage, and the resulting dialog box has a 'Field Order' setting. It has been set to 'Use Field Order from File', which Premiere Pro inteprets as 'No Fields (Progressive Scan)'. Am I right in thinking that interlaced footage would mean I should change that to either Lower Field First or Upper Field First? I'm wondering now if Premiere Pro has been starting from a poor base point, given that it doesn't appear to think the raw footage is interlaced and I've allowed it to assume that... Kind regards, Discy |
Your video samples are interlaced, top field first (TFF). It's immediately obvious when you work the file in VirtualDub and Avisynth.
You've just encountered one of many reasons why this forum and others don't recommend Adobe Premiere as a restoration and repair platform. |
Yeah, I'm aware it's not popular around these parts...
How is it obvious immediately, by the way? A technique that I could use on other files? Regards, Discy |
Quote:
But it's an NLE, not a restoration tool. It, like all other NLEs, has a poor understanding of interlace, and the "restoration" aspects are very rudimentary at best. Besides color correction. It does that very well, especially in the past decade where Premiere got more Photoshop-like in that area. |
Yeah, the workflow is so straightforward in it that the basic stuff that I need to do - fade in/out (vid and audio), and chapter markers for Encore, can be completed in barely a minute. Easy to save presets for output into MPEG2 and H264, too.
I am curious about the restoration aspect and what can be achieved, but I saw somewhere else how someone on this forum had spent 90 hours retoring 90 minutes of video. I simply have to be realistic and say that's not going to happen. Because if that was the time involved in each recording (I have at least 50 to get through), I simply wouldn't have considered doing it in the first place. I am interested in how avisynth (or virtualdub) can do a resizing job, mind you. I hate VHS noise around the edge of the frame, but I also hate having black lines anywhere around the picture on my television... Regards to all, Discy |
6 Attachment(s)
Thanks again for the samples.
Quote:
Some nominal cleanup in Avisynth or VirtualDub can get visibly better results without too much trouble, using a good VCR and capture setup. It's slow at first because it's not as automated as, say, a typical NLE. And no NLE has the kind of controls you get with restoration apps (at least, no NLE that you and I can afford!). For your samples I used a fairly common set of repair tools, although I could have used perhaps one or two less, and it did take some extra time because of faults in the tape sources. The faults are not related to your capture process but are apparently embedded in the source. Overall on your end the captures were well done. Quote:
http://www.digitalfaq.com/forum/atta...1&d=1534738334 The numbers overlaying the above frame instantly analyze luma and chroma factors. Here, two white arrows point to luminance that exceeds a value of y=235. The max value here and in other frames from these samples is y=255, which is as high as the graph can read. Y=255 is too hot for TV. YUV luminance at safe levels would be in a range of y=16 at the dark end, to 235 at the bright end. Why? Because the YUV video storage range of y=16-235 gets expanded in RGB to RGB=0-255. If YUV brights are already 255, those values will be clipped (ignored) by a system that can't display anything brighter than RGB 255. In NLE processing, if y is already 255, the NLE will clip many bright values beyond recovery when it expands YUV to RGB for the usual NLE processing. Out of range darks and brights get destroyed, and details are lost. Another thing the numbers show is that there are no dark values below y=16. That's OK, but it does illustrate that the ATI 600 clips all blacks lower than y=16 (aka "super-blacks). Testing shows that it does so before the signal reaches the capture software. If you did have darks below y=16 it would be possible to recover some of the details using tricky YUV processing. But once darks are clipped they're like clipped brights -- no recovery possible. In this case, clipping was mild and easily corrected in Avisynth. Histograms in Avisynth and VirtualDub tell a story about how colors are behaving and what can be done about it. The image below contains three graphic analysis tools that are similar to those found in Adobe Premiere. I'm sure you're familiar with similar Adobe tools considering how much you paid for them. Below, there are three analysis graphs: an Avisynth YUV Levels histogram (left), an Avisynth color vectorscope (middle), and a VirtualDub RGB parade-style histogram (right). These were taken from your Snippet #1 avi. http://www.digitalfaq.com/forum/atta...1&d=1534738393 In the left-hand YUV histogram, yellow arrows point to the left and right edges that mark the "safe zone" for YUV luminance between 16 and 235. At the left end, darks are sharply cut off at y=16. The right arrow shows that the white luma band flows into the unsafe zone. The middle graphic is a vectorscope showing that yellow is slightly oversaturated. This, too, was easily corrected. The Snippet #1 shots had a visible yellow color cast. The yellow cast can also be seen in the right-side RGB histogram, where red and green arrows point to color lines climbing up the right-hand wall (note that red + green = yellow). You can also see in the RGB histogram that blue is shoved toward the left (dark) end, so there's a deficit of brighter blues that makes things look too yellow, but it's easy to correct. Then there was some odd garbage in Snippet #1 that didn't appear in Snippet #$2: http://www.digitalfaq.com/forum/atta...1&d=1534738531 Notice the odd cross=hatch and dot pattern on the auto surface as well as bright "sparkles" and other detritus on the side mirror and on other edges and contours. Welcome to the world of mosquito noise and edge ringing, which are strictly digital thingies, not analog. So this segment of your VHS has a digital mastering past, not to mention some sloppy interlacing. Yes, there are filters that can clean this stuff. But in this case you'd have to use settings so strong, there wouldn't be much video left to watch. It wouldn't be worth the effort. Besides, it goes by so fast in playback that no one would notice. The QTGMC filter that I used did manage to smooth some of it. This problem junk didn't occur in Snippet #2, but Snippet #2 did have some aliasing. Below, I couldn't help myself. The greenish color cast in Snippet #2 was kinda ugly, really, so I did some corrections with RGB colors in VirtualDub. One of the color tools was gradation curves, just like the expensive one in Adobe Premeiere, Photoshop, and After Effects. original color (top image) and color fix (bottom): http://www.digitalfaq.com/forum/atta...1&d=1534738590 Quote:
As for resizing, Avisynth can resize cleaner and sharper than Virtualdub, and both can do it better than Adobe and with far less damage. With your two AVi samples, a 4:3 SMPTE image from tape fills only 75% of the actual frame (16:9 and DV video is different). The actual picture area from VHS is almost always 704 pixels wide on a 720-wide frame in both PAL and NTSC. Capturing at 720-wide ensures that you'll get the full image with a workable aspect ratio. You could capture at 704-width if you want, but you'll still have side border pixels and will end up with a smaller image if you remove them. So what the experts and purists normally do is dispose of unwanted side pixels (note that side borders rarely contain "noise", unless something's wrong with your playback. It's the bottom borders that have head-switching noise). In Avisynth you remove unwanted border pixels, then replace them with new black ones configured to center the image in the frame. This maintains the original image, the original frame dimensions, and the original (i.e, correct) image aspect ratio. In the case of your two samples, I removed unwanted pixels from all four sides. This left us with a 688x568 frame in YUY2. That frame size isn't exactly the 12:11 pixel ratio to get a 4:3 display on playback. I then resized the height to 576 and resized the width to 704 instead of 720. It happens that 704x576 is valid for PAL 4:3 video. You won't get exactly 4:3 on playback, it will be about 0.2% off -- but who can notice that? There won't be black lines around the physical frame. But, then, there are always black lines in frames that don't fill wide screens, but they blend in with the blacks that the tv puts there to fill the frame. So resizing to replace border pixels is something rather pointless with modern tv's, and is also a lossy proposition. Resizing always costs. Always, no matter how it's done. In this case the resize was small and Spline36Resize is about as clean as you get these days without spending seven figures for software. It's always better to let your hardware players (disc player, TV, etc) do upsampling. They're better at it than you'll ever be with PC software. In making the attached mp4's I joined Snippets #1 and #2 together as one video. There are two versions, a "25i" interlaced and a "50p" progressive. The 25i still shows remnants of sloppy mastering and grubby edges in the originals, but much less so after filtering, and the progressive version obviously has a smoother look but doesn't have quite the temporal pace of the interlaced. Both play pretty well and will look brighter on tv than on a PC. You'll notice that the motion noise and buzzing edges of the originals are just about gone. Posted below is the Avisynth script I used for both videos. I can also post a .vcf file for the VirtualDub filter settings used to correct the color cast in Snippet #2, if you wish. Code:
vidpath="E:\forum\faq\discmeister\" |
Wow, lots to digest here. Many, many thanks.
It looks like at the very least I should be doing a colour check on all of my capture AVIs to make sure they're within the boundaries you specify. How do you get up the luma and chroma overlays like you've illustrated? Also, is this something I could have avoided in the first place by adjusting the Levels in VirtualDub for capture? You're crediting me with too much knowledge of Premiere Pro, I'm afraid. I buy the whole CC suite on a monthly sub for lots of other reasons - Photoshop and InDesign among them - so I'm not that experienced beyond the basics that I've already outlined in this thread. I need to get my head around the resizing stuff. I can work out how many pixels to remove by doing a 'dummy' crop in VirtualDub - then get AviSynth to do it for me, right? Long ago, at the very start of this process, I did experiment with stretching captures to fill a 16:9 box in Premiere Pro (I know, I know...). It looked awful and something at the back of my mind told me I was wrong for adjusting the aspect ratio - so the plan is for the output files to be 4:3, yes. If someone (me, probably) wants to get their media player or DVD player to bodge the stretch to fill a TV screen, then that's fine, because it's on the fly and doesn't hurt the original output file. Am I right in thinking, though, that the workflow would be something like the following? Capture to AVI with Lossless Compression --> Colour-correct and resize via AviSynth, outputting back to AVI with Losseless Compression --> Do basic fade in/out and chapter marking in Premiere Pro before sending to... --> Adobe Media Encoder for encoding to MPEG2 and H264 files. Thanks again. Hugely impressive work and has definitely persuaded me that it's worth trying to make the best of these old tapes before they get committed to H264 and MPEG2. Incidentally, they are pre-broadcast tapes provided to one of the production team from within the BBC back in the nineties. I'm sure he'll be interested to hear your remarks on mastering! :) Kind regards, Discy |
Quote:
Avisynth and VirtualDub install help files. The internet has tons more on Avisynth via its wiki. Ask Google about "Avisynth" plus the name of a function such as "histogram", and you get this page: http://avisynth.nl/index.php/Histogram. In learning to read histograms as a guide to photo and video correction, I encountered many free internet tutorials about Adobe's tools. For instance, these two guides apply to photo and video alike: Understanding histograms Part 1 and Part 2 http://www.cambridgeincolour.com/tut...istograms1.htm http://www.cambridgeincolour.com/tut...istograms2.htm VirtualDub has several filters that mimic fancier tools in Adobe and Vegas. Quote:
Code:
ColorYUV(Analyze=true)Quote:
There is an updated and advanced VirtualDub capture guide that discusses setting levels, using the histogram, and other frustrating details: http://www.digitalfaq.com/forum/vide...-settings.html. Posts #3 and #4 have sample photos and other details about reading the histogram, proc amp settings, temporary crop, etc. Quote:
For setting up border work I use a handy VirtualDub GUI filter called BorderControl, then adjust borders in Avisynth. You can get BorderControl here: BorderControl235.zip. The only downside to that filter is that you can't save its settings with a VirtualDub .vcf file. Well, you can't have everything! |
Yet more to digest here! :)
One question (well, lots of questions, but I'll get this one out of the way). You keep mentioning DeInterlacing. Would the file in the workflow I described be transformed from an interlaced one into a deinterlaced one during the process 'Colour-correct and resize via AviSynth, outputting back to AVI with Lossless Compression'? If so, I then have a deinterlaced AVI file that I can import into Premiere Pro - for outputting as a deinterlaced H264 file but, potentially, a REinterlaced MPEG2 file for DVD? Sorry, I'm being a pain. But you've really got me thinking here and I'm going to start playing with AviSynth to do some basic stuff, at least. Discy Oh, and if you do have that vcf file on the color cast correction, that'd be very useful to see... |
1 Attachment(s)
The 50fps deinterlaced video was re-interlaced this way in Avisynth:
Code:
AviSource("drive:\path\to\progressive_vid.avi")How to use a VirtualDub .vcf file: A .vcf contains filter and settings as well as any compression you've set up. The attached .vcf sets filters only, so unless you change something the output will be the default uncompressed RGB. Set color depth and compressor before you save the output. I used Lagarith YV12. Save the .vcf file in a folder by itself, not in the plugins folder. When you want to use it in VirtualDub, Click "File.." -> "Load processing settings", locate and select the .vcf, and click OK or "Open". The filters will load with the settings I used. Note that if you have other filters loaded in VirtualDub, the .vcf will overwrite them. The two filters I used were ColorMill and gradation curves. If you don't have them, they've been attached in earlier posts here: ColorMill21.zip and GradationCurves.zip. Place the .vdf filters in your VirtualDub plugins folder. If I recall, the help files that came with those filters are also included. If they are placed in the plugins folder as .txt or .html files, clicking "Help" in the filter's GUI will show the help content. |
Okay, so I've decided to be realistic about this. I have to offset the desire for perfection with a) the likelihood of it being achieved and b) the amount of time it would take to even try. So I'm going to go for the following...
AVI Lagarith files captured in VirtualDub via ATI USB 600. Check for contrast, gamma, saturation and hues - fix as required, in AviSynth Crop to remove black bars at either side of AVI file, and head-switching noise, in AviSynth Resize that to 704x576, in AviSynth. Output back to an AVI Lagarith file. What I'm not sure on is whether I output an interlaced file or not. I have to deinterlace it at the start for AviSynth to do its magic, right? If that's the case, I then have to decide whether to interlace it again or whether to drop it into Premiere Pro for final edits as a 50fps AVI Lagarith file... Regards to all, Discy -- merged -- I'm beginning to work my way through this. I've set aside all of Monday to just play with AviSynth and see if I can do the basic colour/gamma/contrast check and cropping that I want to do. Looking at your script, I understand a fair amount of it (!) - the likes of Crop and AddBorders will just be adjusted for my own files, depending on what the original AVI is like. It would seem to make sense to smooth excessive combing where required, too. I'm confused, though, on why you keep changing color modes - first to YV24, then to YV12, then back to YUY2 (like the original AVI) and then RGB32 (for VirtualDub filters? But haven't you adjusted the levels already in the script?). Also, do you think the final output file that I should aim for should be interlaced or not? If it's been deinterlaced properly by AviSynth (because that is seemingly required for some of the functions anyway?) then wouldn't it be better to output it as a deinterlaced AVI? I could then import this into Premiere Pro for the final fade ins/outs and it'd hopefully result in a better export to H264 - which is, after all, the file that I'll be watching myself. The MPEG2 DVD file could then be TFF via Adobe Media Encoder (MPEG2 DVD has to be interlaced, right?)? Just checking. Sorry for so many questions. Kind regards to all, Discy |
Having to produce a 50fps deinterlaced version and a spec-compliant 25fps interlaced DVD does involve some extra steps. That's especially true if your h.264 playback system isn't smart enough to work with interlaced video and can't read more universally playable formats like DvD or Bluray containers. Rather than edit and apply special effects twice in Adobe, and tolerate that Adobe really doesn't re-interlace well, I'd suggest applying effects to your progressive version and saving it as lossless progressive Lagarith YV12. You can then use Avisynth to re-interlace your progressive version, and thus end up with both versions ready for encoding.
That's the way I've been handling family videos that need one version for DVD and another for Facebook and other web postings. My external playback setups simply play the MPEG encodings then same way any DVD player plays MPEG. I don't need a progressive version for external playback. Below, I'm breaking down the earlier script to answer some questions about it: vidpath="E:\forum\faq\discmeister\" AviSource(vidpath + "1000 Lakes snippet 2 for DigitalFAQ.avi") "vidpath" is something I invented by simply stating it and following it with an equal sign and a text value. There is no such thing in Avisynth as a vidpath, it's a word of my own conjecture. The statement creates a place in memory called "vidpath" and assigns to it a character string with a value of "E:\forum\faq\discmeister\". In the next line, the "+" character is a concatenate operation that joins two character entries, one of which is the character string that was assigned to "vidpath" and the second part of which is another character string that I specified as "1000 Lakes snippet 2 for DigitalFAQ.avi". Put the two strings together, and what the AviSource decoding function sees is, effectively, this: Code:
AviSource("E:\forum\faq\discmeister\1000 Lakes snippet 2 for DigitalFAQ.avi")Code:
vidpath="E:\projects\summer2018\sister\homevids\"### --- Remove and configure new borders ----# Crop(16,2,-14,-6).AddBorders(16,4,14,4) ### --- contrast, gamma, hue, saturation issues ----# ColorYUV(cont_y=-20,off_y=-8) Levels(20, 1.2, 255, 16, 250, dither=true, coring=false) Tweak(Sat=0.90, starthue=165, endhue=180, dither=true, coring=false) ConvertToYV24(interlaced=true) SmoothTweak(hue1=5) Crop(),AddBorders(), ColorYUV(), Levels(), and Tweak(0 are all built-in functions that work in several colorspaces, one of which is the video's original YUY2. SmoothTweak(), however, is a function in the external SmoothAdjust plugin. Why its designer decided that it wouldn't work in YUY2 but would work in YV24 and others is a mystery to most people except the geeks who look inside these things. The two colorspaces aren't quite the same, however, especially in the way their chroma pixels are arranged. Rather than get into a discussion that will keep us here until late 2019, take Avisynth's word for it that YV24 is a "planar" configuration and YUY2 isn't, and YV24 has higher color resolution. If you're going to use SmoothTweak to adjust hue and move some colors around, making sure along the way that you do some ordered dithering to close gaps that occur in the spectrum when color is re-interpolated by stretching or shrinking or whatever, so that SmoothTweak will have smoother results working in YV24 than in colorspaces with lower chroma resolution. in the final analysis, frankly, you wouldn't notice a vast difference between lower or higher color resolution in such a filter, unless you were really picky about cleaning up color in so-so sources such as VHS. It's not so much "better" as it is "less damaged". In any case, SmoothTweak doesn't work in YUY2. Now we come to something that I think I just noticed, although it doesn't matter a great deal: ConvertToYV12(interlaced=true) AssumeTFF() QTGMC(preset="medium",EZDenoise=8,denoiser="dfttes t",ChromaMotion=true,border=true,\ ChromaNoise=true,DenoiseMC=true,GrainRestore=0.3,S tabilizeNoise=true) ### --- smooth excessive combing ----# Vinverse2() The posted version of QTGMC that most people find for download and are accustomed to with its big original support files package is version 3.32 (https://forum.doom9.org/showpost.php...59&postcount=1). This version and its support files work in YV12 only. Yes, there are newer versions that work with other color spaces and get fancier, but they seem to get updated every 15 minutes. And the newer ones are slower. After QTGMC comes the Vinverse filter to help reduce excessive combing when re-interlacing. Vinverse used to be YV12 also, but vinverse2 (I suddenly remember) also works in YUY2. The filters that follow Vinverse2 in the script work in YUY2 as well, which has higher color resolution than YV12. So, what I could have done was convert to YUY2 before using Vinverse2 and then just keep things that way. No harm done, just one of those things that didn't occur to me at the moment. ###---To RGB for VirtualDub filters ---### ConvertToRGB32(interlaced=false,matrix="Rec601") The RGB conversion is for snippet #2 and the Virtualdub color filters. Snippet #1 didn't use VirtualDub color correction, so the conversion wasn't necessary for snippet #1. But note that color conversion functions want to know whether the source is interlaced (yes, indeed, it does matter!). Here's a caution: because you're doing mod work in Adobe later, your videos will be converted to RGB by Adobe anyway. Advice: let Avisynth make that conversion. Adobe doesn't make nice with color conversions the way Avisynth does (and in some cases, Virtualdub can get a little sloppy sometimes as well, mostly with YV12 -> RGB). Yes, there are a few tricks to this stuff. That's why I browse every forum thread I come across, even if I have nothing to do with what's going on in them. You pick up a ton of information that way. |
Hi there,
So I spent most of yesterday playing around with AviSynth and something called AVSEdit Plus, which I found a couple of good demo videos for on YouTube. I've managed to get the right plugins etc installed to be able to cut and paste your commands for my sample videos and get AVISynth/VirtualDub to replicate them with files on my own machine. Simple adaptation has been possible too - so I can crop/border/resize as required. I'm frankly keeping most of your levels settings unchanged because, so far, they appear to be working. The end result takes a fair while - I'm seeing about 8fps on processing - and the files are huge (I guess that's because they're 50fps - would that be right?). But the results are considerably cleaner than what I've seen before. So I'm going to stick with that as a workflow. Outputting to H264 from Premiere Pro gives me an 800Mb-odd file for 26 minutes of content, in quality that I'm really pleased with (I adjust white balance and use some of the analysis graphs to help level out RGB in Adobe). Just have to sort out how I output from Adobe to MPEG2 now. I have to avoid Premiere Pro's built-in MPEG2-DVD setting because it is locked to 720x576 (despite the fact that Adobe's own Encore will accept 704x576 as a valid size, allegedly). So I'm looking at MPEG2 in 704x576, not muxed so I get an audio file and a video file. The question, I suppose, is whether I keep it progressive or make it TFF/LFF? Any suggestions? Kind regards, and thanks again for all your help with this. Discy |
Bit of an update - I have discovered is that Adobe Encore will not accept a 704x576 file as DVD-compliant. It insists on transcoding it.
I'm going to explore the Spline36Resize taking the file to 720x576. It's not ideal, I know, but I'd rather do it with the 'least-worst' option of AviSynth doing the job instead of handing it over to Premiere Pro or worse still, Encore... |
Quote:
I see some Adobe apps have changed in some respects since I last tried them in 2006. I have no problem with 704-width in NTSC or PAL with other apps, including my trusty old AfterEffects CS2 (but I'm working with lossless in-&-out in CS2, not encoding with it). I also note that the free HCenc MPEG2 encoder doesn't like 704 widths either. Can't tell you how many 704's I have on retail DVD's, though, must be dozens of them. But that's just the way it is. I guess you've found by now that you can just change Spline36Resize(704,576) to Spline36Resize(720x576). It still works in 4:3 display because the encoder uses a slightly different pixel size ratio to get the same 4:3 display. Nice work on getting the plugins together, and good luck. |
Thanks for getting back to me, and for all your help with this. I already have a bunch of H264 files ready to copy across onto my home server, and a load of envelopes with DVDs on them to send out to the original VHS tape providers.
I'm now investigating whether or not I should invest in a (cheap) secondhand PC to do the donkey work of video capture and AVISynth retouching. But that's another thread... ;) |
Quote:
Quote:
Quote:
But that means you must be careful not to mess it up. So any vertical cropping needs to be 2-pixel increments. Avisynth works for both interlaced and progressive, but it depends on the filter. What you propose here, just colors and cropping, is fine as interlaced. Quote:
Quote:
Quote:
Quote:
|
Thanks for all that. I believe the original recommendation here was to aim for 704 because it would result in less distortion from the cropped source. But as it turns out, the latest (and presumably last) version of Adobe Encore doesn't accept 704x576 files, so I have subsequently adjusted that bit of the AVISynth scripts to be 720x576. Works nicely. And there are built-in 'protectors' in the filters, it would seem, which force the two-pixel increments, so that gives me some protection on that front.
The workflow seems to work to my satisfaction, and to the satisfaction of those who provided the original source VHS tapes. So I'm going to push ahead with it now (well, I will as soon as my video slave PC is up and running, hopefully by this time next week). Thanks again to everyone who offered advice here. Genuinely couldn't have reached this stage without your help. Kind regards, Discy |
Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.