Skip to content

ParthMandaliya/youtube-drive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

189 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube-Drive Buy Me A Coffee

Python Ubuntu Latest License

YouTube-Drive is a tool designed to encrypt and compress files and directories into videos made up of QR codes, allowing you to leverage YouTube for storage.

1. Installation and Prerequisites

Before using YouTube-Drive, ensure you have the necessary dependencies:

sudo apt install -y python3-setuptools
sudo apt install -y ffmpeg x265 libx265-dev libsm6 libxext6
sudo apt install -y libzbar-dev zbar-tools libzbar0
sudo apt install -y youtube-dl make

2. Usage

After installing the necessary requirements, proceed with the following commands:

2.1 Clone the repo

git clone https://github.com/ParthMandaliya/youtube-drive.git

Upgrade setuptools to latest version

python -m pip install --upgrade pip setuptools

Install yt-drive

make install

2.2 Running Tests

To run all test cases:

make test

2.3 Install and Start Service

To install and start the service:

make install_service

2.4 Convert Directory / File to Video

Convert directory or file to a video:

yt-drive f2v --source <path/to/directory/or/file> --dest <video/output/path>

2.5 Convert Video Back to File or Directory

Convert video back to file or directory:

yt-drive v2f --source <path/to/video> --dest <destination>

2.6 Uninstall Service

To uninstall the service:

make uninstall_service

3. yt-drive CLI

To Modify Configuration Settings

Use the yt-drive CLI to change configuration settings. For instance, to stop applying padding to files smaller than 10MB, execute:

yt-drive config apply-padding -a False

To retrieve the value of any setting, execute:

yt-drive config apply-padding

Storing Client Secrets

To enable video uploads to YouTube, client-secrets must be stored in the database. Use the following command:

yt-drive database client-secrets -a <path/to/client-secrets.json/file>

If YouTube upload credentials are not present in the database, a prompt will guide you through the authentication process. Follow the provided link in the terminal, grant access to YouTube, and a youtube-upload-credentials.json file will be generated. After video uploads, these credentials will be saved in the database, eliminating the need to reauthorize for subsequent uploads. To save the upload-credentials file to database manually run following command:

yt-drive database upload-credentials -a <path/to/youtube-upload-credentials.json/file>

About

Free & Open-Source YouTube Cloud Drive

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors