AVISynth - Perserving Intentional Noise's problem

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
Lok1990
Joined: Tue Jun 06, 2006 10:50 pm
Location: with Yuki Nagato
Contact:
Org Profile

AVISynth - Perserving Intentional Noise's problem

Post by Lok1990 » Tue Jun 05, 2007 6:15 am

Pwolf wrote:video = avisource("finalrenderhuffy.avi")

v1 = video.trim(firstframe,lastframe) #first part of video that doesn't have noise

v2 = video.trim(firstframe,lastframe) #part that has noise

v3 = video.trim(firstframe,lastframe) #next part that doesn't have noise

v1.addfiltershere.morehere.andhere.andhrerealso.untilyouaredone

v3.addthe.same.filtersas.v1here

return v1 + v2 + v3
from http://www.animemusicvideos.org/phpBB/v ... light=part
well i followed this to preserve some noise i want.

Code: Select all

video = DirectShowSource("D:\source\First part.avi")
v1 = video.trim(15,30)
v2 = video.trim(31,45)
v1.tweak(sat=5.0)
v2.tweak(sat=5.0)
this is the little test i did, the colour tweak works well(the sat value is big so i can see it is working or not :P)

then i try to join the videos by adding "return v1 + v2"
so it becomes:

Code: Select all

video = DirectShowSource("D:\source\Yuki.N\Yuki N First part.avi")
v1 = video.trim(15,30)
v2 = video.trim(31,45)
v1.tweak(sat=5.0)
v2.tweak(sat=5.0)
return v1 + v2
but what now? the tweak filtering is GONE!! i changed to another filter like deen and it is not working as well as other filters. So can anyone helps me?

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Post by Zarxrax » Tue Jun 05, 2007 7:27 am

you have to say v1 = v1.tweak(blah

If you don't explicitly store commands in a variable, all commands are automatically stored in a variable called last.

Here is what the last piece of code you wrote is actually doing:

Code: Select all

video = DirectShowSource("D:\source\Yuki.N\Yuki N First part.avi")
v1 = video.trim(15,30)
v2 = video.trim(31,45)
last = v1.tweak(sat=5.0)
last = v2.tweak(sat=5.0)
return v1 + v2
and here is what you want to do:

Code: Select all

video = DirectShowSource("D:\source\Yuki.N\Yuki N First part.avi")
v1 = video.trim(15,30)
v2 = video.trim(31,45)
v1 = v1.tweak(sat=5.0)
v2 = v2.tweak(sat=5.0)
return v1 + v2

User avatar
Lok1990
Joined: Tue Jun 06, 2006 10:50 pm
Location: with Yuki Nagato
Contact:
Org Profile

Post by Lok1990 » Tue Jun 05, 2007 8:29 am

thanks Zarxrax, you really help me up ^^ :( :) :o :D :P

Locked

Return to “AviSynth Help”