Package: vsquickview
vsquickviewvsquickview is a frame-by-frame VapourSynth preview script designed to be used together with Jupyter Notebook with these advantages:Less waiting. vsquickview will run alongside Jupyter Notebook. Everytimes you make an adjustment, you can switch to the vsquickview window to view the result immediately.Easier comparing between two clips with a right click. Blind comparing is also possible.Thanks toSetsugen no ao for helping with VapourSynth magics.witchymary and others for helping with the UX.Note:This project has received an surprising amount of publicity recently. Please note that vsquickview is still in rapid development and its functions may subject to change. If there were any changes that would break existing function, we will indicate it by increasing theMINORversion instead of PATCH. Until version 1.0.0 is released, if you see the MINOR version changes, please remember to revisit this README page to confirm that your existing scripts will work.Install vsquickviewInstall vsquickview from pip:python3-mpipinstallvsquickviewvsquickview also requires fmtc to work. Make sure you have fmtc installed or install it using the following command:vsrepoinstallfmtcUsing vsquickview's Python interfaceCreate a new Jupyter Notebook and import vsquickview:%guiqt5importvsquickviewasvsqv%gui qt5is a magic command to let Jupyter Notebook integrates with the Qt event loop. Please make sure to call it before importing vsquickview.After this cell is executed, a fullscreen vsquickview window should be opened, showing an ARIB STD-B66 colour bar. We will be looking at the GUI in the next section, but before that, let's see how we can add clips to vsquickview:vsqv.View(src16,0,"Source")vsqv.View(compare16,1,"Compare")vsquickview.View()is defined as below:View(clip:vs.VideoNode,index:int,name:Optional[str]=None)The first parameter is the clip for preview.Similar to vspreview, vsquickview has 10 video slots from 0 to 9. This is specifed using the second parameterindex.You can also pass a third parameter to specify a name for the clip. This will be displayed in vsquickview window alongside the clip's index.Clip on an index can be updated using the samevsquickview.View()function:vsqv.View(new_compare16,1,"New Compare")To remove a clip with a specific index:vsqv.RemoveView(1)If you prefer a more VapourSynth-style call to vsquickview, you could call the functions like:vsqv.View(compare16,index=1,name="Compare")vsqv.RemoveView(None,index=1)Here is a short list of functions and their definitions in vsquickview:View(clip:vs.VideoNode,index:int,name:Optional[str]=None)RemoveView(clip:Union[vs.VideoNode,int,None]=None,index:Optional[int]=None)SetFrame(clip:Union[vs.VideoNode,int,None]=None,frame:Optional[int]=None)SetIndex(clip:Union[vs.VideoNode,int,None]=None,index:Optional[int]=None)Show(clip:Optional[vs.VideoNode]=None)Hide(clip:Optional[vs.VideoNode]=None)Using vsquickview's GUIOn startup, vsquickview displays the first frame of the clip at index 0 on startup. PressAltkey and you will see a label on the bottom-left corner of the screen that readsIndex 0: [Name of the clip] / Frame 0.You can switch to another frame usingGkey. PressGkey and type in the frame number, then pressEnterto switch to a new frame. You can also use theLeftorRightkey to go to previous or next frame.You can cycle between clips using the right mouse button. If you have more than one clip loaded and available at the specific frame number, press the right mouse button and the same frame of the next available clip will be displayed. PressShiftand the right mouse button and the clip will be cycled backwards.Other usages are listed below:Left Mouse ButtonorMiddle Mouse Button: Pan the clip preview.Scroll Wheel: Zoom the preview.Right Mouse ButtonorSpace: Switch to the next available clip.ShiftandRight Mouse ButtonorSpace: Switch to the previous available clip.Alt: Toggle the label at the bottom-left corner of the screen.0,1,2…9: Switch to the clip at the specific index.G: PressGkey and type the frame number followed byEnterkey to go to a specific frame.LeftKey orRightKey: Go to the previous or the next frame.CtrlandLeftKey orRightKey: Jump 12 frames backwards or forwards.UpKey orDownKey: Go to the next or previous clip, but not cycling the clips.ForF11: Toggle fullscreen.vsquickview will be closed when you terminate or restart the Jupyter Notebook section. If you close the vsquickview window by accident, you can reopen it by calling functionvsquickview.Show().Using preview groupAdditionally, you can also create preview group for a selected list of frames you want to compare.Set preview group using thevsquickview.SetPreviewGroup()function:vsqv.SetPreviewGroup([1934,6849,13226,21647,25374,26811,28499,29111])In the vsquickview GUI, useShiftKey andLeftKey orRightKey to go to the previous or next frame in the set preview group.You can also add frame to or remove frame from the preview group usingRKey from GUI. Afterwards, you can retrieve the current preview group using thevsquickview.PreviewGroup()function.Here is a short list of functions and their definitions for preview group:SetPreviewGroup(clip:Union[vs.VideoNode,list,None]=None,group:Optional[list]=None)ClearPreviewGroup(clip:Optional[vs.VideoNode]=None)PreviewGroup(clip:Optional[vs.VideoNode]=None)