Scripting way to upload videos to peertube and youtube
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
LecygneNoir 4be4a1727e Add option to disable comments on Peertube (Youtube has no option in API to do that) 6 years ago
lib Add option to disable comments on Peertube (Youtube has no option in API to do that) 6 years ago
.gitignore Add option to disable comments on Peertube (Youtube has no option in API to do that) 6 years ago
LICENSE initial commit 6 years ago
README.md Add option to disable comments on Peertube (Youtube has no option in API to do that) 6 years ago
peertube_secret.sample add peertube URL and https/http config to the peertube_secret config file 6 years ago
prismedia_upload.py Add option to disable comments on Peertube (Youtube has no option in API to do that) 6 years ago
youtube_secret.json.sample use youtube_secret instead of client_secret to allow more flexibility (possibility to use peertube_secret) 6 years ago

README.md

Prismedia

A scripting way to upload videos to peertube and youtube

Dependencies

Search in your package manager, otherwise use pip install --upgrade

  • google-auth
  • google-auth-oauthlib
  • google-auth-httplib2
  • google-api-python-client
  • docopt
  • schema
  • python-magic
  • requests-toolbelt

How To

Currently in heavy development

Support only mp4 for cross compatibily between Youtube and Peertube

./prismedia_upload.py -h
prismedia_upload - tool to upload videos to Peertube and Youtube

Usage:
  prismedia_upload.py --file=<FILE> [options]
  prismedia_upload.py -h | --help
  prismedia_upload.py --version

Options:
  --name=NAME  Name of the video to upload. [default: video filename]
  -d, --description=STRING  Description of the video. [default: default description]
  -t, --tags=STRING  Tags for the video. comma separated
  -c, --category=STRING  Category for the videos, see below. [ default: Films]
  --cca  License should be CreativeCommon Attribution (affects Youtube upload only)
  -p, --privacy=STRING Choose between public, unlisted or private. [default: private]
  --disable-comments  Disable comments (Peertube only) [default: comments are enabled]
  -h --help  Show this help.
  --version  Show version.

Categories:
  Category is the type of video you upload. Default is films.
  Here are available categories from Peertube and Youtube:
    music, films, vehicles,
    sports, travels, gaming, people,
    comedy, entertainment, news,
    how to, education, activism, science & technology,
    science, technology, animals

Features

  • Support of all videos arguments (description, tags, category, licence, ...)

Sources

inspired by peeror and youtube-upload