Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/NunoLima10/viflex
Browse files Browse the repository at this point in the history
  • Loading branch information
NunoLima10 committed Apr 19, 2024
2 parents 42b882a + 84363cb commit 15882ed
Showing 1 changed file with 65 additions and 18 deletions.
83 changes: 65 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,85 @@

## Download videos and music from You Tube through your terminal

### Description
> Devflog on [Youtube](https://www.youtube.com/watch?v=jabUVwC8yQU)
>
> Viflex is a cli app for youtube videos with several features, it can download playlist, audios and video covers. The focus is as objective as possible without having to take many steps to start your download directly in the desired folder, designed for video editors who need research and visuals or sound on youtube.
### Installation

> - Download the executable
> - Decompress the file
> - Put the folder address in [environment variable](https://knowledge.autodesk.com/pt-br/support/navisworks-products/troubleshooting/caas/sfdcarticles/sfdcarticles/PTB/Adding-folder-path-to-Windows-PATH-environment-variable.html) ``PATH`` (optional)
> - Put the folder address in environment variable ``PATH`` (optional)
---

### How to use on Windows
> - Open the terminal in the directory where you want to save the file
### How to use
> Recommended to put the exe file address in environment variable PATH, follow this tutorial
> - [On Windows](https://knowledge.autodesk.com/pt-br/support/navisworks-products/troubleshooting/caas/sfdcarticles/sfdcarticles/PTB/Adding-folder-path-to-Windows-PATH-environment-variable.html)
> - [On Ubuntu](https://linuxhint.com/show-path-environment-variables/)
>
> Open the terminal in the directory where you want to save the file
>
> On windows use this shortcut
>
> <img src="images/image.png">
>
> #### Features
>
>
> - Follow the following structure to download only the video
> Viflex commands can be run like this
>```
>viflex -v "video link in quotes"
> viflex "video url" optional flags
> ```
> or this format
>```
>viflex optional flags "video url"
> ```
>
> - Follow the following structure to download only the audio
> #### All optional flags
> | short format | long format | example arguments | help |
> |:------------:|:------------:|:-----------------:|:-------------------------------------------------:|
> | -v | --video | -- | download only the video |
> | -t | --thumbnail | -- | download only the audio |
> | -pl | --playlist | -- | download all videos from playlist |
> | -i | --info | -- | show detailed information about video or playlist |
> | -- | --version | -- | show de current version and exit |
> | -h | -- | -- | show help message and exit |
> | -r | --resolution | 1080p | select video resolution |
> | -p | --path | E:\videos | select output folder |
>
> #### Usage
> How to download a video
>```
>viflex -a "video link in quotes"
>viflex -v "video url"
> ```
### How to use on Ubuntu
> - Similar to windows the only difference is that it must start with `./`
>```
>./viflex -a "video link in quotes"
> How to download audio from the video
>```
>viflex -a "video url"
> ```
---
### Comments
> - Video will be automatically downloaded with best available quality
> - If you haven't put the folder address in the environment variable you can just run the commands in the same directory as the executable
> - If you omit the -v and -a parameters automatically, only the video will be downloaded
> How to download all videos from playlist
>```
>viflex -v -pl "playlist url"
> ```
> How to download the video thumbnail
>```
>viflex "video link in quotes"
>viflex -t "video url"
> ```
> You can make combinations to get the desired result, for example download the audio and thumbnail of all the videos in the play list
>```
>viflex -t -a -pl "playlist url"
> ```
> How to download a video with a specific quality
>```
>viflex -v -r 2160p "video url"
> ```
> #### Progressive vs Adaptive videos
> When you do not specify the video resolution, the best progressive resolution is chosen, the difference between progressive videos and adaptive videos is that in progressive videos the video and audio are contained in a single file while in adaptive videos they are separated, most progressive videos have only 720p and 360p resolutions, this means that when downloading video in 2160p (4k) the video and audio will be separated, joining the files is a functionality to be implemented
>
>#### Comments
> - If you haven't put the folder address in the environment variable you can just run the commands in the same directory as the executable
>
---
### Project diagram
>
> <img src="images/viflex-diagram.png">
>

0 comments on commit 15882ed

Please sign in to comment.