You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/bug_report.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,14 @@ A clear and concise description of what the bug is.
14
14
15
15
**To Reproduce**
16
16
Steps to reproduce the behavior:
17
+
17
18
1. Command line arguments you are using.
18
-
2. A complete copy of command line output of the autosub. You can use `Ctrl-A` and `Ctrl-C` to copy all of them. Use the following markdown code block syntax is recommended.
19
+
2. A complete copy of command line output of the autosub. You can use `Ctrl-A` and `Ctrl-C` to copy all of them. Use the following markdown code block syntax is recommended. Copy them into the place between \`\`\`.
19
20
20
21
```
21
22
```
22
23
23
-
3. etc.
24
+
3. etc.
24
25
25
26
**Expected behavior**
26
27
A clear and concise description of what you expected to happen.
@@ -29,9 +30,10 @@ A clear and concise description of what you expected to happen.
29
30
If applicable, add screenshots to help explain your problem. But it is not recommended using screenshots to demonstrate the commandline output unless you think it really matters.
30
31
31
32
**Environment (please complete the following information):**
32
-
- OS: [e.g. windows]
33
-
- Python Version: [e.g. Python 2.7]
34
-
- Autosub Version: [e.g. 0.4.0]
33
+
34
+
- OS: [e.g. windows]
35
+
- Python Version: [e.g. Python 2.7]
36
+
- Autosub Version: [e.g. 0.4.1-alpha/0.5.4-alpha Nuitka windows release]
- Add extra environment variables check when finding dependencies. [issue #91](https://github.com/BingLingGroup/autosub/issues/91)
59
+
- Add arguments parser input when open it without arguments. [issue #92](https://github.com/BingLingGroup/autosub/issues/92)
60
+
- Add subtitles processing when not input `-SRC`.
61
+
62
+
#### Changed(0.5.6-alpha)
63
+
64
+
- Change option `-sml` into `-nsml`.
65
+
- Change defaults for Auditok.
66
+
67
+
#### Fixed(0.5.6-alpha)
68
+
69
+
- Fix Google Speech-to-Text API empty result response bug. [issue #89](https://github.com/BingLingGroup/autosub/issues/89)
70
+
71
+
#### Deprecated(0.5.6-alpha)
72
+
73
+
- Deprecate Python 2.7 support.
74
+
37
75
### [0.5.5-alpha] - 2020-03-04
38
76
39
77
#### Added(0.5.5-alpha)
@@ -43,29 +81,34 @@ Click up arrow to go back to TOC.
43
81
- Add exception when receiving error from [Google-Speech-v2](https://github.com/gillesdemey/google-speech-v2).
44
82
- Add Nuitka compatibility codes to stop program compiled by Nuitka when using Google Cloud service account credentials. [Nuitka pkg_resources.DistributionNotFound error](https://github.com/Nuitka/Nuitka/issues/146)
45
83
46
-
#### Changed(0.5.5-alpha)
84
+
#### Fixed(0.5.5-alpha)
47
85
48
86
- Fix high memory/RAM usage partially by terminating child processes, lowering default multiprocessing counts and using `gc.collect(0)`. [issue #67](https://github.com/BingLingGroup/autosub/issues/67), [issue #74](https://github.com/BingLingGroup/autosub/issues/74)
- Fix Nuitka build after updating Nuitka to 0.6.4(Environment Anaconda2 python3.5).
155
195
- Refactor api_gen_text to 2 parts. One is speech_to_text. Another is text_translation. [issue #33](https://github.com/BingLingGroup/autosub/issues/33)
156
196
- Refactor txt output. Now txt can output regions.
157
-
- Fix vtt output replacing all commas to dots issues.
- Fix several issues. [agermanidis/autosub pull request #128](https://github.com/agermanidis/autosub/pull/128) by [@iWangJiaxiang](https://github.com/iWangJiaxiang)
186
235
- Fix "ffmpeg.exe" causes "Dependency not found: ffmpeg" on Windows.
@@ -190,7 +239,8 @@ Click up arrow to go back to TOC.
@@ -96,6 +97,13 @@ After autosub-0.4.0, all of the codes is compatible with both Python 2.7 and Pyt
96
97
97
98
About the dependencies installation. If you install autosub by pip, ffmpeg and ffmpeg-normalize won't be installed together not like the Python site-packages already listed on the `setup.py` or `requirements.txt`. You need to install them separately. But of course they are optional. They aren't necessary if you only use autosub to translate your subtitles.
98
99
100
+
ffmpeg, ffprobe, ffmpeg-normalize need to be put on one of these places to let the autosub detect and use them. The following codes are in the [constants.py](autosub/constants.py). Priority is determined in order.
101
+
102
+
1. Set the following environment variables before running the program: `FFMPEG_PATH`, `FFPROBE_PATH` and `FFMPEG_NORMALIZE_PATH`. It will override the ones located at the environment variable `PATH`. This will be helpful if you don't want to use the one in the `PATH`.
103
+
2. Add them to the environment variable `PATH`. No need to worry about if using package manager to install such as using pip to install ffmpeg-normalize and using chocolatey to install ffmpeg.
104
+
3. Add them to the same directory as the autosub executable.
105
+
4. Add them to the current command line working directory.
106
+
99
107
About the git installation. If you don't want to install git to use pip [VCS](https://pip.pypa.io/en/stable/reference/pip_install/#vcs-support) support to install python package or just confused with git environment variables, you can manually click that clone and download button to download the source code and use pip to install the source code [locally](https://pip.pypa.io/en/stable/reference/pip_install/#description) by input these commands.
100
108
101
109
```batch
@@ -157,6 +165,8 @@ You can just go to the [release page](https://github.com/BingLingGroup/autosub/r
157
165
158
166
Tips: `Shift - Right Click` is the keyboard shortcut for opening a Powershell on current directory. To open an exe at current directory, the format is like `.\autosub`.
159
167
168
+
Or you can just directly open it and input the args manually though I don't recommend doing this due to its less efficiency.
169
+
160
170
- The one without pyinstaller suffix is compiled by Nuitka. It's faster than the pyinstaller due to its compiling feature different from pyinstaller which just bundles the application.
161
171
- ffmpeg and ffmpeg-normalize are also in the package. The original ffmpeg-normalize doesn't have a standalone version. The standalone version of ffmpeg-normalize is built separately. Codes are [here](https://github.com/BingLingGroup/ffmpeg-normalize).
162
172
- If there's anything wrong on the both releases, or the package size and any other things are annoying you, you can just use the traditional pip installation method below.
@@ -260,13 +270,13 @@ To solve this problem, autosub uses [langcodes](https://github.com/LuminosoInsig
260
270
261
271
To manually match or see the full list of the lang codes, run the utility with the argument `-lsc`/`--list-speech-codes` and `-ltc`/ `--list-translation-codes`. Or open [constants.py](autosub/constants.py) and check.
262
272
263
-
To get a subtitles first line language, you can use `-dsl` to detect.
273
+
To get the language of the first line of the subtitles file, you can use `-dsl` to detect.
264
274
265
275
- Currently, autosub allows to send the lang codes not from the `--list-speech-codes`, which means in this case the program won't stop.
266
276
267
277
- Though you can input the speech lang code whatever you want, need to point out that if not using the codes on the list but somehow the API accept it, [Google-Speech-v2](https://github.com/gillesdemey/google-speech-v2) recognizes your audio in the ways that depend on your IP address which is uncontrollable by yourself. This is a known issue and I ask for a [pull request](https://github.com/agermanidis/autosub/pull/136) in the original repo.
268
278
269
-
- On the other hand, [py-googletrans](https://github.com/ssut/py-googletrans) is stricter. When it receive a lang code not on its list, it will throw an exception. Of course it can be designed as a throw-catch code block and ask user to input once again but currently I don't add this support so an improper translation lang code input will stop the program running unless you use the best match method mentioned above.
279
+
- On the other hand, [py-googletrans](https://github.com/ssut/py-googletrans) is stricter. When it receive a lang code not on its list, it will throw an exceptionand stop translation.
270
280
271
281
- Apart from the user input, another notable change is I split the `-S` option into two parts, `-S` and `-SRC`. `-S` option is for speech recognition lang code. `-SRC` is for translation source language. When not offering the arg of `-SRC`, autosub will automatically match the `-S` arg by using [langcodes](https://github.com/LuminosoInsight/langcodes) and get a best-match lang code for translation source language though [py-googletrans](https://github.com/ssut/py-googletrans) can auto-detect source language. Of course you can manually specify one by input `-SRC` option. `-D` is for translation destination language, still the same as before.
0 commit comments