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 29th August 2024, 19:50   #1  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 135
VapourSynth Video Editor

What is or which video editors use VapourSynth? Can they make image sequences out of videos?
jay123210599 is offline   Reply With Quote
Old 29th August 2024, 20:04   #2  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,813
You can try imwri.Write(), see https://amusementclub.github.io/doc/...ml#imwri.Write

Vdub2 can open vapoursynth files and supports saving as Image Sequence.


I would say the "best" editor currently is https://github.com/Jaded-Encoding-Th...rgy/vs-preview
Second place https://github.com/YomikoR/VapourSynth-Editor
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 29th August 2024, 22:22   #3  |  Link
_Al_
Registered User
 
Join Date: May 2011
Posts: 348
Best, simple previewer is mine! :-) , it can preview many clips at the same time and switching between then using keys on keyboard
https://github.com/UniversalAl/view
but seriously, it is a crude, simple player, using opencv, nothing extra, but using it with any python editor,
you use it in your script:

Code:
import vapoursynth as vs
from view import Preview
source = r'my_source.mkv'
clip = vs.core.ffms2.Source(source)
clip.set_output()   
if __name__ == '__main__':
    Preview([clip])
if preview is in that "if" block like that, script can be loaded into vspipe, no need to remove those previewing lines.
But if you run your script from a python editor, like IDLE (very basic, good for a beginner, easy, run script) or pycharm (advanced, but if you handle that, there is no way back to anything else). In that other post of yours a VirtualDub editor was used for previewing scripts, but I did not use that, not sure how it performs here.

That view.py can export PNG frame 1:1 if pressing key "W", if pressing key "E" it saves image WYSIWYG, like zoomed in. Both save current crop, if applied.
It saves even during playback, if pressing "W", it will save images in a sequence, until you release that key.

Using vapoursynth you become a python coder, if you want or not, so you can use python editors like that.

Last edited by _Al_; 29th August 2024 at 22:56.
_Al_ is offline   Reply With Quote
Old 29th August 2024, 22:44   #4  |  Link
_Al_
Registered User
 
Join Date: May 2011
Posts: 348
Also as was suggested imwri plugin could be used, https://github.com/vapoursynth/vs-imwri/releases/tag/R2 , you would find out in a previewer what frame range you want to get and then writing images you'd use script ,something like:
Code:
import vapoursynth as vs
source = r'my_source.mkv'
clip = vs.core.ffms2.Source(source)
clip.set_output()   
if __name__ == '__main__':
    clip = clip.resize.Bicubic(format=vs.RGB24, matrix_in_s="709")
    clip = vs.core.imwri.Write(clip, filename='my_movie_%02d.png', imgformat='PNG')
    #to write image sequence from frame 100 to 110
    for frame in range(100,110):
        clip.get_frame(frame)
So you could preview that script in your previewer that sets __name__ to "vapoursynth". vsedit does that, getting desired frame numbers for your sequence, and then running it in a python editor would actually write images.
Or you can use any previewer and when getting frame numbers, you'd add those lines that write png images.

Last edited by _Al_; 29th August 2024 at 22:48.
_Al_ is offline   Reply With Quote
Old 29th August 2024, 23:14   #5  |  Link
_Al_
Registered User
 
Join Date: May 2011
Posts: 348
Also Comparator could be used, https://files.videohelp.com/u/198160/Comparator.7z , thats a download link from videohelp, it is a GUI, a major step up from view.py (though not finished as I wanted to be, not having time) .
Everything is set up already, it is compiled. No need to download opencv modules in python etc. Keys "w" or "E" work as well I think, you can change path for saving images in settings.

Just drop your vapoursynth script on that Comparator exe (or more scripts to compare them). Or as a matter of fact, you can just drop your video file (or video files), it will create scripts internally automatically.
It looks like this:

Last edited by _Al_; 29th August 2024 at 23:30.
_Al_ is offline   Reply With Quote
Reply

Tags
vapoursynth editor, video editor

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 06:37.


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