Skip to content

dotuan9x/nodejs-streaming-video

Repository files navigation

Streaming video project using NodeJS

Mô hình Streaming Video từ một file .mp4

Mô hình Stream Video

Prerequisites (Yêu cầu trước khi cài đặt)

Trước khi sử dụng cần phải cài đặt FFmpeg, hỗ trợ encode video từ mp4 thành các file chunk .ts để có thể stream được

  • Đối với MacOS thì sử dụng Homebrew để cài đặt bằng câu lện brew install ffmpeg

Installing (Hướng dẫn cài đặt)

Để sử dụng cần thực hiện các bước sau:

Cấu hình các biến môi trường bằng cách tạo 1 file .env và thêm vào nội dung sau:

APPLICATION_ENV="development" # Môi trường development/sandbox/production
PORT=8010 # Port sử dụng

Tiếp theo cần cài đặt các node_modules được sử dụng trong project bằng cách đánh câu lệnh:

npm install 

Sau đó đánh câu lệnh npm run start để khởi chạy phần source

Contributors

Thanks to the following people who have contributed to this project:

Reference (Tài liệu tham khảo)

How to create .mpd or .m3u8 video file on the server using FFMPEG for Adaptive Streaming Apple HTTP Live Streaming (HLS)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •