Commit
·
458faa7
1
Parent(s):
3b25c9f
add readme
Browse files
README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Multilang ASR Captioner
|
| 2 |
+
|
| 3 |
+
A multilingual automatic speech recognition and video captioning CLI tool using faster whisper on cpu.
|
| 4 |
+
|
| 5 |
+
## Requirements and Instalations
|
| 6 |
+
|
| 7 |
+
To run this tool you will need the following sofware installed on your computer:
|
| 8 |
+
+ [ImageMagick](https://imagemagick.org/script/download.php)
|
| 9 |
+
+ [Python (3.11)](https://www.python.org/downloads/release/python-3116/)
|
| 10 |
+
|
| 11 |
+
```{bash}
|
| 12 |
+
git clone git@github.com:marquesafonso/resultados_eleitorais_autarquias_76-97.git
|
| 13 |
+
|
| 14 |
+
pip install pipenv
|
| 15 |
+
|
| 16 |
+
pipenv install
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
## Quick start
|
| 20 |
+
|
| 21 |
+
Run the following code to your example. The example is based on a youtube video url (optional):
|
| 22 |
+
|
| 23 |
+
```
|
| 24 |
+
pipenv run python .\main.py --invideo_dir './data/' --invideo_filename '<your_video>.mp4' --outvideo_path './data/<output_video>.mp4' --video_url 'https://www.youtube.com/watch?v=<your_youtube_video>' --srt_path '<your_srt_file>.srt'
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
Fontsize and Background Color arguments are available:
|
| 28 |
+
|
| 29 |
+
```
|
| 30 |
+
pipenv run python .\main.py --invideo_dir './data/' --invideo_filename '<your_video>.mp4' --outvideo_path './data/<output_video>.mp4' --video_url 'https://www.youtube.com/watch?v=<your_youtube_video>' --srt_path '<your_srt_file>.srt' --fontsize 28 --bg_color None
|
| 31 |
+
```
|