Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yas-sim/mtb_practice_video_recorder
Playback video from webCam or a movie file, keeps frames of the latest 10min, and allow you to watch your desired point with several playback options/modes.
https://github.com/yas-sim/mtb_practice_video_recorder
mountain-bike mtb opencv playback practice python recorder sport-practice sports video-recorder
Last synced: about 13 hours ago
JSON representation
Playback video from webCam or a movie file, keeps frames of the latest 10min, and allow you to watch your desired point with several playback options/modes.
- Host: GitHub
- URL: https://github.com/yas-sim/mtb_practice_video_recorder
- Owner: yas-sim
- Created: 2021-07-07T04:27:53.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-31T00:21:47.000Z (over 3 years ago)
- Last Synced: 2024-04-23T00:09:52.443Z (7 months ago)
- Topics: mountain-bike, mtb, opencv, playback, practice, python, recorder, sport-practice, sports, video-recorder
- Language: Python
- Homepage:
- Size: 11.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MTB Practice Video Recorder
--------
## DescriptionThis tool playss back movie from a movie file or a webCam, and keep the frames of the latest 10 minutes. This tool supports several play modes and options such as play/pause control, rewind/feed-forward, advance/back frames, and reverse/normal play so that you can watch your interesting point of the movie instantly. This program can save 10 seconds of movie from the current playback point.
The tool is intended for MTB skill practice. You can review your try while keep recording movie. The tool is also applicable for any other sports and so on.このツールはムービーファイルやUSB webCamからの画像を再生しつつ、最新の10分間の映像を保持します。FF/Rewind, 再生/ポーズ, フレームを進める/戻すなどの操作が可能なので、任意の点を見ることが可能です。またプログラムは再生している点から10秒間のムービーを切り出して保存する機能もあります。
このツールはMTBのスキルトレーニングに使うことを念頭に開発しました。録画しながら練習し、録画を継続したまま任意の点を再生して確認できるのでスキル向上に役立てることができます。もちろんその他のスポーツの練習などに使うことも可能です。![Sample Movie](./resources/sample-movie.gif)
--------
## Prerequisites (必要要件)
- Python 3.x
- OpenCV Python, Numpy
```sh
$ python -m pip install opencv-python numpy
```[Python web site](https://www.python.org/)
--------
## How to use (使用方法)
```sh
$ python mtb_recorder.py [-i ] [-c ]
```
Note: cam0 will be used when no option is given.**Options:**
|Options|Descriptions|
|----|----|
|`-i` or `--input`|Specify an input movie file|
|`-c` or `--cam`|Specify the number of USB webCam (1st camera = 0)|
**Examples:**
```sh
$ python mtb_recorder.py -i mtb_movie.mp4
$ python mtb_recorder.py -c 0
```--------
## How to operate (操作方法)|Keys|Function|
|----|----|
|`z`, `x`| 1 sec back/forward|
|`a`, `s`| 10 sec back/forward|
|`j`, `k`| 1 frame back/forward|
|``, `p`| Pause/Resume|
|`n`, `m`| Reverse/Normal playback|
|`0`| Back to current recording point (zero time offset)|
|`r`| Save a movie of 10 second from the playback point. Movie file name will be `movie_YYYYMMDD-hhmmss.mp4`|
|``, `q`| Exit program|--------
## Disclaimer
No support. Provided as-is.