09-25-2018, 01:10 AM
|
|
Free Member
|
|
Join Date: Jul 2018
Location: Dallas, TX
Posts: 124
Thanked 12 Times in 9 Posts
|
|
I assume that when there is an AviSynth script to be run by VirtualDub and VirtualDub filters also need to be applied that they will occur in separate passes. For example, an AviSynth script is processed by VD and VD creates an intermediate file without using any VD filters. Then VD will apply its filters to the intermediate file in a separate pass to create the final output (or another intermediate file to be altered by another AviSynth script). Is there a situation where VD processes an AviSynth script and applies its own filters in the same pass?
|
Someday, 12:01 PM
|
|
Ads / Sponsors
|
|
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
|
|
|
09-25-2018, 05:39 AM
|
|
Premium Member
|
|
Join Date: Aug 2009
Location: N. Carolina and NY, USA
Posts: 3,648
Thanked 1,322 Times in 991 Posts
|
|
I almost always apply VirtualDub filters in the same pass when running Avisynth scripts. The exception is when either Avisynth or VirtualDub filters are so slow or touchy that running both gets confusing as to which filter is doing what or results in too many tries to get things coordinated. When using a single pass, I usually start and stop the Avisynth script to make changes and refresh Virtualdub's window using the F2 key or "Reopen video file" to observe the script change effects. Then VDub filters are applied, usually for color work. VDub or script restart will eventually run out of memory, so it's a good idea to save VD filter settings in a .vcf file periodically.
Remember that VDub filters run in RGB, so to make that YUV->RGB conversion properly do it in Avisynth -- especially if the source is YV12 and/or interlaced:
Code:
ConvertToRGB32(interlaced=true)
#--- or "interlaced=false", whichever applies --#
If you want to save your VDub output in another colorspace, set color depth and compression in VDub before saving the file.
|
09-25-2018, 09:29 AM
|
|
Site Staff | Video
|
|
Join Date: Dec 2002
Posts: 14,163
Thanked 2,570 Times in 2,184 Posts
|
|
Some of this is really about how CPUs work, how threading works, how processes work. Due to the nature of Avisynth and VirtualDub -- meaning that it's not an official product, but rather a mishmash/conglmoeration of amateur/indy coding -- it can be all over the map in terms of how it operates.
However, I'm not sure this is what you're asking.
And your example isn't accurate. Specifically, this doesn't happen: "VD creates an intermediate file". No such file is created.
|
09-25-2018, 10:58 AM
|
|
Premium Member
|
|
Join Date: Aug 2009
Location: N. Carolina and NY, USA
Posts: 3,648
Thanked 1,322 Times in 991 Posts
|
|
Quote:
Originally Posted by stevevid
Is there a situation where VD processes an AviSynth script and applies its own filters in the same pass?
|
Lordsmurf is correct in that VDub doesn't apply its oown filters until you tell it to do so. However, by default its output from an avisynth script is RGB unless you specify a color depth, a compressor, and "fast recompress" mode before you save Avisynth's output as a new AVI.
|
09-25-2018, 03:58 PM
|
|
Site Staff | Video
|
|
Join Date: Dec 2002
Posts: 14,163
Thanked 2,570 Times in 2,184 Posts
|
|
Avisynth and VirtualDub are both consecutive in how filters are run, though you can sometimes alter this. It really depends on the filter, and the script/chain. Sequence is important, because sometimes you must deinterlace first, or can only us a specific colorspace. It's also why RAM and CPU matters, and why long scripts can crash either (too much data, too many filters).
One of the most important aspects of VirtualDub is indeed to correctly set your colorspace, though I'm not sure how that factoid pertains to the original question. I set mine to YUY2, and rarely change it. This settings should be preserved from session to session, not something that you have to set each time.
|
09-25-2018, 04:05 PM
|
|
Free Member
|
|
Join Date: Jul 2018
Location: Dallas, TX
Posts: 124
Thanked 12 Times in 9 Posts
|
|
Quote:
Originally Posted by sanlyn
I almost always apply VirtualDub filters in the same pass when running Avisynth scripts. The exception is when either Avisynth or VirtualDub filters are so slow or touchy that running both gets confusing as to which filter is doing what or results in too many tries to get things coordinated. When using a single pass, I usually start and stop the Avisynth script to make changes and refresh Virtualdub's window using the F2 key or "Reopen video file" to observe the script change effects. Then VDub filters are applied, usually for color work. VDub or script restart will eventually run out of memory, so it's a good idea to save VD filter settings in a .vcf file periodically.
|
I did not expect this response! It's an intriguing idea. One example I wondered about is your script and VDub settings you created to process the dark film capture laid out in post 10 of http://www.digitalfaq.com/forum/vide...html#post55882. I processed the AviSynth script with VDub and had VDub create an avi file that I used as an intermediate avi file. Then I used VDub and its filters to create what I call another intermediate avi file. I applied the second AviSynth script to the second intermediate file to create the final avi file. Can the first AviSynth script and VDub filters be applied in one pass? This would cut down on the additional intermediate files and should cut overall time to get to the final file.
LordSmurf you said "And your example isn't accurate. Specifically, this doesn't happen: "VD creates an intermediate file". No such file is created." Not sure what you mean since I set up VDub to create an avi file that I use as just an intermediate video. I then do another pass where I have VDub apply its filters and output another file that I consider another intermediate file or the final file. Maybe we're just caught in a semantics situation.
Last edited by stevevid; 09-25-2018 at 04:30 PM.
|
09-25-2018, 04:29 PM
|
|
Site Staff | Video
|
|
Join Date: Dec 2002
Posts: 14,163
Thanked 2,570 Times in 2,184 Posts
|
|
Your first statement made it seem as if you thought VirtualDub was creating a file on it's own, and it does not. But if you manually create a file, then VirtualDub of course creates the specified file. Entirely different.
|
09-25-2018, 04:35 PM
|
|
Premium Member
|
|
Join Date: Aug 2009
Location: N. Carolina and NY, USA
Posts: 3,648
Thanked 1,322 Times in 991 Posts
|
|
An Avisynth script creates a stream of a/v frames. VirtualDub receives that output and allows you to save that stream as an avi file. If you apply VDub filters, VDub modifies that stream and lets you save it as an avi file. If you don't apply any VDub processing the stream is saved as-is, not "created" by Virtualdub.
If you allow VirtualDub to pass and save the file in "full processing mode" without specifying a colorspace or compressor for output, by default VirtualDub modifies the stream by converting it to uncompressed RGB, whether you apply VDub filters or not and whether you specify a different colorspace/compressor or not. If you don't want VirtualDub to use that RGB conversion, specify an output colorspace and compression and specify "fast recompress" mode.
VirtualDub has online help. Hit the F1 key. When Help displays, in the left-hand column click "Processing", then click "the pipeline".
|
Similar Threads
|
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
Video restoration newbie: Avisynth scripts?
|
latreche34 |
Restore, Filter, Improve Quality |
34 |
09-14-2019 10:25 PM |
Clarifications, improvements for Avisynth scripts?
|
ciccioschumacher |
Restore, Filter, Improve Quality |
0 |
04-14-2018 06:40 PM |
Found more VHS tapes, best Avisynth scripts to restore?
|
ragu0012 |
Restore, Filter, Improve Quality |
20 |
02-06-2018 11:31 AM |
VHS restore filters using Avisynth and VirtualDub - advice?
|
Zoink187 |
Restore, Filter, Improve Quality |
13 |
07-24-2014 09:38 PM |
All times are GMT -5. The time now is 08:02 AM
|