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.

69 lines
2.3 KiB

6 years ago
6 years ago
6 years ago
6 years ago
  1. # Prismedia
  2. A scripting way to upload videos to peertube and youtube
  3. ## Dependencies
  4. Search in your package manager, otherwise use ``pip install --upgrade``
  5. - google-auth
  6. - google-auth-oauthlib
  7. - google-auth-httplib2
  8. - google-api-python-client
  9. - docopt
  10. - schema
  11. - python-magic
  12. - requests-toolbelt
  13. ## How To
  14. Currently in heavy development
  15. Support only mp4 for cross compatibily between Youtube and Peertube
  16. ```
  17. ./prismedia_upload.py -h
  18. prismedia_upload - tool to upload videos to Peertube and Youtube
  19. Usage:
  20. prismedia_upload.py --file=<FILE> [options]
  21. prismedia_upload.py -h | --help
  22. prismedia_upload.py --version
  23. Options:
  24. --name=NAME Name of the video to upload. [default: video filename]
  25. -d, --description=STRING Description of the video. [default: default description]
  26. -t, --tags=STRING Tags for the video. comma separated
  27. -c, --category=STRING Category for the videos, see below. [ default: Films]
  28. --cca License should be CreativeCommon Attribution (affects Youtube upload only)
  29. -p, --privacy=STRING Choose between public, unlisted or private. [default: private]
  30. --disable-comments Disable comments (Peertube only) [default: comments are enabled]
  31. -h --help Show this help.
  32. --version Show version.
  33. Categories:
  34. Category is the type of video you upload. Default is films.
  35. Here are available categories from Peertube and Youtube:
  36. music, films, vehicles,
  37. sports, travels, gaming, people,
  38. comedy, entertainment, news,
  39. how to, education, activism, science & technology,
  40. science, technology, animals
  41. ```
  42. ## Features
  43. - [x] Youtube upload
  44. - [x] Peertube upload
  45. - Support of all videos arguments (description, tags, category, licence, ...)
  46. - [x] description
  47. - [x] tags
  48. - [x] categories
  49. - [x] license: cca or not, affect only Youtube as Peertube uses Attribution by design
  50. - [x] privacy (between public, unlisted or private)
  51. - [x] enabling/disabling comment (Peertube only as Youtube API has no option for that)
  52. - [ ] nsfw
  53. - [ ] thumbnail/preview
  54. - [ ] Use a config file (NFO) file to retrieve videos arguments
  55. - [ ] Record and forget: put the video in a directory, and the script uploads it for you
  56. - [ ] Usable on Desktop (Linux and/or Windows and/or MacOS)
  57. - [ ] Graphical User Interface
  58. ## Sources
  59. inspired by [peeror](https://git.drycat.fr/rigelk/Peeror) and [youtube-upload](https://github.com/tokland/youtube-upload)