View Full Version : Using an RGB filter at a specific time
goldfinger75
30th July 2002, 13:37
Hello :)
I'm ripping an anime in DIVX5 (virtualdub - 1 pass quality based)) and i'd like to use a RGB filter at a specific time. But i don't know if it's possible. I used the RGB filter but for all the lenghth of the anime. I want to use the RGB filter only during 5 secondes.
If it's posible, can you explain me how to do that?
Thank you very much :)
Swede
30th July 2002, 13:46
The only way I know of is that you do the compression in three stages. First the one before you need the filter, then the part with the filter and finally the last part.
Then you append them all together, using Append AVI (still in VirtualDub).
goldfinger75
30th July 2002, 13:58
Ok thank you very much. I'll try in 3 parts as you said.
But it's too bad there is no filter doing that :(
manono
30th July 2002, 14:22
Hi-
There is a way to do it in one step by importing the RGB Adjust filter into AviSynth (assuming you're using AviSynth to frameserve into VDub), and then using the Trim command 3 times (once before RGB, once during RGB, and once for the rest of the episode). You can get the instructions how to import VDub only filters into an.avs in the AviSynth Q&A in the AviSynth Forum.
goldfinger75
30th July 2002, 15:15
Cool!! I'm going to try that :)
Yes i'm using Avisynth.
Thank you so much ;)
Swede
30th July 2002, 17:56
Of course manono is correct.
I'm glad someone has their brain in a higher gear than mine. :)
Now, shame on me. (Going home, reading up on AviSynth some more)
manono
30th July 2002, 18:50
Hi-
Swede, he may wish he had done it your way by the time he's done, because, if he hasn't done that doing stuff in parts and then rejoin before, he may have problems. But it's good training. I just remember that it took me a while to figure it out.
goldfinger, have you used trim on parts of the anime before and then rejoined them? It can get it a bit tricky. Yell if you need help.
goldfinger75
30th July 2002, 20:11
For the moment i haven't try anything because i'm reading the Q&A Avisynth forum (i'm french and i'm not speaking english very well^^ so it's a little bit complicated)
I don't understand what is the trim command.
Any way, here is the way i'm ripping my anime :
1/Smart ripper
2/Lame and azid
3/DVD2AVI
4/Gordian Knot 0.23 (the 0.26 doesn't work on my computer: after making my .avs, i load the .avs on virtualdub and i have an Avisynth error). Anyway i'm using the 0.23 and it's ok.
5/I load my .avs on virtual dub and i choose video--->compression--->divx5.02 pro....1 pass quality based....
6/i load somme plugg in (Deinterlace, resize...)
7/Full processing then save as avi.
Now i think that i must load yhe RGB pluggin manually in my .avs
But i don't really understand how to to that.
EDIT : i understood what il the trim command in GKnot :)
Now, i must understand how to import filter :)
theReal
30th July 2002, 21:46
I'm just about to learn how to work with different clips in one avisynth script, I think it should work like this (please correct me if anything is wrong):
#
Source=avisource("xyz.avi")
PartOne=Source.trim(0,5000).filterA().filterB().filterC(). (...)
PartTwo=Source.trim(5001,10000). (...)
PartThree=Source.trim(10001,15000). (...)
Return PartOne+PartTwo+PartThree
#
Of course you don't write filterA().filterB() :)
It's just the syntax that you need for further filters.
@goldfinger,
to add a VDub filter in avisynth, I can give you an example:
#
LoadVirtualDubPlugin("E:\VirtualDub-1_4_1\plugins\delogo.vdf","delogo")
ConvertToRGB32()
delogo(1, "", "", "", "", "F:/logo.bmp", 15, 40, 0, 0)
converttoyuy2()
#
To get the configuration for the filter, you have to configure it in VDub, then save the processing settings (a .vcf file). Open this with an editor and get the config line for the VDub filter (only the stuff between the brackets, no semicolon at the end like in the .vcf file).
In the case of delogo, it's this line that I'm speaking of: (1, "", "", "", "", "F:/logo.bmp", 15, 40, 0, 0)
manono
31st July 2002, 01:24
Hi-
Trim allows you to encode parts of the video. In this case it will allow you to encode different parts with different filters (in your case the RGB Adjust filter) and rejoin afterwards. Say, for example, that the episode is 30000 frames long, and the filter will be added into the middle 10000 frames (you can get the exact frames where you add the filter by entering the original .avs in VDub). Then a sample .avs might go like this:
LoadPlugin("E:\DIVXST~1\GKnot\mpeg2dec.dll")
LoadPlugin("E:\DIVXST~1\GKnot\SimpleResize.dll")
mpeg2source("D:\Tillie's Punctured Romance\Tillie.d2v")
#do your IVTC here
#you can also add other filters
Trim1=Trim(0,10000).crop(8,0,704,480).SimpleResize(512,384)
Trim2=Trim(10001,20000).crop(8,0,704,480).SimpleResize(512,384)
#here add the VDub stuff theReal gave you-I don't know how.
Trim3=Trim(20001,0).crop(8,0,704,480).SimpleResize(512,384)
Trim1+Trim2+Trim3
#add more filters down here if you prefer
For more information on the Trim command and the other commands available in AviSynth then you want the Avisynth scripting reference guide (http://math.berkeley.edu/~benrg/avisynth-reference.html#Trim)
clima
31st July 2002, 12:26
Originally posted by goldfinger75
4/Gordian Knot 0.23 (the 0.26 doesn't work on my computer: after making my .avs, i load the .avs on virtualdub and i have an Avisynth error). Anyway i'm using the 0.23 and it's ok.
Error at line 43 if I am not wrong ;)
This is due to your fast desinterlace filter in you .avs. (which has nothing to do with the line 43... :rolleyes: )
But why, I don't know, I didn't spent more time on this when I noticed that.
goldfinger75
31st July 2002, 12:33
Yes, this is exactly the mistake i have : error line 43.
But sometime, when i choose another filter, i have (i'm not sur) an error line 15.
So if i don't choose fast deinterlace, will i have no more mistake?
clima
31st July 2002, 16:00
Originally posted by goldfinger75
Yes, this is exactly the mistake i have : error line 43.
But sometime, when i choose another filter, i have (i'm not sur) an error line 15.
So if i don't choose fast deinterlace, will i have no more mistake?
I noticed this issue only with fast desinterlace. GK 0.26 is likely to missintall avisynth I guess...
hakko504
1st August 2002, 10:08
Fast deinterlace in GKnot changes the video size, and in GK0.26 the crop is put after de-interlace, thus feeding wrong values to crop. By moving the crop in front of the de-interlace everything will work OK. See this sticky! (http://forum.doom9.org/showthread.php?s=&threadid=25756)
Guest
6th August 2002, 04:43
There is a conditional execution filter for VirtualDub available through my web site. This will give you a very simple solution to your problem -- no cutting. Reach my site temporarily through:
http://shelob.mordor.net/dgraft/
bbiandov
24th August 2002, 01:55
goldfinger75, where do you get 'convert to RGB' filter for virtual dub?
manono
24th August 2002, 03:29
Hi-
The Convert to RGB and Convert to YUY2 are built into AviSynth-no plugin required. They are required when importing VDub filters into AviSynth.
bbiandov
24th August 2002, 18:54
manono I am afraid I dont understand. I do not need to use avisynth, I wand vdub to do the entire job. only problem is I want the product avi to be in rgb format and I cant find filter to do that
are you saying that I * HAVE * to use avisynth because it has the 'convert to rgb' which by default means vdub can not do that task?
theReal
24th August 2002, 19:17
When you're using full processing mode in VDub (necessary if you want to use any filters) then VDub converts to RGB automatically. VDub filters don't work with YUY2.
bbiandov
24th August 2002, 22:15
Thanks theReal, so to summarize my understamding, if filters are used, the product (or target if you will) AVI file will be in RGB format no matter what the source format was correct?
Courious, is there such a program that can tell if an avi file is rgb or yuv?
Guest
26th August 2002, 05:21
@bbiandov
No. RGB is just the format that VirtualDub filters use. The final target color space will be that used by the compression codec. For example, if you use HUFYUV to output your avi, you can configure it to produce RGB or YUY2. If you use DivX, you get YUY2.
monkeymon
30th August 2002, 04:03
im using the avisynth, but when to i add the ConvertToRGB32() line. it dun seem to have any different in the convertion when i view the output and the inout during the encoding.
manono
30th August 2002, 05:29
Hi-
...when i view the output and the inout during the encoding.
That's normal. You must be more used to working with VDub filters where you can see the before and after. When using AviSynth, the filters have already done their thing before they reach the encoder. Output is the same as input.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.