Youtube-convertor es un conversor potente y con todas las funciones para vídeos de YouTube. Puede obtener archivos multimedia comunes compatibles, como mp4, mp3, etc. También puede configurar las velocidades de fotogramas de vídeo o la velocidad de bits de audio.
sudo apto instalar python
Aviso: python3
NO es compatible con youtube-dl
hasta el momento.
https://github.com/rg3/youtube-dl#installation
sudo apto instalar php-curl
Luego deberá reiniciar el servidor:
reiniciar el servicio sudo apache2
Alternativamente, si estás usando php-fpm, necesitarás reiniciar php5-fpm en su lugar.
reiniciar el servicio sudo php5-fpm
sudo apto instalar ffmpeg
mkdir -p RUTA_TIENDA chmod 777 RUTA_TIENDA
ln -s archivos STORE_PATH
vi config.ini
## Path
# youtube-dl path
env-path=
# Media files store path
save-path=
ln -s FUENTE_RUTA /var/www/html/youtube-convertor
Debido a que un proceso de conversión llevaría mucho tiempo, debemos configurar el tiempo de espera para el servidor php.
https://rtcamp.com/tutorials/php/increase-script-execution-time/