Skip to content

Instantly share code, notes, and snippets.

@hieunt79
Last active July 31, 2019 00:30
Show Gist options
  • Save hieunt79/6f939c3b4625a4392b2041d816e9e752 to your computer and use it in GitHub Desktop.
Save hieunt79/6f939c3b4625a4392b2041d816e9e752 to your computer and use it in GitHub Desktop.

UPDATE users SET channel_name = 'admin channel', channel_title = 'Welcome to admin channel!', display_name = 'admin', WHERE email='admin@gg.com';

ffmpeg -re -i video.mp4 -vcodec libx264 -vprofile baseline -g 30 -acodec aac -strict -2 -f flv rtmp://localhost/live/stream1

nếu dùng http thì sửa các biến $protocol trong file inc/config.php và api/master.php

$protocol = 'http://';

xóa dòng cuối cùng của file js/vjs/tech/flv.js


7/30/19 Key points:

  • chạy được stream trên stream-site
  • hoàn thiện thêm script và docs
  • Làm phần khung của K8s

Breaktask:

  • cài với php-fpm
  • cài đặt php-fpm
  • sửa cấu hình nginx: unix:/run/php/php7.2-fpm.sock
  • thay đổi user trong /etc/php/7.2/fpm/pool.d/www.conf
  • thay đổi cấu hình trong php.ini: cgi.fix_pathinfo=0
  • systemctl restart php7.2-fpm
  • Sửa các lỗi https:
  • sửa các file: inc/config.php và api/master.php
  • comment out các cái phục vụ cho https trong site-enabled/main.conf
  • tìm cách chạy câu lệnh ffmpeg mà không bị lỗi
  • đóng lại docs cài đặt, script cho đến hiện tại
  • làm phần khung K8s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment