Tentang
A research/study project for understanding and learning the fundamentals of audio/video streaming.
Desain dan mediaPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliDekho: An on-demand video streaming server
Some Achievements ✨
We launched Dekho on Peerlist in the 3rd Week of January 2025 and we had a pretty good response.
Star History
Overview
Dekho is a research and study project aimed at understanding and learning about audio and video streaming. Our primary focus was on implementing the HLS (HTTP Live Streaming) protocol to build an on-demand video streaming server.
Setup Instructions
Basic Steps
- Clone the repository
- Create an Appwrite storage bucket
- Make sure that you make a note of
APPWRITE_KEY,APPWRITE_PROJECT_IDand theBUCKET_ID. - Set
APPWRITE_S3_ENDPOINTto the project's regional S3 endpoint (for example,https://fra.cloud.appwrite.io/v1/s3) andAPPWRITE_S3_REGIONtoautoor the Appwrite region code. The API key needs thebuckets.read,buckets.write,files.read, andfiles.writescopes. - Browser uploads send cross-origin
PUTrequests to this S3 endpoint, which require anOPTIONSpreflight. Appwrite's S3 API allows browser requests from any origin by default and does not implement per-bucket CORS settings, so no Appwrite bucket CORS setup is needed. If you put a proxy in front of the endpoint or use a self-hosted deployment with different CORS behavior, allowOPTIONSandPUT, permit the request'sContent-Typeheader, and expose theETagresponse header to the browser. - Uploads not completed within 24 hours are automatically removed, including their multipart data and any source object. Cleanup runs every 15 minutes while the server is running.
- Make sure that you make a note of
With Docker
- Install
docker-composeon your machine. - cd into the root of the repository.
- Create a
.envfile using .env.docker as a reference.
- Create a
- Just run
docker-compose upto start the server.
Without Docker
- Install the
makeutility because we have created a Makefile to ease the setup - Now we are moving to the dependency installation steps.
- This project needs Go 1.27.3 or newer, the
ffmpegutility, and apsql(PostgreSQL) 16.3 database. - To install these, and the Go dependencies, run
make install-dev.- The
make install-devtakes care of installing PostgreSQL, Go, FFMpeg, golang-migrate and Go dependencies. - Run
make start-postgresto start the postgres service. - Create a database user by running this command
sudo -u postgres createuser -s username_here -P -Pwill prompt for a password.- Enter the
psqlshell by running this commandsudo -u postgres psqland create a database by runningCREATE DATABASE <database_name>;. - Create a
.envfile using .env.local as a reference.
- The
- Once the dependencies are installed successfully, run
make cleanstart. - This command will create all the necessary folders and start the server on
http://127.0.0.1:8000 - If you just want to run the server, run:
make start - If you just want to clean up, run:
make clean
Technologies Used
- Server: Go
- Database: PostgreSQL
- Storage: Appwrite Storage
- Video Processing: FFMPEG for breaking down videos into .ts chunks
- Video Player: HLS.js
- Frontend: HTML, CSS, JS
Project Architecture
Appwrite S3 object keys use raw_files/<videoID><extension>, hls_chunks/<videoID>/<chunk>.ts, manifests/<videoID>.m3u8, and thumbnails/<videoID>.png.

Key Resources
Our journey has been greatly enriched by the insights and guidance from various resources. A pivotal article that set us on the right path is "Learning the basics of video streaming with Golang" by Rohit Mundra.
For a comprehensive list of resources that have been instrumental in our learning and development process, please refer to our documentation.
Getting Involved
We welcome any queries or contributions to the project. If you have any questions or suggestions, please feel free to reach out to us:
Updates and Blog Posts
Stay tuned for upcoming blog posts and updates on our progress. If you haven't heard from us in a while, feel free to bug us about it!
Jelajahi proyek terkait
Memuat…