Skip to main content

Anatomy of a Video

When you look behind the scenes of a video on YouTube you will notice that each video has more than one video (in the example below, YouTube has 24 videos). Streaming video companies like YouTube, Netflix, Apple, Pluto and others need to support different devices with different bandwidths and screen resolutions.  If the internet gets too bogged down, video providers will step down to the next video at a lower bandwidth until a higher bandwidth is available.   

image.png

Most video files are actually containers.  mp4, avi, mov, mkv and flv are containers.  Containers can hold a lot of information, audio tracks in different languages, video, closed caption text files etc. 

Codecs are different from containers as they compress and decompress different file.  The word codec was even taken from compress and decompress.  Most popular codecs are h.264, h.265 or hevc, aac, mp3 and others vp9 is a youtube codec.

Tools like ffprobe and mediainfo allow you to see inside of a video container.  Most containers contain a compressed video and at least 1 audio track.

StreamEngine allows you to convert up to 8 audio tracks inside of a container.

Below is a video from the united nations with many different language tracks.

image.png

Here is what a .mov video container looks like with mediainfo, the following example has 4 - two channel audio tracks as well as 1 video track and 1 other track.

$ mediainfo 1080i60_SMPTE_8CH_audible.mov 
General
Complete name                            : 1080i60_SMPTE_8CH_audible.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   2005.03 (qt  )
File size                                : 63.8 MiB
Duration                                 : 14 s 181 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 37.7 Mb/s
Encoded date                             : UTC 2021-03-04 16:00:20
Tagged date                              : UTC 2021-03-04 16:00:22
Writing library                          : Apple QuickTime
TIM                                      : 00;00;00;00
TSC                                      : 60000
TSZ                                      : 1001

Video
ID                                       : 1
Format                                   : ProRes
Format version                           : Version 0
Format profile                           : 422 LT
Codec ID                                 : apcs
Duration                                 : 14 s 181 ms
Bit rate mode                            : Variable
Bit rate                                 : 31.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 59.940 (60000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Scan type                                : Interlaced
Scan type, store method                  : Interleaved fields
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 0.249
Stream size                              : 52.4 MiB (82%)
Writing library                          : adb0
Language                                 : English
Encoded date                             : UTC 2021-03-04 16:00:20
Tagged date                              : UTC 2021-03-04 16:00:20
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 2
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : sowt
Duration                                 : 14 s 181 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Channel layout                           : M M
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 2.60 MiB (4%)
Language                                 : English
Encoded date                             : UTC 2021-03-04 16:00:20
Tagged date                              : UTC 2021-03-04 16:00:20

Audio #2
ID                                       : 3
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : sowt
Duration                                 : 14 s 181 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Channel layout                           : M M
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 2.60 MiB (4%)
Language                                 : English
Encoded date                             : UTC 2021-03-04 16:00:20
Tagged date                              : UTC 2021-03-04 16:00:20

Audio #3
ID                                       : 4
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : sowt
Duration                                 : 14 s 181 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Channel layout                           : M M
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 2.60 MiB (4%)
Language                                 : English
Encoded date                             : UTC 2021-03-04 16:00:20
Tagged date                              : UTC 2021-03-04 16:00:20

Audio #4
ID                                       : 5
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : sowt
Duration                                 : 14 s 181 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Channel layout                           : M M
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 2.60 MiB (4%)
Language                                 : English
Encoded date                             : UTC 2021-03-04 16:00:20
Tagged date                              : UTC 2021-03-04 16:00:20

Other
ID                                       : 6
Type                                     : Time code
Format                                   : QuickTime TC
Duration                                 : 14 s 181 ms
Frame rate                               : 59.940 (60000/1001) FPS
Time code of first frame                 : 00:00:00;00
Time code, striped                       : Yes
Language                                 : English
Encoded date                             : UTC 2021-03-04 16:00:20
Tagged date                              : UTC 2021-03-04 16:00:20


G