Skip to content

Commit 42aa005

Browse files
committed
version1.0
1 parent fcf51e2 commit 42aa005

27 files changed

+1565
-1
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
__pycache__
2+
*/__pycache__/*
3+
tmp_video/*.mp4
4+
dist/*
5+
build/*
6+
*.spec
7+
env/*
8+
config.json

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
// IntelliSense を使用して利用可能な属性を学べます。
3+
// 既存の属性の説明をホバーして表示します。
4+
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python: 現在のファイル",
9+
"type": "python",
10+
"request": "launch",
11+
"program": "${file}",
12+
"console": "integratedTerminal",
13+
"justMyCode": true
14+
}
15+
]
16+
}

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"python.linting.enabled": true,
3+
"python.autoComplete.extraPaths": [
4+
"./src",
5+
"./env/Lib/site-packages/",
6+
],
7+
}

LICENSE_ThirdParty.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Python
2+
Python Software Foundation License
3+
https://docs.python.org/3/license.html#psf-license
4+
5+
# Numpy
6+
BSD 3-Clause License
7+
https://github.com/numpy/numpy/blob/main/LICENSE.txt
8+
9+
# Opencv-Python
10+
MIT License
11+
https://github.com/opencv/opencv-python/blob/4.x/LICENSE.txt
12+
13+
# Pillow / PIL
14+
Historical Permission Notice and Disclaimer (HPND)
15+
https://github.com/python-pillow/Pillow/blob/main/LICENSE
16+
17+
# TCL/TK
18+
Tcl/Tk License
19+
https://fedoraproject.org/wiki/Licensing:TCL
20+
21+
# ttkbootstrap
22+
MIT License
23+
https://github.com/israel-dryer/ttkbootstrap/blob/master/LICENSE
24+
25+
# windows-capture-device-list (python-capture-device-list)
26+
MIT License
27+
https://github.com/yushulx/python-capture-device-list/blob/master/LICENSE

README.md

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,67 @@
1-
# QuickReplay
1+
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
2+
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
3+
4+
# QuickReplay
5+
6+
Webカメラの出力を記録し、簡単にリプレイなどを行えるソフト。
7+
8+
## 機能
9+
* リプレイ機能(コマ送り、コマ戻し、早送り、早戻し、等速再生)
10+
* フレームカウンター(指定したフレームからのフレーム差、時間の差を表示する)
11+
12+
<br><br>
13+
14+
15+
# Setup
16+
17+
## Use Binary
18+
[リリースページ](https://github.com/Nanahuse/QuickReplay/releases)から最新版のzipファイルをダウンロードしてください。
19+
インストール不要で解凍すれば使えます。
20+
21+
## Use Python
22+
requiments.txtが用意してありますが、[yushulx/python-capture-device-list](https://github.com/yushulx/python-capture-device-list)がpip経由では上手くインストールできないため除いてあります。別途手動でインストールしてください。
23+
24+
<br><br>
25+
26+
# 使い方
27+
## 設定画面
28+
### WebCameraに関する設定
29+
入力デバイス、解像度、フレームレートを指定してください。設定可能なフレームレートは入力デバイスによって異なるので確認してください。
30+
### Replayに関する設定
31+
リプレイ時間にはリプレイを保存する長さを秒単位で指定してください。リプレイ時間が長くなるほど大きな保存容量が必要になります。
32+
33+
録画時プレビューでは録画時にプレビュー画面を開くかどうかを設定します。録画時にプレビュー画面を閉じることでドロステ効果を防止します。[ドロステ効果 - Wikipedia](https://ja.wikipedia.org/wiki/%E3%83%89%E3%83%AD%E3%82%B9%E3%83%86%E5%8A%B9%E6%9E%9C)
34+
35+
### Save & Reset
36+
「Save」を押すことで現在の設定を保存できます。次回実行時には自動で読み込まれます。
37+
「Reset」を押すと直前にSaveしたデータを読み込むことができます。
38+
39+
### Start
40+
設定が終わったら「Start」を押すと実行画面に変わります。
41+
入力デバイスが開けなかった場合はエラー画面になります。
42+
43+
44+
![設定画面](docs/img/setting_window.png)
45+
46+
<br>
47+
48+
## 実行画面
49+
### フレームカウンターの使用方法
50+
1. 録画、再生を行っていない状態で実行画面左下の「Set point」を押す。
51+
1. 「Set point」を0としたときの現在の表示フレームのフレーム数とタイムが表示される。
52+
### リプレイ中の画面
53+
![実行画面](docs/img/player_window_replay.png)
54+
55+
### 録画中の画面
56+
![実行画面](docs/img/player_window_recording.png)
57+
58+
<br>
59+
60+
## OBSとの連携させて使用する場合のおすすめ
61+
62+
OBSで使用する場合はobs-virtual-camというプラグインが便利です。
63+
画面全体をWebカメラとして出力したり、フィルタを使うことで映像ソースを直接Webカメラに出力できます。
64+
* [OBS 27まで](https://github.com/Fenrirthviti/obs-virtual-cam/releases)
65+
* [OBS 28以降](https://github.com/Avasam/obs-virtual-cam/releases)
66+
67+
※インストーラー版がおすすめです。zip版ではコマンドラインから作業が必要になります。

assets/LICENSE_ThirdParty.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[
2+
{
3+
"License": "PSF License",
4+
"Name": "Python",
5+
"Version": "3.9.13",
6+
"Link": "https://docs.python.org/3/license.html#psf-license"
7+
},
8+
{
9+
"License": "BSD License",
10+
"Name": "numpy",
11+
"Version": "1.23.0",
12+
"Link": "https://github.com/numpy/numpy/blob/main/LICENSE.txt"
13+
},
14+
{
15+
"License": "MIT License",
16+
"Name": "opencv-python",
17+
"Version": "4.5.5.64",
18+
"Link": "https://github.com/opencv/opencv-python/blob/4.x/LICENSE.txt"
19+
},
20+
{
21+
"License": "HPND",
22+
"Name": "Pillow",
23+
"Version": "9.2.0",
24+
"Link": "https://github.com/python-pillow/Pillow/blob/main/LICENSE"
25+
},
26+
{
27+
"License": "MIT License",
28+
"Name": "ttkbootstrap",
29+
"Version": "1.9.0",
30+
"Link": "https://github.com/israel-dryer/ttkbootstrap/blob/master/LICENSE"
31+
},
32+
{
33+
"License": "MIT License",
34+
"Name": "windows-capture-device-list",
35+
"Version": "1.1.0",
36+
"Link": "https://github.com/yushulx/python-capture-device-list/blob/master/LICENSE"
37+
}
38+
]

assets/default_setting.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"webcamera": {
3+
"frame_rate": 60,
4+
"input_device": "",
5+
"resolution": ""
6+
},
7+
"replay": {
8+
"auto_restart": 120,
9+
"length": 600,
10+
"recording_preview": true
11+
}
12+
}

assets/forward.png

818 Bytes
Loading

assets/next.png

904 Bytes
Loading

assets/pause.png

681 Bytes
Loading

0 commit comments

Comments
 (0)