Git Product home page Git Product logo

ipfs-uploader's Introduction

Crowdin License: GPL v3 DTube channel on Discord PRs Welcome

DTube App

This is the main javascript application you can use on d.tube. This is probably the starting point for anyone wanting to contribute to d.tube.

Preview

DTube Homepage Preview

Install

Install Meteor

  • Linux and Mac: curl https://install.meteor.com/ | sh
  • Windows: link

Install the app

Clone this repository and meteor npm install in it. This will install all dependencies coming from npm including the ones required for development.

Start the app

Finally, do meteor in the folder to start the app in development mode.

Options:
  • -p 3456 for running on a different port than the default 3000.
  • --production will minify and merge the javascript and css files.

Meteor will automatically push any change on the code to the browser while you keep the meteor dev server running.

Going in-depth

Running blockchain locally

You can run a blockchain locally on your PC to avoid sending transactions onto the live network. Follow instructions in dtube/avalon, then just change API to 'localhost:3001' in the settings page to point your UI to your development chain.

Working with Uploads

For doing anything on the upload side, it is strongly recommended to run your own dtube/ipfs-uploader. Once running, simply turn the localhost setting to true in client/settings.js and it will upload locally instead of our production servers.

Working on the Player

As you can see, we use the embed directly available on emb.d.tube. This is the dtube/embed repository. Feel free to clone it and directly point the client/views/commons/videos/player.js to your file:// version of the player if you want to make changes that include the player.

Working with pre-rendering for bots

The dtube/minidtube repository is responsible for all the pre-rendering and serving a decent version of d.tube to bots which normally wouldn't be able to.

Structure

  • .meteor meteor files, don't touch unless you know what you are doing.
  • .vscode if you use visual studio code.
  • public all the static files like pictures, fonts and translations.
  • client all the app code
    • client/collections minimongo collections that templates feed from
    • client/css css files.
    • client/lib semantic ui related code.
    • client/views templates, each has 2 files, html and js, a handlebar template and associated logic.
      • client/views/commons all the re-used templates
      • client/views/pages all the templates matching a route in router.js
      • client/views/topbar the fixed menu on top of the app
      • client/views/sidebar the sidebar menu

Common Issues

If you are using windows, the meteor npm seems to be buggy at times. You can try using the normal npm instead if you have that installed.

After each meteor or package.json update, you will need to re-run meteor npm install

For any help, feel free to join us in our Discord Channel

Contributing

If you want to contribute to the project, please read this page.

ipfs-uploader's People

Contributors

hightouch67 avatar kcchouette avatar skzap avatar softlair38 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ipfs-uploader's Issues

bulk uploader for dtube

Hi, is there a bulk uploader for dtube? It could auto choose the thumbnail and publish the videos? Since I have quite a lot videos posted on youtube which are created in last few years, thanks!

Uploading files in avi format results in broken videos

Upon uploading a few old videos which were recorded in the avi format, I noticed some issues with how DTube handles the video. The ones I can name off the top of my head include:

  • The uploader informed me that the format cannot be previewed while I was uploaded. I was additionally unable to generate a snap (thumbnail) after the upload process.
  • Once the video does upload, you're only able to play the 480p version. Attempting to play the Source results in an error saying "source missing or unsupported format".
  • When the video appears on a channel or in a search, the bottom-right tag showing you how long the video is doesn't appear over the thumbnail.
  • When positioning the cursor on the play bar, you don't see a thumbnail preview of the video, but instead a black box saying "PREVIEW NOT AVAILABLE", even if a sprite image exists.

I'm proposing one of three things: Either allow the DTube player to support less common formats (avi, mpg, mkv), convert the source as well and treat it that as the original file, or tell the user to use a supported format (mp4, ogv) and don't allow them to upload in other formats. The current functionality results in partly broken videos which don't have all features available.

Make Overlay Image Bigger

It's an issue for

  • SteemIt: steemit/condenser#2409
  • Facebook: it won't display any picture on facebook feed etc if the picture is smaller than 200x200

I don't know what size we should use. Atm we have them in 210x118.

What about doubling up to 420x236 ?

Documentation is horrible

i am not sure what exactly this is suppose to do, or how to do it. Seems like this simplifies a legit problem, just not sure what it is or how to do it.

documentation

Wondering how this works, not a c# programmer so reading the source may not tell me what I need to know to set this up. Are you open to starting a FAQ?

Here are some questions i have:

what is this, list functions.

what platforms are supported

how do you setup and configure it

Offer more options for video formats (1080p, 720p, etc)

I would like to be able to view Dtube videos in multiple different formats to suit my downstream bandwidth and screen resolution e.g. on smartphones.

Currently I can only watch at the resolution of the original "source" video, and something called 480 (I assume it is ~850x480 or 480x270?)

YouTube offers multiple different transcoded options such as:

1080p
720p
480p
360p
240p
144p

And also, resolution is getting bigger and bigger with 4K and UHD coming fast.

Take a look at Livepeer's decentralized livestreaming platform https://github.com/livepeer their primary function is transcoding video into multiple different bit rates and formats. The video doesn't need to be live-streamed although obviously it can be.

Upload erroron d.tube

Hi,
I am not sure where to post errors for dtube, so I start here.

When I upload a vide and try to save it on d.tube I get :

ร—
Error
permlink.size() > STEEM_MIN_PERMLINK_LENGTH && permlink.size() < STEEM_MAX_PERMLINK_LENGTH: Permlink is not a valid size.


Whats wrong ?

[Feature Request] Get thumbnail from uploaded video

Hi.

I'd like to request the ability to choose a thumbnail from the uploaded video, instead of always having to choose a picture, from my device.

This would make it easier to do do quick uploads, where a flashy thumbnail is not needed.

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.