Video.proto 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. syntax = "proto2";
  2. message PublishedBeforeJoystream {
  3. optional bool is_published = 1;
  4. optional uint32 timestamp = 2;
  5. }
  6. // Joystream Specific License type
  7. message License {
  8. // License code defined by Joystream. [reference](../src/KnownLicenses.json)
  9. optional int32 code = 1;
  10. // Text for licenses that require an attribution
  11. optional string attribution = 2;
  12. // Text for custom license type
  13. optional string custom_text = 3;
  14. }
  15. // Codec, Container, MIME media-type information
  16. message MediaType {
  17. // string name field from FFmpeg libavcodec/codec_desc.c
  18. optional string codec_name = 1;
  19. // Video container format, eg. 'MP4', 'WebM', 'Ogg'
  20. // https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Video_codecs
  21. optional string container = 2;
  22. // MIME Media Type, eg. 'video/mp4'
  23. // https://www.iana.org/assignments/media-types/media-types.xhtml#video
  24. optional string mime_media_type = 3;
  25. }
  26. message VideoMetadata {
  27. // Title Text
  28. optional string title = 1;
  29. // Video Description
  30. optional string description = 2;
  31. // Lengths of video in seconds
  32. optional int32 duration = 3;
  33. // Resolution of the video
  34. optional int32 media_pixel_height = 4;
  35. // Resolution of the video
  36. optional int32 media_pixel_width = 5;
  37. // Encoding and Container format used
  38. optional MediaType media_type = 6;
  39. // ISO_639-1 Language [Code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
  40. optional string language = 7;
  41. // License type for the media
  42. optional License license = 8;
  43. // Date of publication of it was published before joystream
  44. optional PublishedBeforeJoystream published_before_joystream = 9;
  45. // Does video have marketing or advertising in the stream
  46. optional bool has_marketing = 10;
  47. // Should video be publicy visible yet
  48. optional bool is_public = 11;
  49. // Does Video have explicit language or scenes
  50. optional bool is_explicit = 12;
  51. }