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.

68 lines
2.2 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. -h --help Show this help.
  31. --version Show version.
  32. Categories:
  33. Category is the type of video you upload. Default is films.
  34. Here are available categories from Peertube and Youtube:
  35. music, films, vehicles,
  36. sports, travels, gaming, people,
  37. comedy, entertainment, news,
  38. how to, education, activism, science & technology,
  39. science, technology, animals
  40. ```
  41. ## Features
  42. - [x] Youtube upload
  43. - [x] Peertube upload
  44. - Support of all videos arguments (description, tags, category, licence, ...)
  45. - [x] description
  46. - [x] tags
  47. - [x] categories
  48. - [x] license: cca or not, affect only Youtube as Peertube uses Attribution by design
  49. - [x] privacy (between public, unlisted or private)
  50. - [ ] enabling/disabling comment
  51. - [ ] nsfw
  52. - [ ] thumbnail/preview
  53. - [ ] Use a config file (NFO) file to retrieve videos arguments
  54. - [ ] Record and forget: put the video in a directory, and the script uploads it for you
  55. - [ ] Usable on Desktop (Linux and/or Windows and/or MacOS)
  56. - [ ] Graphical User Interface
  57. ## Sources
  58. inspired by [peeror](https://git.drycat.fr/rigelk/Peeror) and [youtube-upload](https://github.com/tokland/youtube-upload)