Skip to content

Commit

Permalink
add recommendation on WSL for Windows users
Browse files Browse the repository at this point in the history
  • Loading branch information
baxtree committed Jan 15, 2024
1 parent f4d06b1 commit 133d49d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
5 changes: 4 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
include requirements.txt
graft subaligner
include pyproject.toml
include setup.py
global-exclude *.py[cod]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ If you prefer using a containerised environment over installing everything local
```
$ docker run -v `pwd`:`pwd` -w `pwd` -it baxtree/subaligner bash
```
For users on Windows 10: [Docker Desktop](https://docs.docker.com/docker-for-windows/install/) is the only option at present.
For Windows users, you can use Windows Subsystem for Linux ([WSL](https://learn.microsoft.com/en-us/windows/wsl/install)) to install Subaligner.
Alternatively, you can use [Docker Desktop](https://docs.docker.com/docker-for-windows/install/) to pull and run the image.
Assuming your media assets are stored under `d:\media`, open built-in command prompt, PowerShell, or Windows Terminal and run:
```
docker pull baxtree/subaligner
Expand Down
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,18 @@ def get_tag(self):
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Intended Audience :: Developers",
"Topic :: Utilities",
],
license="MIT",
url="https://subaligner.readthedocs.io/en/latest/",
url="https://github.com/baxtree/subaligner",
description="Automatically synchronize and translate subtitles, or create new ones by transcribing, using pre-trained DNNs, Forced Alignments and Transformers.",
long_description=readme + "\n\n",
long_description_content_type="text/markdown",
python_requires=">=3.8",
project_urls={
"Documentation": "https://subaligner.readthedocs.io/en/latest/",
"Source": "https://github.com/baxtree/subaligner",
},
python_requires=">=3.8,<3.12",
wheel=True,
package_dir={"subaligner": "subaligner"},
packages=[
Expand Down
4 changes: 2 additions & 2 deletions site/source/advanced_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ flags to customise the configuration on tuning:

For output subtitles like MicroDVD relying on the frame rate, its value needs to be passed in with `-fr` or `--frame_rate`.

**On Windows**::
**On Windows with Docker Desktop**::

docker run -v "/d/media":/media -w "/media" -it baxtree/subaligner COMMAND

The aforementioned commands can be run with `Docker Desktop <https://docs.docker.com/docker-for-windows/install/>`_ on Windows 10.
The aforementioned commands can be run with `Docker Desktop <https://docs.docker.com/docker-for-windows/install/>`_ on Windows. Nonetheless, it is recommended to use Windows Subsystem for Linux (`WSL <https://learn.microsoft.com/en-us/windows/wsl/install>`_) to install Subaligner.
4 changes: 2 additions & 2 deletions site/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ to create a virtual environment and set up all the dependencies:
(.venv) $ subaligner_train --help
(.venv) $ subaligner_tune --help

**On Windows**::
**On Windows with Docker Desktop**::

docker pull baxtree/subaligner
docker run -v "/d/media":/media -w "/media" -it baxtree/subaligner bash

Assuming that your media assets are stored under "d:\\media", open built-in command prompt, PowerShell, or Windows Terminal and run the above.
`Docker Desktop <https://docs.docker.com/docker-for-windows/install/>`_ is the only option at present for Windows users.
`Docker Desktop <https://docs.docker.com/docker-for-windows/install/>`_ is the only option at present for Windows users. Nonetheless, it is recommended to use Windows Subsystem for Linux (`WSL <https://learn.microsoft.com/en-us/windows/wsl/install>`_) to install Subaligner.
4 changes: 2 additions & 2 deletions site/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ or `--stretch_on` as shown below.

(.venv) $ subaligner -m dual -v video.mp4 -s subtitle.srt -o /path/to/the/output/subtitle.srt

**On Windows**::
**On Windows with Docker Desktop**::

docker run -v "/d/media":/media -w "/media" -it baxtree/subaligner COMMAND

The aforementioned commands can be run with `Docker Desktop <https://docs.docker.com/docker-for-windows/install/>`_ on Windows 10.
The aforementioned commands can be run with `Docker Desktop <https://docs.docker.com/docker-for-windows/install/>`_ on Windows. Nonetheless, it is recommended to use Windows Subsystem for Linux (`WSL <https://learn.microsoft.com/en-us/windows/wsl/install>`_) to install Subaligner.

**Re-configure FFmpeg/Libav path**::

Expand Down

0 comments on commit 133d49d

Please sign in to comment.