AVISynth - Perserving Intentional Noise's problem

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

AVISynth - Perserving Intentional Noise's problem

Postby 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
Lok1990
 
Joined: 06 Jun 2006
Location: with Yuki Nagato

Postby 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
Zarxrax
 
Joined: 01 Apr 2001
Location: Concord, NC

Postby Lok1990 » Tue Jun 05, 2007 8:29 am

thanks Zarxrax, you really help me up ^^ :( :) :o :D :P
User avatar
Lok1990
 
Joined: 06 Jun 2006
Location: with Yuki Nagato


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 1 guest