Before run this script, please double check the permision of data folder and make sure it is writeale.
There are two way to run this script:
1. Via command line: just simple open a terminal and type:
php cli.php -u <your youtube url> -f <your image format> -q <your image quality>
php cli.php --url <your youtube url> --format <your image format> --quality <your image quality>
-u, --url: Is Youtube URL you want to generate thumbnail with player frame
-f, --format: Is optional, your expected image format. Currently support: JPG, PNG, BMP and GIF
-q, --quality: Is optional, and ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file). The default quality value is 100
Via web browser: Open your favorite browser and enter the path to index.php, example: http://localhost/youtube-player-frame.
Enter all information and click Submit then you will get the generated thumbnail with player frame.