![]() |
Avisynth srestore & filter order - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html) +--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html) +--- Thread: Avisynth srestore & filter order (/thread-1688.html) |
RE: Avisynth srestore & filter order - Selur - 21.01.2021 yes there's a bug in the frame rate and frame count calculation when SelectRangeEvery is used. To groggy to look at it after 9 hours programming at work and another 5 hours programming and bug hunting today. -> will look at it over the week end. RE: Avisynth srestore & filter order - Selur - 21.01.2021 Sending you a link in a few minutes via pm which should fix the frame rate and frame count calculation for SelectRangeEvery. Going to bed now. Quote: It looks like AdjustFrameRate doesn't work just because in both cases initial fps is higher than I'm trying to set.yes, interpolation does only work to higher frame rates. Cu Selur RE: Avisynth srestore & filter order - serg - 22.01.2021 (21.01.2021, 22:28)Selur Wrote: Sending you a link in a few minutes via pm which should fix the frame rate and frame count calculation for SelectRangeEvery.dev_2021.01.21-212627 Now SelectRangeEvery works properly in Avisynth only (shows correct fps and frame count). However Avisynth SelectEvery crashes. (edited: it crashed one time and now it works???) Avisynth SpoRemover doesn't work anymore (did not check Vapoursynth) In Vapoursynch it still shows wrong numbers for both SelectRangeEvery and SelectEvery (edited:SelectEvery shows proper fps and frame count) RE: Avisynth srestore & filter order - Selur - 22.01.2021 Will look at it over the weekend,... RE: Avisynth srestore & filter order - serg - 23.01.2021 (22.01.2021, 06:13)Selur Wrote: Will look at it over the weekend,... dev_2021.01.22-153927 Vapoursynth SelectRangeEvery still doesn't work (fps and frame count) . Another question I have is how to implement, let's say, SelectEvery(3,1,2,2,3) in Hybrid? Whatever I've tried, including "Custom" - doesn't work (works perfectly as standalone part of avs script). RE: Avisynth srestore & filter order - Selur - 23.01.2021 Quote:Another question I have is how to implement, let's say, SelectEvery(3,1,2,2,3) in Hybrid?That call does not make any sense, no clue what you intended this to do. "SelectEvery(3,1,2,2,3)" with http://avisynth.nl/index.php/Select would be translated into: 1. chunk the source into parts consisting of 3 frames In that group of 3 frames 2. throw away the first frame (frame 0) 3. keep the second frame (frame 1) 4. repeat the third frame (frame 2) 5. use the forth frame,... <- this can't work since the chunk size is 3, which is why Hybrid will not calculate a new frame count/rate for such settings. You can see the script Hybrid generates in the Avisynth Script View. Here's an example of how SelectEvery works: ------------------------------------------------------- SelectEvery->Cycle to "3" and SelectEvery->Offsets to "0 0 2 2" would generate: 'SelectEvery(3,0,0,2,2)' inside the script. This would: 1. chunk the source into parts consisting of 3 frames In that group of 3 frames 2. repeat the first frame (frame 0) 3. throw away the second frame (frame 1) 4. repeat the third frame (frame 2) so with a clip of 12 frames: f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 and a frame rate of 24fps the following would happen: 1. chunking f0 f1 f2 f3 f4 f5 f6 f7f 8 f9 f10 f11 2. applying the offsets f0 f0 f2 f2 f3 f3 f5 f5 f6 f6 f8 f8 f9 f9 f11 f11 the frame count changed from 12 to 16 ( = 12*4/3) and the frame rate changed from 24 to 32 (= 24 * 4/3) fps. Here's an example how SelectRangeEvery works: ----------------------------------------------------- Using: SelectRangeEvery->Every 4 SelectRangeEvery->Length 3 SelectRangeEvery->Offset 0 and a clip of 12 frames: f0 f1 f2 f3 f4 f5 f6 f7f 8 f9 f10 f11 and a frame rate of 24fps This would generate 'SelectRangeEvery(every=4,length=3,offset=0)' inside the Avisynth script. Which would tell Avisynth to: 1. chunk the clip int parts of size four ( f0 f1 f2 f3 f4 f5 f6 f7f 8f 9f 10f 11f) 2. in each of those chunks only keep the first 3 frames f0 f1 f3 f4 f5 f6 8f 9f 10f so frame count changed from 12 to 9 (=12*3/4) frames and frame rate changed from 24 to 18 (= 24 * 3 /4) fps. With a clip of 5000 frames you would get 18fps and 3750 (=5000*3/4) frames. When using: SelectRangeEvery->Every 4 SelectRangeEvery->Length 2 SelectRangeEvery->Offset 2 and a clip of 12 frames: f0 f1 f2 f3 f4 f5 f6 f7f 8 f9 f10 f11 and a frame rate of 24fps This would generate 'SelectRangeEvery(every=4,length=3,offset=4)' inside the Avisynth script. 1. chunk the clip int parts of size four ( f0 f1 f2 f3 f4 f5 f6 f7f 8f 9f 10f 11f) 2. throw away the first two (= Offset) frames of each chunk ( f2 f3 f6 f7f 10f 11f) 3. keep the next 2 (= Length) frames so the frame count would change from 12 to 6 (=12 * 2 / 4) frames and frame rate changed from 24fps to 12 (12 * 2 / 4) fps. With a clip of 5000 frames you would get 12fps and 2500 (=5000*2/4) frames. Quote:Whatever I've tried, including "Custom" - doesn't work (works perfectly as standalone part of avs script).Seeing your example 'SelectEvery(3,1,2,2,3)' I doubt that: a. you tested with a working SelectEvery-call b. you made sure to tell Hybrid how the custom section changed the frame rate and frame count. Cu Selur RE: Avisynth srestore & filter order - serg - 23.01.2021 (23.01.2021, 09:12)Selur Wrote:You right, I messed up.Quote:Another question I have is how to implement, let's say, SelectEvery(3,1,2,2,3) in Hybrid?That call does not make any sense, no clue what you intended this to do. The proper value should be SelectEvery(4,1,2,3,3) and it perfectly works in Hybrid with SelectEvery->Cycle to "4" and SelectEvery->Offsets to "1 2 3 3" This is the result of my "fulling around" https://drive.google.com/file/d/1l95mBsNRZ_H0sTS4xUvy82bAzxbvLYEe/view?usp=sharing of the original https://drive.google.com/file/d/16xWG09PAlUF1ByUGNaNgvp45TbpDF6sE/view?usp=sharing (download and play from HD other then use browser player) RE: Avisynth srestore & filter order - Selur - 23.01.2021 Happy that worked out. ![]() Cu Selur RE: Avisynth srestore & filter order - serg - 23.01.2021 Can't save adjusted filters settings and custom filter order in the custom configuration RE: Avisynth srestore & filter order - Selur - 23.01.2021 Since you did not share any details, I assume you read [INFO] About profiles and saving settings,.... and something doesn't work. I tried the following: 1. Start Hybrid 2. Go to Filtering->Avisynth (I guess you use Avisynth) 3. change some filters 4. saved a configuration 5. reset the filters 6. loaded the saved configuration with the result that all settings were restored as I changed them. -> Can't reproduce the problem like it is presented. Cu Selur |