Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does YouTube store video and audio separately

youtube-dl can be used to see what formats are used to store YouTube content:

youtube-dl -F https://youtu.be/??????

The above command hints that the audio and video are mostly stored separately. Is it right? Does YouTube streaming combine audio and video in real-time?

Formats for a sample YouTube content

Formats for a sample YouTube content

like image 999
user3405291 Avatar asked Jan 29 '26 06:01

user3405291


1 Answers

Most large streaming services will use ABR streaming (see: https://stackoverflow.com/a/42365034/334402).

The two most common ABR streaming formats are HLS and MPEG-DASH and both provide a manifest or index file which the player downloads first and which will contain links to the media streams, typically audio, video, subtitle tracks etc.

For encrypted content the audio and video, and even different bit rate video tracks, may all have separate encryption keys.

The player will download the audio and video tracks and synchronise them for playback.

like image 102
Mick Avatar answered Jan 31 '26 23:01

Mick