Mọi người cũng biết rồi đó, lưu video trên google drive sẽ rất nặng về dung lượng, dẫn đến việc nặng về băng thông khi stream bằng api, và cách để giảm băng thông là giảm dung lượng và độ phân giải của video. Mình đã thử nhiều cách để giảm dung lượng nhưng nó vẫn quá nặng, nên mình quyết định dùng api Facebook upload thẳng lên để họ tối ưu luôn.
Và mục đích của Project này chính là thực hiện việc trên. Mình sẽ thiết kế code pull video từ drive qua Facebook, rồi đợi một khoản thời gian nhất định pull về lại drive.
Ngôn ngữ: Nodejs + PHP.
Đa phần của project là các file chạy ngầm, nên code mình viết thô nhất có thể!!!
Nguồn tham khảo:
- Dùng CURL PHP stream thẳng từ drive qua facebook: https://developers.facebook.com/docs/video-api/guides/get-videos/