<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-make-a-self-hosted-video-livestream-4nsffua1w" -->

---
title: How to make a self-hosted video livestream | daily.dev
description: A practical guide to setting up a fully self-hosted video livestream using ffmpeg and DASH (Dynamic Adaptive Streaming over HTTP). Covers capturing video from...
canonical: https://daily.dev/posts/how-to-make-a-self-hosted-video-livestream-4nsffua1w
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to make a self-hosted video livestream | daily.dev
og:description: A practical guide to setting up a fully self-hosted video livestream using ffmpeg and DASH (Dynamic Adaptive Streaming over HTTP). Covers capturing video from...
og:url: https://daily.dev/posts/how-to-make-a-self-hosted-video-livestream-4nsffua1w
og:image: https://api.daily.dev/og/posts/4NSFfUa1W.png
og:image:alt: How to make a self-hosted video livestream
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to make a self-hosted video livestream

**[Drew DeVault](https://daily.dev/sources/drewdevault)** · 5 min read · 0 upvotes · 0 comments

## Summary

A practical guide to setting up a fully self-hosted video livestream using ffmpeg and DASH (Dynamic Adaptive Streaming over HTTP). Covers capturing video from static files or screen capture (x11grab + PulseAudio), encoding with libx264/AAC for broad browser compatibility, and serving DASH segments via nginx. Also covers an alternative RTMP-based approach using nginx-rtmp-module for use with OBS Studio, including basic stream authentication options. Includes a complete working shell script example.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://drewdevault.com/2018/08/26/Self-hosted-livestreaming.html>

---

Tags: [#backend](https://daily.dev/tags/backend), [#nginx](https://daily.dev/tags/nginx), [#self-hosting](https://daily.dev/tags/self-hosting)

[View this post on daily.dev](https://daily.dev/posts/how-to-make-a-self-hosted-video-livestream-4nsffua1w)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to make a self-hosted video livestream","url":"https://daily.dev/posts/how-to-make-a-self-hosted-video-livestream-4nsffua1w","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-make-a-self-hosted-video-livestream-4nsffua1w"},"datePublished":"2026-03-31T12:28:52.196Z","dateModified":"2026-03-31T12:45:32.399Z","description":"A practical guide to setting up a fully self-hosted video livestream using ffmpeg and DASH (Dynamic Adaptive Streaming over HTTP). Covers capturing video from...","image":"https://media.daily.dev/image/upload/s--CxzD6vbw--/f_auto/v1722860399/public/Placeholder%2005","thumbnailUrl":"https://media.daily.dev/image/upload/s--CxzD6vbw--/f_auto/v1722860399/public/Placeholder%2005","isAccessibleForFree":true,"articleSection":"Drew DeVault","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Drew DeVault","logo":"https://media.daily.dev/image/upload/s--BGhGBu0U--/f_auto,q_auto/v1774960025/logos/drewdevault?_a=BAMAMiWQ0","url":"https://daily.dev/sources/drewdevault"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-make-a-self-hosted-video-livestream-4nsffua1w","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"backend,nginx,self-hosting","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Drew DeVault","item":"https://daily.dev/sources/drewdevault"},{"@type":"ListItem","position":3,"name":"How to make a self-hosted video livestream"}]}
```

