View Single Post
Old 24th September 2018, 13:11   #45  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,554
Quote:
Originally Posted by zorr View Post
That certainly could be done. The only difficulty in this would be that Avisynth would have to simulate the upscaling of the playback device (or is it upscaled with Avisynth during the playback?).



I haven't looked at Vapoursynth so I can't tell for sure. But basically what's needed for the optimizer to work is:
1) a way to run a script programmatically from the optimizer
2) a way to specify which values the optimizer is changing in the script
3) the script has to calculate a result: quality / runtime / any other interesting value
4) the script has to write the result into a specific file

I'm very much interested in making this happen but hopefully someone who knows Vapoursynth can help me figure out the steps above.
1. Use vspipe if all you need is to calculate a frame statistic
2. vspipe has --arg key=value which can set variables inside the script
3. per frame or for the whole thing? not sure what you need here
4. depends on the answer in 3, I plan to add the possibility to dump all frame properties as json in a future vspipe release
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote