Ph.D. Student Eng. Alexander Futász |
by Fraunhofer-Institut für Offene Kommunikationssysteme FOKUS.
Video Streaming Mixer Library: In order to create e.g. playlists consisting of multiple existing different video streams it is needed to make sure that the different video stream sources are all compatible in regards to video resolution and bitrate and can be combined into a single video stream.
This library was developed in Node JS. To use the methods developed, an external Node JS app has to be created to use the video mixer library as a dependency.
Create your own Node JS application: https://code.visualstudio.com/docs/nodejs/nodejs-tutorial, then run the following command to install the video mixer library:
npm i awt-pj-ss22-video-streaming-mixer-library-1
within your main.js file, import the algorithmA and algorithmB methods:
const {algorithmA, algorithmB} = require('awt-pj-ss22-video-streaming-mixer-library-1')
call algorithmA([urls])
or algorithmB([urls])
methods where [urls]
is an array of strings made from different streams urls
then, run the methods in the command line:
node main.js
In order to see the final output video, have a localhost server running in your Node application directory, as follows:
cd [node app directory]
python3 -m http.server
Then, on Safari browser or a Google Chrome Extension that supports HLS files, type localhost:8000/master.m3u8 to see the results.
the figures are created via Draw.io
- Mohamed Mesto, m.mesto@campus.tu-berlin.de , Mohamedmesto111@gmail.com
- Yuni Amaloa Quintero Villalobos, Quintero.villalobos@campus.tu-berlin.de
- Poonam Kumari Roy, Poonam.k.roy@campus.tu-berlin.de
1.7
© Yuni Amaloa Quintero Villalobos, Poonam Kumari Roy and Mohamed Mesto License under the [MIT License] (LICENSE).