![]() |
Best way to restore individual scenes in capture?
I need to adjust each scene in a file with different adjustments. Initially, I started the process by setting up separate tabs in AvsPmod, one tab for each scene. It was working, but seemed awkward. Can I make adjustments to multiple scenes in one script? I tried the partial script below, but it only showed a 16 frame scene. Can a variation of this approach work or do I have to breakup the overall file into a file for each scene?
Code:
AVISource("file1.avi")Code:
#Scene 2: |
Use [code][/code] around Avisynth scripts when posting. I fixed your last post for you.
Watch out about multple AvsPmod tabs/windows. Each eats resources, and you can quickly run out, and the program gets really unstable. It's already NOT the most stable of software, but that makes it so much worse. I don't do this, but the way to make multiple adjustments in one really long script is to mark off the frame count. SelectRangeEvery() script SelectRangeEvery() next script There's probably several ways to do it, as is the nature of Avisynth. This is something I never do, so I'm not 100% sure that's the correct command. I pre-split assets in VirtualDub, process individually. |
Thanks for converting my code for proper viewing. I wondered how everyone else was able to get it right.
I'll try both approaches at adjusting scenes. I thought about the presplitting but was overly concerned about converting between multiple color spaces. |
Direct Stream Copy in VirtualDub won't convert colorspaces.
|
Quote:
Whether or not you use separate scripts is up to you, but separate scripts run in VirtualDub is the bestv way to insure your sanity. The separate outputs can be joined later, even in VirtualDub or an encoder. Separate scripts or not, your logic is incorrect. Your script applies a fade-in,m then completely alters the fade-in's color, gamma, and other visual properties with ColorTYUV and other filters. Fix the color and noise first, then apply fade-in and fade-out last. Code:
vid1=AVISource("file1.avi")There are multiple ways of setting up code for two processes in one script, but fading-in and then filtering the fade-in is incorrect logic. Also, the code as presented extracts two different chunks from the main video but joins and saves only the two chunks, S1 and S2. What happens to the rest of the main video? By the way, you'll get even cleaner chroma results if you convert to yv16 for SmoothLevels and Histogram, then convert all to YV12 for output to the encoder or let the encoder do it. http://avisynth.nl/index.php/YV16 |
Quote:
Long scripts like he wants to do are usually what causes crashes. Quote:
Quote:
Quote:
There are times that a Yadifmod will do nicely, but QTGMC is still the go-to. |
Interesting discussions.
As far as stability, VirtualDub seems the most unstable to me. It crashes fairly frequently with some sort of memory error. Also, things like viewing preview and histogram at the same time can be frustrating. I found a convoluted way to make it work, but it required a lot of trial and error. Getting VD to accept the proper frame rate was a royal pain. It kept setting the rate at 25 fps even though I told it to do 29.97. I now have a procedure to make that work (have the vcr on and feeding video to the capture device before setting the fps under the video/settings menu). So far, AvsPmod seems to work ok. The only thing I've found is it has an odd desire to add a new tab every time it's opened, but I can live with that. Anything else I should watch out for? Sanlyn, you asked about the rest of the video beyond scenes 1 & 2. I just had two scenes set up as a trial. There are more scenes. They're just not listed yet. Lordsmurf, you mentioned errors could become more of a problem with a longer script. Yep, I can't even get a simple IF statement to work using the Gscript plugin. I'll post this as a separate thread. Lordsmurf, Did you previously warn people away from the 64-bit version of AviSynth (maybe I'm confusing this with the 64-bit Huffyuv)? Here you praise some of 64-bit AviSynth's attributes. Is it best to use the 64-bit version on a system with a fourth generation i7 processor, Windows 7 Pro, and 16GB memory? Would you recommend the latest version r2662 or the last stable version r1576? Thanks, Steve |
bad = Huffyuv 64, Huffyuv MT
good = Avisynth + x64 Avisynth+ is not fun to install. You install + to get x64, delete the x86/32-bit folders, then install regular Avisynth over it. Then you have to install all the dependency files in the various Windows folders, both x64 and x86. I have an installer guide in Notepad++ right now, but haven't had time to finish. I don't know what you refer to with stable/latest versions. Go here: http://avs-plus.net/ I would not suggest it in anything less than a comparable (or better) setup to what I'm using: - i7-6700K - 16gb RAM - SSD drive for processing - good cooling; I use a nice fat Noctua - Windows 7; Win8/10 not friendly to video tasks On lower specs, mere HDD, etc, Avisynth is about as fun as a visit to the dentist. |
Quote:
Quote:
|
The essentials are this:
(1) install Avisynth+ but only the x64. If any part of x86 gets installed, just delete the folders manually. Install in the "Avisynth+" directory under "Program Files (x86)", and yes even for this 64-bit software. (2) install Avisynth 2.6 MT unofficial. Install in "Avisynth" folder under "Program Files (x86)". It will overwrite some x86+, but not x64, that's what you want. (3) install all the dependency DLLs for Windows folders (4) put 32-bit scripts in Avisynth/plugins, and 64 in Avisynth+ folders |
Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.