api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes.
This repository contains useful scripts for PHP users who want to move videos into api.video more easily, or extract data details from your api.video account into a csv file. It includes:
- Google Drive to api.video - Move all your videos from a folder on your Google Drive into api.video
- FTP Server to api.video - Move all your videos from a folder on your FTP server into api.video
- Export Video Details to .csv File - Gather data about all your videos on api.video and export it in a .csv file.
Quickly ingest video from Google Drive to api.video with this script.
- PHP 5.4 or greater with the command-line interface (CLI) and JSON extension installed
- The Composer dependency management tool
- A Google account with Google Drive enabled
- An api.video account
composer require api-video/php-sdk
composer require google/apiclient:^2.0
If you want help setting up the Google Drive to api.video script, we have a complete walkthrough available: Helpful PHP Scripts Pt 1 - Upload Videos from Google Drive to API Video
php Ingest_google_drive.php
Easily ingest files from a selected ftp.server to your api.video account.
- PHP 5.4 or greater with the command-line interface (CLI)
- The Composer dependency management tool
- An Ftp server account
- An api.video account
composer require api-video/php-sdk
If you want help setting up the Google Drive to api.video script, we have a complete walkthrough available: Helpful PHP Scripts Pt 2 - Upload Videos from an FTP Server
php import_from_ftp.php
Allow to easily export data details from tour api.video account into a csv file.
- PHP 5.4 or greater with the command-line interface (CLI)
- The Composer dependency management tool
- An api.video account
If you want help setting up the Export Video Details to a .csv File script, we have a complete walkthrough available: Helpful PHP Scripts Pt 3 - Export All Your Video Details to a .csv File
php create_csv.php