Youtube-convertor is powerful, full-featured convertor for youtube videos, you can get compatiable common media files, such as mp4, mp3, etc. You can also set the video frame speeds or audio bitrates.
sudo apt install python
Notice: python3
is NOT supported by youtube-dl
so far.
https://github.com/rg3/youtube-dl#installation
sudo apt install php-curl
You will need to restart the server afterwards:
sudo service apache2 restart
Alternatively, if you are using php-fpm, you'll need to restart php5-fpm instead
sudo service php5-fpm restart
sudo apt install ffmpeg
mkdir -p STORE_PATH chmod 777 STORE_PATH
ln -s STORE_PATH files
vi config.ini
## Path
# youtube-dl path
env-path=
# Media files store path
save-path=
ln -s SOURCE_PATH /var/www/html/youtube-convertor
Because a converting process would take a long time, we need to set the timeout for php server.
https://rtcamp.com/tutorials/php/increase-script-execution-time/