Skip to main content

Playing photo/video data

Project description

Playing photo/video data

PyPI PyPI - Python Version PyPI - Implementation PyPI - Status PyPI - License

Release history Documentation in Russian


pip install pvv

Note for Windows!

  1. Delete PyOpenGL

    pip uninstall PyOpenGL
  2. Download and installing PyOpenGL


pip install --upgrade pvv

Required packages

Packages Min version Current version
numpy 1.18.4 PyPI
opencv-contrib-python PyPI
PyOpenGL 3.1.5 PyPI
Pillow 7.1.2 PyPI

Class for playing photo/video data

Command line arguments

Argument                   Type Description Valid Values
command str Language
Default value: en
--file str Path to photo/video file
Default value: 0
--config str Path to configuration file -
--frames_to_update int How many steps to check the configuration file (works with --automatic_update)
Default value: 25
From 0 to
--automatic_update bool Automatic verification of the configuration file at the time the program is running (it works with --config) No value
--no_clear_shell bool Do not clean the console before running No value

Configuration file


Json parameter Type Description Valid Values
hide_metadata bool Hide metadata -
window_name str Window name -
resize dict Window size for resize From 0 to
info_text_color dict Text color of information notifications From 0 to 255
info_background_color dict Background color of information notifications From 0 to 255
info_size int Font size for information notification From 0 to 60
info_stroke int Stroke width for information notifications From 0 to 4
info_stroke_color int Stroke color for informational notifications text From 0 to 255
error_text_color dict Text color of error notifications From 0 to 255
error_background_color dict Background color of error notifications From 0 to 255
error_size int Font size for error notification From 0 to 60
error_stroke int Stroke Width for error notifications From 0 to 4
error_stroke_color int Stroke color for error notifications text From 0 to 255
repeat_text_color dict Text color of repeat playing From 0 to 255
repeat_background_color dict Background color of repeat playing From 0 to 255
repeat_size int Font size for repeat playing From 0 to 120
repeat_stroke int Stroke width for repeat playing From 0 to 4
repeat_stroke_color int Stroke color for repeat playing From 0 to 255
labels_base_coords int The start coordinate for the upper left informational notifications From 0 to 100
labels_padding int Padding size for all notification texts From 0 to 30
labels_distance int Text spacing From 0 to 15
clear_image_buffer bool Clear image buffer -
real_time bool Playing a photo/video data with a real time of FPS -
repeat bool Repeat video stream playback -
fps int Custom FPS
"real_time" = true
From 0 to 60
show_labels bool Display labels in the playback window -


Keyboard key Execution
esc Closing the app window
r Repeat video stream playback


Note! Supported Formats

Video Photo
mp4 and avi png and jpg

  1. Playing video file with automatic update of the configuration file (Language: Russian)


    pvv_play ru --file path_to_video_file --config path_to_config_file --automatic_update
  2. Streaming from a WEB-camera with automatic updating of the configuration file every 50 frames (Language: English)


    pvv_play en --file 0 --config path_to_config_file --automatic_update --frames_to_update 50

Download files

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

Files for pvv, version 1.0.0rc4
Filename, size File type Python version Upload date Hashes
Filename, size pvv-1.0.0rc4-py3-none-any.whl (319.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pvv-1.0.0rc4.tar.gz (313.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page