Alternative IPFS uploader for DTube videos.
Switch branches/tags
Clone or download
techcoderx Provide details of upload when broadcast error occured after successf…
…ul upload

Details provided for reference:
- IPFS video hash
- IPFS thumbnail hash
- IPFS sprite hash
- Video duration
- Video filesize
Latest commit f0f87d3 Nov 30, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client
public
.DS_Store
.gitignore
404.html
ConfigDocs.md
FAQ.md
LICENSE
README.md
config.json
dtube-sprite.sh
getLoginLink.js
index.js
package-lock.json
package.json
whitelist.txt

README.md

IPFS Video Uploader

This is an alternative IPFS uploader to upload videos onto DTube. Includes a basic web UI.

Dependencies required

  • npm command line tools
  • ffmpeg, imagemagick and bc for sprite generation
  • go-ipfs with a running daemon

Additional requirements

  • A SteemConnect application
  • A domain name for HTTPS, plus SSL certificate for that domain installed (code is written to work well with certbot)

Installation

  1. Clone this repository by typing git clone https://github.com/techcoderx/ipfsVideoUploader.git in a terminal window.

  2. Intall all required node modules. cd ipfsVideoUploader && npm install

  3. Configure uploader by modifying config.json file. If you need help with the configuration, view the documentation here

  4. Run node getLoginLink.js to generate SteemConnect login link.

  5. Replace the login link with the one you obtained from step 3 here.

  6. If whitelistEnabled is set to true, add some Steem accounts to the whitelist by modifying whitelist.txt. (one line per Steem user)

  7. Run the app by typing node index.js. Your app will listen to port 80, and 443 if you have HTTPS enabled.

Note: You may need to enable read permissions for /etc/letsencrypt/live/yourdomain.com/ directory for the user account if using HTTPS; and port 80 and 443 binding permissions (or use a reverse proxy).

All uploaded files will be saved in the uploaded folder within the repo.

Supported file formats

IPFS works the best for videos with .mp4, therefore only mp4 files will be supported at this moment. Both .jpg and .png file formats are supported for thumbnail uploads.

Right now the uploader will only take source videos, but options for adding a user-encoded 240p, 480p, 720p and 1080p versions of the source video will be added later.

How to contribute?

If you found any ways to improve on the code, or found any bugs, feel free to create a pull request on the GitHub repository. You can also contact me on Discord techcoderx#7481 if you have any enquiries.