A command-line wrapper of the mpv video player to create video bookmarks
Project description
video-bookmarks
@readwithai - X - blog - machine-aided reading - 📖⚡️🖋️
A command-line wrapper for the the mpv video player to create bookmarks in videos and audio files from te command-line. This can be useful when clipping videos for memes.
This is lightweight and easy to edit. The timestamps obtained may be used with ffmpeg.
Mostly vibe-coded at present! I can code, quantity of vibe coding will likely decrease over time.
Motivation
I quite like the command-line, and use it when I am not doing someting big. I wanted to cut out clips from a video from the command-line in order to share memes, but most of the tools were fiddley. So I decided to write this.
Alternatives and prior work
mplayer and mpv support scripting and you may be able to define a bookmarks system for them. This seemed too fiddle for my liking.
Video editors like [[Shotcut]] may be useful for this sort of thing. If you are posting on youtube or TikTok the short creators allow some good editing.
You could use vlc to get these timestamps.
Installation
Ensure mpv is installed:
sudo apt install mpv
You can then install video-bookmarks using pipx:
pipx install video-bookmarks
Usage
You can run video-bookmarks test.mp4. This then gives you a list of keybindings to run.
It will generate a bookmarks file called test.bookmarks.
About me
I am @readwithai. I create tools for reading, research and agency sometimes using the markdown editor Obsidian.
I also create a stream of tools that are related to carrying out my work.
I write about lots of things - including tools like this - on X. My blog is more about reading and research and agency.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file video_bookmarks-1.0.0.tar.gz.
File metadata
- Download URL: video_bookmarks-1.0.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa0039758e6915822c4849cb8916af0e742ac97a8e6936427a59099d934ef3bc
|
|
| MD5 |
5df8187be690d8a8ac983cfb3228d9fd
|
|
| BLAKE2b-256 |
41ba0394cffc5e5f2e700efa2a41d563c9baabab4a94d8d181a7c75cde971cea
|
File details
Details for the file video_bookmarks-1.0.0-py3-none-any.whl.
File metadata
- Download URL: video_bookmarks-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfadc323856fe540c48814a18700aeb62811ce7378a84cf1e98be11d86cdc0bb
|
|
| MD5 |
ebbe00dfb282402ebe72705ac621d994
|
|
| BLAKE2b-256 |
78528c286c19023656dd7a984ca4e509a619d7ca5bba4ed804cc4352c2a771d3
|