Skip to content

Instantly share code, notes, and snippets.

@hoangdh
Last active June 1, 2018 10:02
Show Gist options
  • Save hoangdh/4389547b7a4be43cca83a33f8e898432 to your computer and use it in GitHub Desktop.
Save hoangdh/4389547b7a4be43cca83a33f8e898432 to your computer and use it in GitHub Desktop.

Cài đặt

Bước 1: Cài đặt và cấu hình (Docker + AceProxy)

https://github.com/ikatson/docker-acestream-proxy

Bước 2: Đẩy ra NGINX

  • Lấy stream ACE theo mẫu sau:
http://127.0.0.1:8000/pid/<ID-ACE>/stream.<EXT>
  • Trong đó:
    • ID-ACE: ID của stream
    • EXT: Phần mở rộng của video. Hỗ trợ: '.3gp', '.avi', '.flv', '.mkv', '.mov', '.mp4', '.mpeg', '.mpg', '.ogv', '.ts'

Chi tiết: https://github.com/ValdikSS/aceproxy/wiki/Using-proxy

  • Đẩy vào NGINX để tạo HLS
ffmpeg -re -i http://127.0.0.1:8000/pid/<ID-ACE>/stream.ts -c copy -c:a aac -strict experimental -b:a 192k -ac 2 -f flv rtmp://localhost/live/<STREAM-NAME>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment