VideoSpeed 1.0.4__tar.gz → 1.0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- videospeed-1.0.6/LICENSE.md +21 -0
- videospeed-1.0.6/PKG-INFO +189 -0
- videospeed-1.0.6/README.md +172 -0
- {videospeed-1.0.4 → videospeed-1.0.6}/pyproject.toml +4 -4
- videospeed-1.0.6/src/VideoSpeed/__init__.py +6 -0
- {videospeed-1.0.4 → videospeed-1.0.6}/src/VideoSpeed/__main__.py +3 -1
- videospeed-1.0.6/src/VideoSpeed/cli.py +1569 -0
- videospeed-1.0.6/src/VideoSpeed/menu.py +482 -0
- videospeed-1.0.6/src/VideoSpeed.egg-info/PKG-INFO +189 -0
- videospeed-1.0.6/src/VideoSpeed.egg-info/SOURCES.txt +25 -0
- videospeed-1.0.6/src/VideoSpeed.egg-info/requires.txt +2 -0
- {videospeed-1.0.4 → videospeed-1.0.6}/src/VideoSpeed.egg-info/top_level.txt +0 -1
- videospeed-1.0.6/tests/test_about.py +202 -0
- videospeed-1.0.6/tests/test_build.py +252 -0
- videospeed-1.0.6/tests/test_cli.py +158 -0
- videospeed-1.0.6/tests/test_dependencies.py +89 -0
- videospeed-1.0.6/tests/test_docs.py +49 -0
- videospeed-1.0.6/tests/test_errors.py +37 -0
- videospeed-1.0.6/tests/test_fs.py +68 -0
- videospeed-1.0.6/tests/test_json.py +130 -0
- videospeed-1.0.6/tests/test_package.py +54 -0
- videospeed-1.0.6/tests/test_prereq.py +54 -0
- videospeed-1.0.6/tests/test_tui.py +349 -0
- videospeed-1.0.4/PKG-INFO +0 -100
- videospeed-1.0.4/README.md +0 -85
- videospeed-1.0.4/src/VideoSpeed/__init__.py +0 -4
- videospeed-1.0.4/src/VideoSpeed.egg-info/PKG-INFO +0 -100
- videospeed-1.0.4/src/VideoSpeed.egg-info/SOURCES.txt +0 -12
- videospeed-1.0.4/src/VideoSpeed.egg-info/requires.txt +0 -2
- videospeed-1.0.4/src/setup.py +0 -7
- {videospeed-1.0.4 → videospeed-1.0.6}/setup.cfg +0 -0
- /videospeed-1.0.4/src/VideoSpeed/cli.py → /videospeed-1.0.6/src/VideoSpeed/cli.bootstrap-old.py +0 -0
- {videospeed-1.0.4 → videospeed-1.0.6}/src/VideoSpeed.egg-info/dependency_links.txt +0 -0
- {videospeed-1.0.4 → videospeed-1.0.6}/src/VideoSpeed.egg-info/entry_points.txt +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Wilgat Wong <wilgat.wong@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: VideoSpeed
|
|
3
|
+
Version: 1.0.6
|
|
4
|
+
Summary: A command-line video editing tool built in Python for cutting, speeding up, and applying a boomerang effect to MP4 videos.
|
|
5
|
+
Author-email: Wilgat Wong <wilgat.wong@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/Wilgat/VideoSpeed
|
|
8
|
+
Project-URL: Repository, https://github.com/Wilgat/VideoSpeed
|
|
9
|
+
Project-URL: Issues, https://github.com/Wilgat/VideoSpeed/issues
|
|
10
|
+
Keywords: Video Editing,Multimeida
|
|
11
|
+
Requires-Python: >=3.11
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE.md
|
|
14
|
+
Requires-Dist: opencv-python-headless>=5.0.0.93
|
|
15
|
+
Requires-Dist: ChronicleLogger>=1.3.1
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# VideoSpeed - Cut, speed, and boomerang MP4 clips from the CLI
|
|
19
|
+
|
|
20
|
+

|
|
21
|
+

|
|
22
|
+
[-purple.svg)](https://github.com/cloudgen/ciao)
|
|
23
|
+
[](https://github.com/Wilgat/VideoSpeed)
|
|
24
|
+
[]()
|
|
25
|
+
[](https://pypi.org/project/VideoSpeed/)
|
|
26
|
+
|
|
27
|
+
VideoSpeed cuts a time range from an MP4, changes that clip’s length (percent), and can append a reverse pass (boomerang). On a terminal, no arguments opens a text menu (edit, about, Exit). Choosing edit walks through the prompts. Scripts pass `--file` / `--start` / `--end`. Encoding uses **FFmpeg**; duration probing uses **OpenCV**. The menu screen uses the default text-menu style: aligned number, verb, and note, and a rounded box along the bottom.
|
|
28
|
+
|
|
29
|
+
| You | The other role | Not this |
|
|
30
|
+
|-----|----------------|----------|
|
|
31
|
+
| Editor at a terminal or a script | FFmpeg on `PATH` (does the encode) | A website, installer, or root/sudo tool |
|
|
32
|
+
|
|
33
|
+
Package version SSOT: `src/VideoSpeed/__init__.py` (`MAJOR_VERSION`, `MINOR_VERSION`, `PATCH_VERSION` → **1.0.6**). `pyproject.toml` copies that string. Console entrypoint: `video-speed`.
|
|
34
|
+
|
|
35
|
+
## Features
|
|
36
|
+
|
|
37
|
+
- Recursive **MP4** discovery under a chosen folder
|
|
38
|
+
- Interactive **cut** (start/end seconds) with invalid-range re-prompt
|
|
39
|
+
- **Length/speed** change (**20–200%**) with A/V tempo kept in sync
|
|
40
|
+
- Optional **boomerang** (forward then reverse)
|
|
41
|
+
- **USB-safe** intermediate files (staged next to the output) and final publish via `shutil.move`
|
|
42
|
+
- **Text menu** on a terminal (`edit`, `about`, `Exit`): columns line up, and a three-row rounded input box sits on the bottom with a status line under it
|
|
43
|
+
- **`--help`** / **`--version`**; no arguments in a terminal opens that menu, and **edit** starts the interactive editor
|
|
44
|
+
- Non-interactive job: `--file`, `--start`, `--end`, optional `--percent` / `--boomerang`. Any of `--file`, `--start`, `--end`, or `--folder` skips the menu
|
|
45
|
+
- Fail-closed when **FFmpeg** is missing from `PATH`, when prompts are needed without a terminal, or when `--percent` or `--boomerang` is passed without a job
|
|
46
|
+
|
|
47
|
+
## Quick Installation
|
|
48
|
+
|
|
49
|
+
### Prerequisites (system)
|
|
50
|
+
|
|
51
|
+
- **FFmpeg** on `PATH` (`ffmpeg -version`)
|
|
52
|
+
- A supported **Python** environment (see `requires-python` in `pyproject.toml`)
|
|
53
|
+
|
|
54
|
+
### From PyPI (registry channel)
|
|
55
|
+
|
|
56
|
+
Package name SSOT: **`VideoSpeed`** (`pyproject.toml` `[project].name`). Maintainer verbs are on `./build.sh`: `help`, `version`, `setup`, `clean`, `build`, `test`, `test-install`, `upload`, `git`, `tag`, `release` (`all` is the same chain as `release`). `test` runs `tests/run.sh`. `test-install` reads `[project].name`, removes that pip install when present, and installs this checkout. Empty `./build.sh` prints help and does not upload.
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
pip install VideoSpeed
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
If the index is behind a local release, install from a checkout or wheel instead (below). Live index version is shown by the PyPI badge above.
|
|
63
|
+
|
|
64
|
+
### From a git checkout (development)
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
git clone git@github.com:Wilgat/VideoSpeed.git
|
|
68
|
+
cd VideoSpeed
|
|
69
|
+
pip install -e .
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
This installs the console script **`video-speed`** and pulls Python deps (`opencv-python-headless>=5.0.0.93`, `ChronicleLogger>=1.3.1`).
|
|
73
|
+
|
|
74
|
+
### Local pyenv install (testing)
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
./setup.sh
|
|
78
|
+
pyenv shell 3.14
|
|
79
|
+
video-speed --version
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`setup.sh` runs `pyenv shell 3.14` and installs this checkout with pip into that interpreter. Install CPython 3.14 first when it is missing (`pyenv install 3.14`). Run `./setup.sh` again after source changes. In the shell where you want the command:
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
pyenv shell 3.14
|
|
86
|
+
video-speed --help
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
The console script is installed on the pyenv 3.14 prefix. `./setup.sh` changes that interpreter only. It does not install FFmpeg and it does not use root.
|
|
90
|
+
|
|
91
|
+
### From a local wheel / sdist
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
# after: python -m build (or ./build.sh build)
|
|
95
|
+
pip install dist/VideoSpeed-1.0.6-py3-none-any.whl
|
|
96
|
+
# or
|
|
97
|
+
pip install dist/VideoSpeed-1.0.6.tar.gz
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Verify
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
video-speed --version
|
|
104
|
+
# or
|
|
105
|
+
python -m VideoSpeed --version
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Usage
|
|
109
|
+
|
|
110
|
+
Text menu (no arguments, in a terminal):
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
video-speed
|
|
114
|
+
# or
|
|
115
|
+
python -m VideoSpeed
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
The screen shows a numbered menu and a rounded input box along the bottom, as wide as the terminal, with one line to type on and a status line under the box. **edit** continues the prompts. **about** shows the product. **Exit** leaves.
|
|
119
|
+
|
|
120
|
+
1. Folder containing MP4s (Enter = current directory)
|
|
121
|
+
2. Choose a video by number
|
|
122
|
+
3. Cut start/end seconds
|
|
123
|
+
4. New length percent (default 100; allowed 20–200)
|
|
124
|
+
5. Optional boomerang (y/n)
|
|
125
|
+
6. Output is written **next to the source** with a descriptive name
|
|
126
|
+
|
|
127
|
+
Non-interactive job (scripts / CI):
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
video-speed --file clip.mp4 --start 1 --end 5 --percent 100
|
|
131
|
+
video-speed --file clip.mp4 --start 1 --end 5 --percent 50 --boomerang
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Other:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
video-speed --help
|
|
138
|
+
video-speed --version
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Without a terminal and without a job, the program exits with an error instead of hanging on prompts. `--percent` or `--boomerang` alone does the same and names `--file`, `--start`, and `--end`. `--folder` checks the directory. It does not pick a file.
|
|
142
|
+
|
|
143
|
+
`--json` keeps that same choice, closes the text menu, and prints one JSON object on standard output. On a terminal with no job flags, the questions are written to the error stream. Progress is not mixed into the object.
|
|
144
|
+
|
|
145
|
+
## Examples
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
# Install editable, then run interactive session in a folder of clips
|
|
149
|
+
cd /path/to/videos
|
|
150
|
+
video-speed
|
|
151
|
+
|
|
152
|
+
# Check identity without starting prompts
|
|
153
|
+
video-speed --version
|
|
154
|
+
|
|
155
|
+
# One-shot job (no prompts)
|
|
156
|
+
video-speed --file clip.mp4 --start 1.0 --end 5.0 --percent 100
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Example output name shape:
|
|
160
|
+
|
|
161
|
+
```text
|
|
162
|
+
clip_cut1.0-5.0s_100pct.mp4
|
|
163
|
+
clip_cut1.0-5.0s_50pct_BOOMERANG.mp4
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## Platform Compatibility
|
|
167
|
+
|
|
168
|
+
| Platform | Status |
|
|
169
|
+
|----------|--------|
|
|
170
|
+
| Linux | Primary (tested in development) |
|
|
171
|
+
| macOS / Windows | Expected to work when Python, FFmpeg, and OpenCV are available |
|
|
172
|
+
| Filesystems | Local disk and removable/USB volumes supported for output (temps staged beside final path) |
|
|
173
|
+
|
|
174
|
+
## Related Projects
|
|
175
|
+
|
|
176
|
+
- [VideoSpeed on GitHub](https://github.com/Wilgat/VideoSpeed)
|
|
177
|
+
- [VideoSpeed on PyPI](https://pypi.org/project/VideoSpeed/)
|
|
178
|
+
|
|
179
|
+
## Contributing
|
|
180
|
+
|
|
181
|
+
Fork the repository, use a checkout install (`pip install -e .` or `./setup.sh`), and open a pull request. Prefer small, tested changes. Do not strip defensive temp/publish behavior (cross-filesystem `shutil.move`) without an explicit redesign.
|
|
182
|
+
|
|
183
|
+
## License
|
|
184
|
+
|
|
185
|
+
MIT License — see [`LICENSE.md`](LICENSE.md).
|
|
186
|
+
|
|
187
|
+
## Last Update
|
|
188
|
+
|
|
189
|
+
2026-10-01 — **1.0.6**: text menu (edit, about, Exit), `--json`, job flags, and `./build.sh` maintainer verbs.
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# VideoSpeed - Cut, speed, and boomerang MP4 clips from the CLI
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+
[-purple.svg)](https://github.com/cloudgen/ciao)
|
|
6
|
+
[](https://github.com/Wilgat/VideoSpeed)
|
|
7
|
+
[]()
|
|
8
|
+
[](https://pypi.org/project/VideoSpeed/)
|
|
9
|
+
|
|
10
|
+
VideoSpeed cuts a time range from an MP4, changes that clip’s length (percent), and can append a reverse pass (boomerang). On a terminal, no arguments opens a text menu (edit, about, Exit). Choosing edit walks through the prompts. Scripts pass `--file` / `--start` / `--end`. Encoding uses **FFmpeg**; duration probing uses **OpenCV**. The menu screen uses the default text-menu style: aligned number, verb, and note, and a rounded box along the bottom.
|
|
11
|
+
|
|
12
|
+
| You | The other role | Not this |
|
|
13
|
+
|-----|----------------|----------|
|
|
14
|
+
| Editor at a terminal or a script | FFmpeg on `PATH` (does the encode) | A website, installer, or root/sudo tool |
|
|
15
|
+
|
|
16
|
+
Package version SSOT: `src/VideoSpeed/__init__.py` (`MAJOR_VERSION`, `MINOR_VERSION`, `PATCH_VERSION` → **1.0.6**). `pyproject.toml` copies that string. Console entrypoint: `video-speed`.
|
|
17
|
+
|
|
18
|
+
## Features
|
|
19
|
+
|
|
20
|
+
- Recursive **MP4** discovery under a chosen folder
|
|
21
|
+
- Interactive **cut** (start/end seconds) with invalid-range re-prompt
|
|
22
|
+
- **Length/speed** change (**20–200%**) with A/V tempo kept in sync
|
|
23
|
+
- Optional **boomerang** (forward then reverse)
|
|
24
|
+
- **USB-safe** intermediate files (staged next to the output) and final publish via `shutil.move`
|
|
25
|
+
- **Text menu** on a terminal (`edit`, `about`, `Exit`): columns line up, and a three-row rounded input box sits on the bottom with a status line under it
|
|
26
|
+
- **`--help`** / **`--version`**; no arguments in a terminal opens that menu, and **edit** starts the interactive editor
|
|
27
|
+
- Non-interactive job: `--file`, `--start`, `--end`, optional `--percent` / `--boomerang`. Any of `--file`, `--start`, `--end`, or `--folder` skips the menu
|
|
28
|
+
- Fail-closed when **FFmpeg** is missing from `PATH`, when prompts are needed without a terminal, or when `--percent` or `--boomerang` is passed without a job
|
|
29
|
+
|
|
30
|
+
## Quick Installation
|
|
31
|
+
|
|
32
|
+
### Prerequisites (system)
|
|
33
|
+
|
|
34
|
+
- **FFmpeg** on `PATH` (`ffmpeg -version`)
|
|
35
|
+
- A supported **Python** environment (see `requires-python` in `pyproject.toml`)
|
|
36
|
+
|
|
37
|
+
### From PyPI (registry channel)
|
|
38
|
+
|
|
39
|
+
Package name SSOT: **`VideoSpeed`** (`pyproject.toml` `[project].name`). Maintainer verbs are on `./build.sh`: `help`, `version`, `setup`, `clean`, `build`, `test`, `test-install`, `upload`, `git`, `tag`, `release` (`all` is the same chain as `release`). `test` runs `tests/run.sh`. `test-install` reads `[project].name`, removes that pip install when present, and installs this checkout. Empty `./build.sh` prints help and does not upload.
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pip install VideoSpeed
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
If the index is behind a local release, install from a checkout or wheel instead (below). Live index version is shown by the PyPI badge above.
|
|
46
|
+
|
|
47
|
+
### From a git checkout (development)
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
git clone git@github.com:Wilgat/VideoSpeed.git
|
|
51
|
+
cd VideoSpeed
|
|
52
|
+
pip install -e .
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
This installs the console script **`video-speed`** and pulls Python deps (`opencv-python-headless>=5.0.0.93`, `ChronicleLogger>=1.3.1`).
|
|
56
|
+
|
|
57
|
+
### Local pyenv install (testing)
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
./setup.sh
|
|
61
|
+
pyenv shell 3.14
|
|
62
|
+
video-speed --version
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
`setup.sh` runs `pyenv shell 3.14` and installs this checkout with pip into that interpreter. Install CPython 3.14 first when it is missing (`pyenv install 3.14`). Run `./setup.sh` again after source changes. In the shell where you want the command:
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
pyenv shell 3.14
|
|
69
|
+
video-speed --help
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The console script is installed on the pyenv 3.14 prefix. `./setup.sh` changes that interpreter only. It does not install FFmpeg and it does not use root.
|
|
73
|
+
|
|
74
|
+
### From a local wheel / sdist
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# after: python -m build (or ./build.sh build)
|
|
78
|
+
pip install dist/VideoSpeed-1.0.6-py3-none-any.whl
|
|
79
|
+
# or
|
|
80
|
+
pip install dist/VideoSpeed-1.0.6.tar.gz
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Verify
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
video-speed --version
|
|
87
|
+
# or
|
|
88
|
+
python -m VideoSpeed --version
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Usage
|
|
92
|
+
|
|
93
|
+
Text menu (no arguments, in a terminal):
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
video-speed
|
|
97
|
+
# or
|
|
98
|
+
python -m VideoSpeed
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
The screen shows a numbered menu and a rounded input box along the bottom, as wide as the terminal, with one line to type on and a status line under the box. **edit** continues the prompts. **about** shows the product. **Exit** leaves.
|
|
102
|
+
|
|
103
|
+
1. Folder containing MP4s (Enter = current directory)
|
|
104
|
+
2. Choose a video by number
|
|
105
|
+
3. Cut start/end seconds
|
|
106
|
+
4. New length percent (default 100; allowed 20–200)
|
|
107
|
+
5. Optional boomerang (y/n)
|
|
108
|
+
6. Output is written **next to the source** with a descriptive name
|
|
109
|
+
|
|
110
|
+
Non-interactive job (scripts / CI):
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
video-speed --file clip.mp4 --start 1 --end 5 --percent 100
|
|
114
|
+
video-speed --file clip.mp4 --start 1 --end 5 --percent 50 --boomerang
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Other:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
video-speed --help
|
|
121
|
+
video-speed --version
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Without a terminal and without a job, the program exits with an error instead of hanging on prompts. `--percent` or `--boomerang` alone does the same and names `--file`, `--start`, and `--end`. `--folder` checks the directory. It does not pick a file.
|
|
125
|
+
|
|
126
|
+
`--json` keeps that same choice, closes the text menu, and prints one JSON object on standard output. On a terminal with no job flags, the questions are written to the error stream. Progress is not mixed into the object.
|
|
127
|
+
|
|
128
|
+
## Examples
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
# Install editable, then run interactive session in a folder of clips
|
|
132
|
+
cd /path/to/videos
|
|
133
|
+
video-speed
|
|
134
|
+
|
|
135
|
+
# Check identity without starting prompts
|
|
136
|
+
video-speed --version
|
|
137
|
+
|
|
138
|
+
# One-shot job (no prompts)
|
|
139
|
+
video-speed --file clip.mp4 --start 1.0 --end 5.0 --percent 100
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Example output name shape:
|
|
143
|
+
|
|
144
|
+
```text
|
|
145
|
+
clip_cut1.0-5.0s_100pct.mp4
|
|
146
|
+
clip_cut1.0-5.0s_50pct_BOOMERANG.mp4
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Platform Compatibility
|
|
150
|
+
|
|
151
|
+
| Platform | Status |
|
|
152
|
+
|----------|--------|
|
|
153
|
+
| Linux | Primary (tested in development) |
|
|
154
|
+
| macOS / Windows | Expected to work when Python, FFmpeg, and OpenCV are available |
|
|
155
|
+
| Filesystems | Local disk and removable/USB volumes supported for output (temps staged beside final path) |
|
|
156
|
+
|
|
157
|
+
## Related Projects
|
|
158
|
+
|
|
159
|
+
- [VideoSpeed on GitHub](https://github.com/Wilgat/VideoSpeed)
|
|
160
|
+
- [VideoSpeed on PyPI](https://pypi.org/project/VideoSpeed/)
|
|
161
|
+
|
|
162
|
+
## Contributing
|
|
163
|
+
|
|
164
|
+
Fork the repository, use a checkout install (`pip install -e .` or `./setup.sh`), and open a pull request. Prefer small, tested changes. Do not strip defensive temp/publish behavior (cross-filesystem `shutil.move`) without an explicit redesign.
|
|
165
|
+
|
|
166
|
+
## License
|
|
167
|
+
|
|
168
|
+
MIT License — see [`LICENSE.md`](LICENSE.md).
|
|
169
|
+
|
|
170
|
+
## Last Update
|
|
171
|
+
|
|
172
|
+
2026-10-01 — **1.0.6**: text menu (edit, about, Exit), `--json`, job flags, and `./build.sh` maintainer verbs.
|
|
@@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "VideoSpeed"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.6"
|
|
8
8
|
description = "A command-line video editing tool built in Python for cutting, speeding up, and applying a boomerang effect to MP4 videos."
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
11
|
license = {text = "MIT"}
|
|
12
12
|
authors = [
|
|
13
13
|
{name = "Wilgat Wong", email = "wilgat.wong@gmail.com"}
|
|
@@ -15,8 +15,8 @@ authors = [
|
|
|
15
15
|
keywords = ["Video Editing", "Multimeida"]
|
|
16
16
|
|
|
17
17
|
dependencies = [
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"opencv-python-headless>=5.0.0.93",
|
|
19
|
+
"ChronicleLogger>=1.3.1",
|
|
20
20
|
]
|
|
21
21
|
|
|
22
22
|
# Official project links (this is what shows on PyPI!)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Version SSOT (requirement-python-version). Do not import the CLI from here.
|
|
2
|
+
MAJOR_VERSION = 1
|
|
3
|
+
MINOR_VERSION = 0
|
|
4
|
+
PATCH_VERSION = 6
|
|
5
|
+
__version__ = "{0}.{1}.{2}".format(MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
|
|
6
|
+
__all__ = ["MAJOR_VERSION", "MINOR_VERSION", "PATCH_VERSION", "__version__"]
|