View Full Version : Using filter ranges
nicksteel
26th December 2011, 14:58
# USAGE:
# JDL_ApplyRange(123, 456, "Tweak(sat=1.1)")
I have an old animated+normal mixed dvd that needs the normal areas brightened and the animated areas tweaked in other ways. I'm using Virtualdubmod to tweak the various filters that I will use in Avisynth. Can I somehow modify the DVDRB generated avs work files to apply filters to ranges of frames prior to execution?
Is my only other alternative is to generate a single main movie vob, modify with some kind of range control (as above) and rebuild the dvd in an authoring program?
I would much rather use DVDRB and keep the existing DVD structure intact.
jdobbs
26th December 2011, 15:26
DVD-RB has a filter editor built in, but I've never actually tried applying filters to only certain ranges.
nicksteel
26th December 2011, 17:32
Filter edit works. I just noticed that if 1Click is turned off, I can Prepare, Encode, Rebuild. I assume this means I could process with 1Click, then add filters in the work avs files, turn off 1Click and then encode and rebuild?
jdobbs
27th December 2011, 00:31
Filter edit works. I just noticed that if 1Click is turned off, I can Prepare, Encode, Rebuild. I assume this means I could process with 1Click, then add filters in the work avs files, turn off 1Click and then encode and rebuild? You need to have the filters set before encoding.
nicksteel
1st January 2012, 16:24
This is a method I'm using to apply VirtualDub filters to HCEnc encodes within DVD Rebuilder Pro. Working ok, with the exception of only being able to use VirtualDubMod and not being able to "Blend" video filters for ranging. (VirtualDub 1.9.11 and others freeze or have filter errors.)
1. Use DVDShrink to build single VOB of the complete dvd, while also using the original for DVD Rebuilder.
2. Open VirtualDubMod, load single VOB, apply filters (I'm using MSU Color Enhancement that isn't available for Avisynth) and frameserve.
3. Add frameserve line to Dvd Rebuilder filter editor. This creates an AviSource line before the trim filter.
#------------------
# AVS File Created by DVD Rebuilder
# VOBID:06, CELLID:02
#------------------
LoadPlugin("C:\Program Files (x86)\DVD-RB PRO\DGDecode.dll")
mpeg2source("C:\USERS\NICKSTER\DESKTOP\SOTSDVDRB\D2VAVS\V01.D2V")
aviSource("C:\Users\Nickster\Desktop\sotsdvdrb\frameserve.vdr")
trim(3117,14078)
ConvertToYV12(interlaced=true)
4. Process 1Click. (I cannot use multiple HCEnc instances due to fameserve errors.)
This seems to force DVD Rebuilder to create M2V files from the single VOB while using the parallel D2V for everything else.
There may be an easier way, but it seems to be working for me and allows DVD Rebuilder to do it's thing. I am using a 3.5MB source DVD, so there may be sizing issues with compressing a larger one. Of course, you cannot use VirtualDub filters that affect frame count.
jdobbs
1st January 2012, 16:53
DVD Rebuilder doesn't work when you change the length of a source (as in Trim()). It has to read and reapply flags.
nicksteel
1st January 2012, 17:02
The trim() code is generated by DVD Rebuilder. I was showing the avs from generated D2AVS. The line in red is what I put in the filter editor. It is working, as I can open the individual M2V files and see the filter effects.
It seems the flags are read from the original, copied for the created M2V, or I could just be confused. The created DVD seems to be ok, just having filtered output.
I assumed DVD Rebuilder rebuilds using the m2v files and D2v data and that my 1 large VOB is in sync with the concatinated D2V VOB's.
Maybe I'm taking too simplified an approach. I normally use Avisynth filters, but don't know which Avisynth filters are equivalent to the Virtualdub MSU filter I like. Also, it would be nice to be able to test the filters in Virtualdub and use blend ranging for different frame areas.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.