Avisynth: Need script to select a time
i was wondering if there is a
way in a avisynth script to select a time. okay what i mean is that i ripped a episode off of a dvd. made it a little too dark and what not. so the main question is is there away in a avisynth script to select a time lets say 12 minutes to 14 minutes and change the brightness? |
You would have to use conditional evaluation, so when you are in the selected range, you apply the brightness level you want, and if the condition is not met, nothing happens.
In pseudo code: Code:
if current_frame >= start_frame AND current_frame <= end_frame Read here: http://www.avisynth.org/index.php?pa...ditionalFilter -kwag |
is there a way to have a set number in
tweak and then have the avisynth script auotdetect if there is a change like they can do with audio if the audio is to high or too low then it adjust to the levels that you want and second part if that cant be done :-p is whats the best way to get the frame number from the minutes p.s. thanks i wouldn't have thought of doing that |
Quote:
Yes, probably, but to what reference are you going to adjust the frame brightness :?: You would need some sort of "map" (like a first pass analisys), so you could apply the correct increase or decrease in brightness, for each frame. So I think this is a no no :lol: (anyone, corect me if I'm wrong :!: ) Quote:
Or load your video in VirtualDub, scroll to your starting position, and read the frame number. Do the same for the end frame. Quote:
-kwag |
|
Quote:
With this: Code:
# Recovers visibility on "very bad" recordings: -kwag |
bad news that coloryuv turns the black scenes pure white hehe
at least you can see it :P . whats better for adjusting the color tweak, coloryuv, or levels. Whats is the best way to setup up a ConditionalFilter, i don't know how to setup up one..never had to worry that much with them. is it some thing like this Code:
Code:
if current_frame >= start_frame AND current_frame <= end_frame |
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.