- Nehal Patel
- Weidi Zhang
All rights reserved
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg
https://rg3.github.io/youtube-dl/download.html
sudo curl https://yt-dl.org/downloads/2015.07.28/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo apt-get install dos2unix
dos2unix cronjob/queue_helper.sh
sudo apt-get install libapache2-mod-xsendfile
After installing, add this to the <Directory> in your vhost:
XSendFile on
XSendFilePath "/path/to/youtube2mp3/converted"
crontab -e
0 * * * * /usr/bin/php /vagrant/sites/youtube2mp3/cronjob/delete_checker.php
* * * * * /bin/sh /vagrant/sites/youtube2mp3/cronjob/queue_helper.sh
sudo apt-get install mp3gain
Add these lines to the /etc/magic file
# MPEG Layer 3 sound files
0 beshort &0xffe0 audio/mpeg
!:mime audio/mpeg
# MP3 with ID3 tag
0 string ID3 audio/mpeg
!:mime audio/mpeg