Mid Sweden University

miun.sePublications
System disruptions
We are currently experiencing disruptions on the search portals due to high traffic. We are working to resolve the issue, you may temporarily encounter an error message.
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Exploring the technical requirements for an immersive biathlon experience: Evaluating Nginx, Flask and Django for video streaming
Mid Sweden University, Faculty of Science, Technology and Media, Department of Information Systems and Technology.
2021 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [sv]

Denna studie utforskar möjligheten att strömma skidskytte med hjälp av Internet of Things för att skapa en bra sportupplevelse för användaren. Genom att använda en Raspberry Pi och en kamera så var det möjligt att strömma video till en webbläsare, vilket då kan användas för att skapa en skidskytteupplevelse. Fyra olika system implementerades för att strömma video, två som använde HLS-protokollet och två med kodeket MJPEG. Videon som strömmades togs emot med hjälp av antagligen OpenCV eller FFmpeg, och webbservrarna skapades med hjälp av Nginx, Django och Flask. För att se hur de olika systemen presterade så samlades data in om dataanvändningen, fördröjningen, maximala antalet användare, bildhastigheten och hur nätverkstypen påverkar dessa värden. Utvärderingen av detta visade att MJPEG använder mer data för mindre video än HLS, och att HLS kan vara mer effektiv och använda mindre data. MJPEGs fördröjning visade sig vara runt en sekund och fördröjningen för HLS var minst 15 sekunder. Implementationen som använde FFmpeg och Nginx hade stabilast bildhastighet och kunde ha mest användare som kollar samtidigt, medan de andra implementationer inte presterade lika bra för bildhastigheten och antalet användare. Ethernet hade lägre dataanvändning, lägre fördröjning och klarade av fler användare, medan bildhastigheten var ungefär lika på Wi-Fi.

Abstract [en]

This study explores streaming biathlon to create an immersive sports experience for the user with Internet of Things. By setting up a Raspberry Pi with a camera module, it was possible to stream the video from the browser that can be used for biathlon. Four different systems for streaming were implemented, two using the HLS protocol and two with the MJPEG codec. The video for streaming was captured using either OpenCV or FFmpeg, and the web servers were done by using Nginx, Django, and Flask. To evaluate how well the systems performed in full definition, information about the data usage, latency, maximum number of users, frame rate and how the network type affect those values were collected. The result showed that MJPEG uses more data for less video, while HLS can be more efficient and use less data. The MJPEG-codec was shown to only have around one second latency, while the HLS-protocol had at least 15 seconds. The implementation using FFmpeg and Nginx was shown to have the most stable frame rate and most maximum connections, while the other implementations had a unsustainable one. Ethernet was shown to overall have lower data usage, lower latency, and can handle more users than Wi-Fi, while the frame rate was around the same.

Place, publisher, year, edition, pages
2021. , p. 65
Keywords [en]
Internet of Things, Video streaming, Raspberry Pi, Nginx, RTMP, HLS, Django, Flask, OpenCV, MJPEG, FFmpeg, VideoJS
Keywords [sv]
Internet of Things, strömning av video, Raspberry Pi, Nginx, RTMP, HLS, Django, Flask, OpenCV, MJPEG, FFmpeg, VideoJS
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:miun:diva-42443Local ID: DT-V21-G3-007OAI: oai:DiVA.org:miun-42443DiVA, id: diva2:1574876
Subject / course
Computer Engineering DT1
Educational program
Master of Science in Engineering - Computer Engineering TDTEA 300 higher education credits
Supervisors
Examiners
Available from: 2021-06-29 Created: 2021-06-29 Last updated: 2021-06-29Bibliographically approved

Open Access in DiVA

No full text in DiVA

Search in DiVA

By author/editor
Göransson, Joel
By organisation
Department of Information Systems and Technology
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar

urn-nbn

Altmetric score

urn-nbn
Total: 1205 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf