File size: 1,222 Bytes
63ecb0d
 
7a7c7ac
97c4132
7a7c7ac
97c4132
7a7c7ac
 
 
 
147a645
7a7c7ac
66791b6
 
147a645
66791b6
 
 
ae0ed1b
 
7a7c7ac
 
 
 
 
 
 
 
 
147a645
 
 
 
 
 
7a7c7ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# PROJECT-T

## Installation

```
pip install -r requirement.txt
```

## Usage
```
usage: pipeline.py [-h] [--link LINK] [--local_path LOCAL_PATH] [--download DOWNLOAD] [--result RESULT] [--video_name VIDEO_NAME] [--model_name]

quick start:

example online: python3 pipeline.py --link https://www.youtube.com/watch?v=61c4dn6851g --download ./downloads --result ./results --video_name SO_I_CHOSE_RANDOM

example offline: python3 pipeline.py --local_path test_translation.m4a --result ./results --video_name test_translation

example text input: python pipeline.py --text_file "/home/jiaenliu/project-t/results/huanghe_translation_en.txt" --result "/home/jiaenliu/project-t/results" --video_name "huanghe_test"

options:
  -h, --help            show this help message and exit
  --link LINK           youtube video link here
  --local_path LOCAL_PATH
                        local video path here
  --download DOWNLOAD   download path
  --result RESULT       translate result path
  --video_name VIDEO_NAME
                        video name
  --model_name MODEL_NAME 
                        model name

if you cannot download youtube video, please follow the link below.
https://github.com/pytube/pytube/issues/1498

```