Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr-Ermolinskiy authored Mar 13, 2024
1 parent 5d391f2 commit 13dfc8e
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ It is a simple application based on Tkinter and Moviepy to convert AVI video to

## Installation

First you need to create a virtual environment using Python 3.11.6 (only this version was tested). You can easilly perform that in PyCharm.

Otherwise you can open a terminal or command prompt and navigate to the directory where you want to create the virtual environment.
If you are using git, you can clone the project and set up a virtual environment using Python 3.11.6 (only this version was tested) in PyCharm or any other workspace:
```bash
git clone https://github.com/Petr-Ermolinskiy/Tkinter_AVI_to_MP4_Converter.git
```
Otherwise you can download the files manually. Then you can open a terminal or command prompt and navigate to the directory where you want to create the virtual environment, i.e., the directory where you have placed the files from this repository. You can use `cd your/path/to/the/directory`.

Run the following command to create a new virtual environment named `venv`:
Run the following command to create a new virtual environment named `venv` (make sure that you have the Python 3.11.6 installed):
```bash
python3.11 -m venv venv
```
Expand All @@ -26,9 +28,33 @@ On macOS and Linux, you can do this by running:
source venv/bin/activate
```

Finally
Finally, you can install all the necessary packages:

```bash
pip install -r requirements.txt
```

Run the script:
```bash
python main.py
```

Please __note__ that this application supports both Russian and English languages. To change the language, you can simply click on the title of the main screen, i.e., 'Конвертация видео из AVI в MP4' or 'Convert video from AVI to MP4'.




## Creating an exe file

To create an exe file in Windows, you need to execute the following command in the terminal or command prompt:

```bash
pyinstaller --onefile --windowed --add-data "logo.ico;." --icon=logo.ico main.py
```
I strongly recommend that you use [UPX](https://upx.github.io/) to create exe files using pyinstaller to reduce the size of the executable. In this case you can run the following command:
```bash
pyinstaller --onefile --windowed --add-data "logo.ico;." --icon=logo.ico --upx-dir=Path\to\the\upx-4.2.2-win64 main.py
```

## Usage

Just add the path to the folder with AVI files in the empty field, specify the video bitrate and click the button.

0 comments on commit 13dfc8e

Please sign in to comment.