GithubHelp home page GithubHelp logo

5l1v3r1 / youtubedrive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dzhang314/youtubedrive

0.0 0.0 0.0 8 KB

Store files as YouTube videos == infinite disk space

License: MIT License

Mathematica 100.00%

youtubedrive's Introduction

YouTubeDrive Banner


YouTubeDrive is a Wolfram Language (aka Mathematica) package that encodes/decodes arbitrary data to/from simple RGB videos which are automatically uploaded to/downloaded from YouTube. Since YouTube imposes no limits on the total number or length of videos users can upload, this provides an effectively infinite but extremely slow form of file storage.

YouTubeDrive depends externally on FFmpeg, youtube-upload, and youtube-dl. These programs must be downloaded and installed separately, and prior to first use, YouTubeDrive must be configured with their install locations. See below for details.

YouTubeDrive is a silly proof-of-concept, and I do not endorse its high-volume use.

Usage Example

Usage Example

NOTE: A short time needs to pass between calls to YouTubeUpload and YouTubeRetrieve for YouTube to process the uploaded video. I find that 5-10 minutes suffices for small (less than 10MB) file uploads.

The video YouTubeDrive produces in this example can be viewed at https://www.youtube.com/watch?v=Fmm1AeYmbNU.

Installation

  • Install FFmpeg, youtube-upload, and youtube-dl as your operating system dictates.

  • Find an arbitrary test video, say test.mp4, and run youtube-upload --title="Test Video" test.mp4. Follow the displayed instructions to create an OAuth token for your YouTube account. This will be the YouTube account used for all YouTubeDrive uploads.

  • Download and open YouTubeDrive.wl from this repository.

  • In lines 75-77, enter the install locations of the FFmpeg, youtube-upload, and youtube-dl executables. Make sure to use proper string escape sequences (in particular, backslashes \ need to be escaped as double-backslashes \\ in Windows paths).

    75 | FFmpegExecutablePath = "FFMPEG_PATH_HERE";
    76 | YouTubeUploadExecutablePath = "YOUTUBE-UPLOAD_PATH_HERE";
    77 | YouTubeDLExecutablePath = "YOUTUBE-DL_PATH_HERE";
    

    For example, I use the following install locations on my system (Windows 10):

    75 | FFmpegExecutablePath = "C:\\Games\\MiscExes\\ffmpeg.exe";
    76 | YouTubeUploadExecutablePath = Sequence["python",
    77 |   "C:\\Users\\dzhan\\AppData\\Local\\Programs\\" <>
    78 |       "Python\\Python35\\Scripts\\youtube-upload.py"];
    79 | YouTubeDLExecutablePath = "C:\\Games\\MiscExes\\youtube-dl.exe";
    

    Note the use of Sequence[] to call python youtube-upload.py above.

  • After making the above edits, open YouTubeDrive.wl with Mathematica. Then, open the File โ‡จ Install... dialog, and select the following options:

    • Type of Item to Install: Package
    • Source: YouTubeDrive.wl
    • Install Name: YouTubeDrive (no .wl suffix)

    Choose installation for all users or the current user only, according to your preference, and click OK.

youtubedrive's People

Contributors

dzhang314 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.