|Network Testing and Emulation Solutions|
This cookbook requires LANforge GUI version 5.4.6 and above.
DASH is used for embedding videos in a web page without using third party services such as youtube or vimeo. It is mostly used in OTT platforms.
Dynamic Adaptive Streaming over HTTPS (DASH) is a variant of Dynamic Adaptive Streaming (DAS) that uses the HTTPS protocol for delivering video content over the internet. HTTPS is the secure version of HTTP, and it provides encryption and authentication to protect the privacy and integrity of the data being transmitted.
With DASH, the video content is encoded at multiple bitrates and is divided into small segments that can be downloaded and played back in a continuous stream. These segments are delivered over the internet using HTTPS, which provides secure and reliable delivery of the video content.
Android App has inbuilt Video Media Player (Exoplayer) which can run various types of Media Types which includes:
· DASH (Dynamic Adaptive Streaming over HTTPS)
· HTTP Live Streaming
· Real Time Streaming Protocol
Connect Android Phone to LANforge via USB such that the device will appear in Interop Tab.
To host DASH server on LANforge use the following commands.
sudo dnf install ffmpeg
FFmpeg is a popular multimedia framework that can be used to record, convert, and stream audio and video files.
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
This command installs the RPM Fusion repositories on a Fedora system. RPM Fusion is a repository of software packages that are not included in the default Fedora repositories, such as multimedia codecs and drivers.
sudo dnf install gpac
GPAC is an open-source multimedia framework that can be used to create, package, and stream multimedia content.
This command, when run, downloads and installs the GPAC package and its dependencies on your system. After the installation is complete, use the GPAC tools to create and manipulate multimedia content.
Place below mentioned wifivideo.mp4 and convert.bash file in the html directory:
Run the convert.bash to convert .mp4 to .mpd file using the command:
sudo bash convert.bash wifivideo.mp4
The stats can also be viewed in the MPD file by using the command:
vi wifivideo.mpd in the terminal.
Mpd file maps with bandwidth that is mentioned in LANforge InterOp app. From the Mpd we can observe bandwidth as 366837 which is same as mentioned above in InterOp.
If the network has issues, the bitrate goes down and the same can be reported in LANforge InterOp app. This can be tested using WANlinks in lanforge.
Then click on Apply in the Netsmith window, the WANlink will be created between eth1 and rddvR1.
In Port manager this endpoint will also be reflected.
Here the Wanlink transfer rate is 1.54Mbps and the video bitrate reported is 366837. This can be observed in Layer 4-7 and in InterOp.
It clearly indicates that the Video Player has adapted the lower quality when network is slow.
We can observe the same in the .mpd file.