Skip to main content

VapourSynth preview script

Project description

vsquickview

vsquickview 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 see the updated result immediately.
  • Easier comparing between two clips by simpling right clicking. Blind comparing is also possible.

Thanks to

  • Setsutteo no ao for helping with VapourSynth magics.
  • witchymary and others for helping with the UX.

Install vsquickview

Install vsquickview from TestPyPI (will be uploaded to pip soon):

python3 -m pip install vsquickview

vsquickview also requires fmtc to function. Make sure you have fmtc installed.

Using vsquickview

Create a new Jupyter Notebook and import vsquickview:

%gui qt5
import vsquickview

%gui qt5 is a magic command to let Jupyter Notebook integrates itself 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.

Now we can add clips to the vsquickview using function vsquickview.view():

vsquickview.view(0, clip1, "Original")
vsquickview.view(1, clip2, "Compare")

vsquickview.view() is defined as below:

view(index: int, clip, name: typing.Optional[str]=None)
  • Similar to vspreview, vsquickview has 10 video slots from 0 to 9. This is specifed using the first parameter index.
  • The second parameter clip is the clip to preview.
  • 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 same vsquickview.view() function:

vsquickview.view(1, clip_new, "Compare")

To remove a clip with a specific index:

vsquickview.removeView(1)

Now we have explained vsquickview's Python interface, we can now have a look at vsquickview window.

vsquickview displays the first frame of the clip at index 0 on startup. Press Alt key and you will see a label on the bottom-left corner of the screen Index 0: [Name of the clip] / Frame 0.

You can switch to another frame using G key. Press G key and type in the frame number, then press Enter and a new frame will be displayed.

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.

Other usages are listed below:

  • Left Mouse Button or Middle Mouse Button: Pan the clip preview.
  • Scroll Wheel: Zoom the preview at 100%, 200%, 300%, or 400%.
  • Alt: Toggle the label at the bottom-left corner of the screen.
  • Right Mouse Button or Space: Switch to the next available clip.
  • 0, 1, 29: Switch to the clip at the specific index.
  • G: Press G key and type the frame number followed by Enter key to go to a specific frame.
  • Left Key or Right Key: Go to the previous or the next frame.
  • F or F11: 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 function vsquickview.show().

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vsquickview-0.1.3.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vsquickview-0.1.3-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file vsquickview-0.1.3.tar.gz.

File metadata

  • Download URL: vsquickview-0.1.3.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for vsquickview-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e31802a5cfaa07a9fb8fc96ab9ffec21bac5d20c91cf76fa9c66fefb61c3f49d
MD5 3079ae64b57cee53fa0fb7e112d87770
BLAKE2b-256 7a02641379b11df00279991798a56da33f0b3b34a12eb83b3ad7ce556467c200

See more details on using hashes here.

File details

Details for the file vsquickview-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: vsquickview-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for vsquickview-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6d47049d1f6295b7f8a2eac14bc7c0341639a5b799d02ececd4dde2e60045d6b
MD5 9b4e97a5bac010a858770c226eacc215
BLAKE2b-256 b97b77951f629d9d47b3d8f21c7f31226af493d0c6792b3a50a2cb7693a06137

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page