Youtube

Func requirements

  • Upload videos online

  • Watch videos online

  • Search videos online

NonFunc requirements

High performance

Scalability

Real world practices

Facebook

Facebook live

Youtube

Appendix

Video formats

  • One video episode could contain up to 1200 files.

Container

  • Container: Represented by video file extension. It includes video stream, audio stream and metadata (bitrate, device, resolution, time of creation, subtitles, etc.)

    • FLV: Flash video format created by Adobe.

    • MP4: Standard MPEG-4 format.

    • WMV: Windows media video.

    • MOV: Apple quicktime

Codecs

  • Video codecs:

    • H.264 - the most commonly used video format

    • H.265(HEVC) - double compression rate of H.264, however need triple resources to encode, proprietary protocol.

    • VP9

    • Av1

  • Audio codecs:

    • MP3 - Popular with wide support. Save space without noticeable quality loss. Limited functionality.

    • AAC - Widely supported. More efficient than MP3. Limit on audio channel.

    • AC3

Streaming protocls

TODO: Adaptive streaming

  • https://underhood.blog/adaptive-http-streaming

  • Facebook livestream: https://www.youtube.com/watch?v=IO4teCbHvZw&t=223s&ab_channel=InfoQ

Last updated