Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

MPEG-DASH Streaming Explained for Beginners

Автор: Tech with Monir

Загружено: 2021-08-19

Просмотров: 24594

Описание:

🙌 Helped with my video? Consider supporting my work! Buy me a coffee ☕ and help fuel more educational content on video compression, FFmpeg, Java, Spring Boot, and much more. Your support means the world to me!

💖 Support Me on Buy Me a Coffee: https://www.buymeacoffee.com/monirzaman

MPEG-DASH is a streaming protocol that is used to deliver audio and video content over the internet. It works by dividing the video content into small segments, called "chunks," and storing them on a web server. The video player on the user's device then requests and downloads these chunks as needed, and plays them back in sequence to create a continuous stream.

Imagine MPEG-DASH as a virtual buffet where you can choose from a variety of dishes to create your perfect meal. Just like how you pick and choose from different dishes at the buffet, the video player selects and downloads the video chunks that make up the stream. And just like how the buffet continuously refills and adds new dishes, the video player can request and download new chunks as needed to keep the stream going.

The key feature of MPEG-DASH streaming is its ability to adapt to changing network conditions in real-time. This is achieved through the use of Adaptive Bitrate (ABR) technology, which encodes the video content at multiple bitrates and resolutions and allows the video player to select the appropriate version based on the available bandwidth and other factors.

For example, if the user has a low bandwidth connection, the video player will select a lower bitrate version of the video, which will result in a lower quality but also a smaller file size and faster download time. If the user has a high bandwidth connection, the video player will select a higher bitrate version of the video, which will result in a higher quality but also a larger file size and slower download time.

In this video, I tried to make viewers understand the basic workflow of Dynamic Adaptive Streaming over HTTP also known as DASH. If you are an absolute beginner in video streaming and wanna start somewhere, this video is for you.

There are other protocols for video streaming including HTTP live streaming or HLS, RTSP, RTMP, cmaf, etc, MPEG DASH is the most enriched, open-source, and ISO standard in video streaming. It's an adaptive bitrate streaming protocol over HTTP, which means the video quality will adjust based on the internet speed, as we see on youtube, and it's over HTTP, so no farewell disturbance

Watching the video, you will understand how MPEG DASH-based streaming works in about 5 minutes including what it is and why we are supposed to use this protocol in our applications. To made easy these things, I used 1 mp4 video with FFmpeg on the apache server on my localhost.

FFmpeg is used to convert the video according to the MPEG DASH protocol standard defined by ISO(ISO/IEC 23009-1:2019). the following command is used to convert/segment the video to MPPEG DASH compatible format and to generate the .mpd manifest playlist file.

ffmpeg -re -i input.mp4 -map 0 -map 0 -c:a aac -c:v libx264 -b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline -profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0 -b_strategy 0 -ar:a:1 22050 -use_timeline 1 -use_template 1 -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a" -f dash output_manifest.mpd

Then the generated files are placed on the apache server and accessed the manifest file(.mpd) from the browser to play the video. The magic of DASH is that the MPD master playlist is basically an XML file.

To learn more about the protocol, please follow the link below: https://www.iso.org/standard/79329.html

DASH videos are typically played by MSE players like dash.js for web and Exo player or shaka player in android. It's not supported in HTML by default. It's the state of the art protocol all big tech companies are adopting it day by day.

I am interested to make more videos on live streaming, let me know in the comment the topic or area I should focus on. thanks for taking the time to watch my videos.

MPEG DASH Explained:    • MPEG-DASH Streaming Explained for Beginners  

HLS vs Dash comparison:    • MPEG DASH vs HLS Streaming  

MPEG-DASH Streaming Explained for Beginners

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

array(10) { [0]=> object(stdClass)#4725 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "rPNr0-mNTFY" ["related_video_title"]=> string(43) "HTTP Live Streaming (HLS) Practical Example" ["posted_time"]=> string(21) "4 года назад" ["channelName"]=> string(15) "Tech with Monir" } [1]=> object(stdClass)#4698 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "WZN3cLhnWh8" ["related_video_title"]=> string(42) "О Зеленского вытерли ***" ["posted_time"]=> string(22) "23 часа назад" ["channelName"]=> string(27) "Анатолий Шарий" } [2]=> object(stdClass)#4723 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "qMQLnkTOkCo" ["related_video_title"]=> string(173) "Израиль vs Иран: чья армия сильнее? | «Железный купол», ПВО, МОССАД vs дроны, самолеты, прокси" ["posted_time"]=> string(21) "1 день назад" ["channelName"]=> string(8) "varlamov" } [3]=> object(stdClass)#4730 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "UjQmrokqTLk" ["related_video_title"]=> string(116) "Почему главные палачи Третьего Рейха избежали наказания? | ФАЙБ" ["posted_time"]=> string(21) "1 день назад" ["channelName"]=> string(8) "Файб" } [4]=> object(stdClass)#4709 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "7RW3ddZRlEM" ["related_video_title"]=> string(64) "How Video Streaming Works: Content Distribution Network [Part 3]" ["posted_time"]=> string(21) "4 года назад" ["channelName"]=> string(13) "Ivaylo Pavlov" } [5]=> object(stdClass)#4727 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "srhjcQseTn8" ["related_video_title"]=> string(189) "СУПЕР ЭКОНОМИЯ БАТАРЕИ и Оперативной Памяти Телефона СКРЫТЫЕ Настройки РАЗРАБОТЧИКОВ Экономия Заряда" ["posted_time"]=> string(21) "2 часа назад" ["channelName"]=> string(12) "OneMovieLive" } [6]=> object(stdClass)#4722 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "SBqOLUJEgC0" ["related_video_title"]=> string(71) "Путин встретился с главами мировых СМИ" ["posted_time"]=> string(24) "13 часов назад" ["channelName"]=> string(13) "AKIpress news" } [7]=> object(stdClass)#4732 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "wpFx3jJgiPc" ["related_video_title"]=> string(178) "😱ЖДАНОВ: ПРИЛЕТЕЛО по полной! ВОЕТ ВСЯ Россия: жители СЛИВАЮТ ВИДЕО атаки. СЛУШАЙТЕ, куда влупили" ["posted_time"]=> string(23) "8 часов назад" ["channelName"]=> string(13) "24 Канал" } [8]=> object(stdClass)#4708 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "xq7zl1jscfc" ["related_video_title"]=> string(157) "Полина и Аркадий Майофис: «Жить тяжело. Но ты счастлив» // «Скажи Гордеевой»" ["posted_time"]=> string(24) "11 часов назад" ["channelName"]=> string(30) "Скажи Гордеевой " } [9]=> object(stdClass)#4726 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "9D2YsF6M0G0" ["related_video_title"]=> string(181) "Сумасшедшая из МИДа. Кокаиновые скандалы, свадьба в Нью-Йорке и бесконечное вранье Марии Захаровой" ["posted_time"]=> string(24) "10 часов назад" ["channelName"]=> string(23) "Навальный LIVE" } }
HTTP Live Streaming (HLS) Practical Example

HTTP Live Streaming (HLS) Practical Example

О Зеленского вытерли ***

О Зеленского вытерли ***

Израиль vs Иран: чья армия сильнее? | «Железный купол», ПВО, МОССАД vs дроны, самолеты, прокси

Израиль vs Иран: чья армия сильнее? | «Железный купол», ПВО, МОССАД vs дроны, самолеты, прокси

Почему главные палачи Третьего Рейха избежали наказания? | ФАЙБ

Почему главные палачи Третьего Рейха избежали наказания? | ФАЙБ

How Video Streaming Works: Content Distribution Network [Part 3]

How Video Streaming Works: Content Distribution Network [Part 3]

СУПЕР ЭКОНОМИЯ БАТАРЕИ и Оперативной Памяти Телефона СКРЫТЫЕ Настройки РАЗРАБОТЧИКОВ Экономия Заряда

СУПЕР ЭКОНОМИЯ БАТАРЕИ и Оперативной Памяти Телефона СКРЫТЫЕ Настройки РАЗРАБОТЧИКОВ Экономия Заряда

Путин встретился с главами мировых СМИ

Путин встретился с главами мировых СМИ

😱ЖДАНОВ: ПРИЛЕТЕЛО по полной! ВОЕТ ВСЯ Россия: жители СЛИВАЮТ ВИДЕО атаки. СЛУШАЙТЕ, куда влупили

😱ЖДАНОВ: ПРИЛЕТЕЛО по полной! ВОЕТ ВСЯ Россия: жители СЛИВАЮТ ВИДЕО атаки. СЛУШАЙТЕ, куда влупили

Полина и Аркадий Майофис: «Жить тяжело. Но ты счастлив» // «Скажи Гордеевой»

Полина и Аркадий Майофис: «Жить тяжело. Но ты счастлив» // «Скажи Гордеевой»

Сумасшедшая из МИДа. Кокаиновые скандалы, свадьба в Нью-Йорке и бесконечное вранье Марии Захаровой

Сумасшедшая из МИДа. Кокаиновые скандалы, свадьба в Нью-Йорке и бесконечное вранье Марии Захаровой

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]