![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
cvplayer is a video player written in python that provides easy video playback using ffpyplayer and OpenCV
pip install cvplayer
there are two ways to use cvplayer, either through
starting interactive (direct) playback of a video from the command-line:
cvplay filaname
simply starts the video in a different window where it's playback can be controlledby using keymaps
the default keymaps for controlling the video playback are -
scripts (getting a VideoPlayer instance and doing whatever you want to)
cvplayer provides the VideoPlayer class which is the main wrapper around ffpyplayer's MediaPlayer.
Initializing a VideoPlayer instance will start playing the video according to the options specified. The Playback can be controlled from within the script as well as using keymaps.
the VideoPlayer class initiates playback and provide methods to control/access the state of the player.
Here's and example to play a video
from cvplayer import VideoPlayer
player = VideoPlayer(filename)
while player.state != 'eof':
print(player.get_pts())
time.sleep(1)
parameters for a VideoPlayer instance:
parameter | type | Description |
---|---|---|
filename | str | The filename of the media |
paused | bool | If True, the player will be in a paused state after creation, otherwise it will immediately start playing. Defaults to False |
fullscreen | bool | If True, the video playback will be in fullscreen mode immediately after it's creation. Defaults to True |
key_controls | bool | If True, the video playback can be controlled using specified keymaps. Defaults to True |
skip_interval | int | Specify the numebr of seconds to move ahead or beind when navigating the video using the keymaps |
volume | float | The default volume. A value between 0.0 - 1.0. Defaults to 1.0 |
mute | bool | If True, the player will be muted by default after creation. Defaults to False |
t | int | Play only t seconds of the audio/video. Defaults to the full audio/video. Defaults to the full audio/video |
ss | int | Seek to pos ss into the file when starting. Defaults to the beginning of the file |
blocking | bool | If True, the playback will block the current thread (the one it's being run from) until the playback ends. Defaults to False |
playback | bool | If False, only the player will be initialized and no video/audio will be played, only audio can be played by unmuting the player. Useful for just reading the frames form a video to display them using something else |
FAQs
a simple video player based on ffpyplayer and OpenCV
We found that cvplayer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.