-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
::: subtitles_translator.cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
### Usage | ||
!!! note | ||
Please note that the current version only supports MP4 video files (MKV support coming soon). | ||
Your MP4 must contain only one subtitles track, which will be translated and replaced in a new MP4 file. | ||
|
||
Please note that the current version only supports MP4 video files (MKV support coming soon). | ||
Your MP4 must contain only one subtitles track, which will be translated and replaced in a new MP4 file. | ||
You can also translates SRT subtitles files, or extract and translate SRT files from a MP4 (look at the doc!). | ||
## MP4 to MP4 | ||
|
||
With the following command, subtitles from 'video.mp4' will be extracted and translated from 'french' to 'english'. The video containing translated subtitles will be saved as 'translated_video.mp4': | ||
|
||
```shell | ||
subtitles_translator -i video.mp4 -o translated_video.mp4 -s fr -t en | ||
subtitles_translator -i video.mp4 -o translated_video.mp4 -s fr -t en | ||
``` | ||
|
||
## MP4 to SRT | ||
|
||
With the following command, subtitles from 'video.mp4' will be extracted and translated from 'french' to 'english'. Translated subtitles will be saved as 'translated.srt' | ||
|
||
```shell | ||
subtitles_translator -i video.mp4 -o translated.srt -s fr -t en | ||
``` | ||
|
||
## SRT to SRT | ||
|
||
With the following command, subtitles contained in the SRT file "source.srt" will be translated from 'french' to 'english'. Translated subtitles will be saved as 'translated.srt' | ||
|
||
```shell | ||
subtitles_translator -i "source.srt" -o translated.srt -s fr -t en | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters