View Full Version : VapourSynth Multi-Viewer
MysteryX
7th July 2018, 07:01
Here's a simple utility software. It allows running several scripts side-by-side while zooming, panning and seeking simultaneously across all versions to easily compare the differences.
Not much else to say!
https://github.com/mysteryx93/VapourSynthViewer.NET/releases/tag/v0.8
This library should work both in x64 and x86.
As a side note, it took me a while to get it done because I was using it to study proper MVVM design patterns and was getting stuck at every detail.
The project also includes a full .NET API for VapourSynth here (https://github.com/mysteryx93/VapourSynthViewer.NET/tree/master/VapourSynthViewer.NET)
ChaosKing
7th July 2018, 10:06
Nice simple Viewer.
But it really needs something like "tab switching by keyboard numbers" to be efficient.
Are you planning to extend it into a full grown editor?
Edit: "fit to screen" would also be a nice feature
MysteryX
7th July 2018, 14:39
Switching tab with CTRL+1 to CTRL+9 would be easy to implement.
I plan on using this as the base for doing previews in the Yin Media Encoder. Wouldn't spend too much time on the stand-alone viewer.
Other features that would be nice is to see a diff map between tabs.
amayra
7th July 2018, 15:11
i was waiting for this thank you MysteryX
and i really hope to see you give more love to standalone version in the future
MysteryX
7th July 2018, 17:35
Switching tab was very easy to add thanks to well-structured MVVM code
https://github.com/mysteryx93/VapourSynthViewer.NET/commit/6c5f7cc4b64832c018a22d2015e86fbc564c48b7
ScaleToFit, however, is giving me more trouble.
Edit: ScaleToFit is working (https://github.com/mysteryx93/VapourSynthViewer.NET/commit/6a6df5397027b4721c0f1eff7d4da4c6d79fbde1)
MysteryX
7th July 2018, 18:28
Version 0.8.1 is ready! (https://github.com/mysteryx93/VapourSynthViewer.NET/releases/tag/v0.8.1)
What's new:
- Allow switching tabs with Ctrl + number (0-9)
- Added scale to fit zoom option
Next thing that would be nice is having the controls in a toolbar instead of floating on the right, that should be easy besides finding the right icons. Then "Run" tab should be moved into a toolbar icon, and you could add several Script tabs. Go To Frame # also would be good.
ChaosKing
7th July 2018, 19:22
I noticed that the first frame is not shown after clicking on run but only if I move the slider or press right on the keyboard.
And I find that CTRL + number is a bit uncomfortable. It would be better without the CTRL combo.
MysteryX
7th July 2018, 21:22
And I find that CTRL + number is a bit uncomfortable. It would be better without the CTRL combo.
Without Ctrl it won't allow you to type numbers in the script editor
ChaosKing
7th July 2018, 22:43
And if you exclude the scripts tab, would this work then?
MysteryX
9th July 2018, 18:27
Version 0.9 is ready! (https://github.com/mysteryx93/VapourSynthViewer.NET/releases/tag/v9.0)
What's new:
- Allow opening and saving files
- Allow several script editor tabs
- Moved all controls into a toolbar
- Added go to frame
- Redesigned keyboard shortcuts
- Can now select viewer tabs with 1-9 and editors with ctrl+1-9
- Fixed some issues with zoom
I'm thinking. Another feature that could be useful and easy to implement is "Pixel Blending", whether to zoom as square pixels (nearest neighbor) or blended pixels.
ChaosKing
9th July 2018, 21:44
Nice to have:
- Syntax-Highlighting
- set font size (and/or dpi aware). The font is a bit small in 1440p
MysteryX
9th July 2018, 22:00
I could enlarge the font easily. Syntax highlighting, however, would be a whole project on its own.
Edit: Actually it turns out syntax highlighting would be simple enough. (http://jonsblogat.blogspot.com/2011/06/adding-scripting-support-to-wpf.html)
Edit2: dammit noobs wrote AvalonEdit in a way that doesn't allow binding and it can't be integrated into my code design
ChaosKing
10th July 2018, 11:00
Maybe one of these are easy to integrate https://www.nuget.org/packages?q=highlight
Not all are for .net, some are js.
You could also use a webview for the scripts tab, maybe this would be better, just a thought.
MysteryX
11th July 2018, 23:29
Version 0.9.1 is ready! (https://github.com/mysteryx93/VapourSynthViewer.NET/releases/tag/v0.9.1)
What's new:
- Replaced script TextBox with AvalonEdit.TextEditor
- Added syntax highlighing
- Enlarged script font
- Added default script
As for AvalonEdit, they don't support binding for performance reasons. Found a way to work around it.
ChaosKing
11th July 2018, 23:41
ty, my eyes are very pleased now. I will add this also to my VS portable FATPACK.
I can't type numbers in the script editor tabs in v0.9.1. They always act as shortcut keys.
MysteryX
14th July 2018, 18:27
Fixed (https://github.com/mysteryx93/VapourSynthViewer.NET/releases/tag/v0.9.2)
MysteryX
26th July 2018, 20:12
Version 0.9.3 is ready! (https://github.com/mysteryx93/VapourSynthViewer.NET/releases/tag/v0.9.3)
What's new:
- Fixed multi-threading mode not activating
- Added option to display square pixels when zooming
redbtn
14th February 2019, 08:25
Play/Pause and seek don't work with full screen
bin.n2f
14th February 2019, 11:07
any chance for FrameRateConverter
in vapoursynth ?
Lypheo
17th March 2019, 20:28
I’m absolutely loving the program so far, but there is one key feature missing that I think every viewer definitely needs, namely allowing the user to (losslessly) save frames or at least copy them to the clipboard. Any chance you could add this?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.