Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 22nd June 2018, 20:32   #61  |  Link
Mystery Keeper
Beyond Kawaii
 
Mystery Keeper's Avatar
 
Join Date: Feb 2008
Location: Russia
Posts: 724
https://bitbucket.org/mystery_keeper/vapoursynth-editor
Study the source. It does many things.
API use, installation path discovery, async requests, preview - it's all there.
__________________
...desu!
Mystery Keeper is offline   Reply With Quote
Old 22nd June 2018, 21:25   #62  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
This is how I do a reg query in python to check for a VS installation.

Code:
import winreg
	try:
		aReg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
		aKey = winreg.OpenKey(aReg, r"SOFTWARE\VapourSynth")
		q = winreg.QueryValueEx(aKey, 'Plugins')
		return q[0]
	except Exception as e:
		pass
		
	return None
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 2nd July 2018, 18:45   #63  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
I'm nearly done writing VapourSynth Multi-Viewer, a tool allowing to view multiple scripts side-by-side, while padding, zoom and seeking simultaneously in all tabs. This will make it easier to see which settings give the best results on the eyes. Zoom in the eyes, and switch between the various script versions.

However there's a math problem I haven't been been able to resolve; and some of you guys are really good with low-level math problems.

https://github.com/mysteryx93/Emerge...Viewer.cs#L130

This adjusts scrollbar positions when zooming. Currently it maintains the top-left corner fixed when zooming in and out. Ideally I would want to maintain the center fixed when zooming in and out using keyboard, or keep the image under the mouse fixed when zooming using the mouse wheel. Any idea which formula would achieve that?

Last edited by MysteryX; 3rd July 2018 at 04:01.
MysteryX is offline   Reply With Quote
Old 3rd July 2018, 07:33   #64  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Something like this?
https://stackoverflow.com/questions/...heel-scrolling
https://gamedev.stackexchange.com/qu...or-calculation
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 6th July 2018, 22:12   #65  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
Something like that, but the variables are a bit different so it's still confusing. Got everything else working but this.
MysteryX is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:11.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.