The resulting mp3 is a little bit broken because its not seekable und some players are reporting a wrong duration.
So you are running the script on an Ubuntu Linux box, and in order to fix the above issue, you had to compile FFmpeg yourself using the latest code from the git source instead of
doing a 'apt-get install ffmpeg' from the command line?
Out of curiosity, what if you used 'avconv' instead of 'ffmpeg' to do the conversion? So, in config.class.php, just set _FFMPEG constant as (for example):
const _FFMPEG = '/usr/bin/avconv';
Since FFmpeg is supposedly deprecated on Ubuntu/Debian
, I wonder if the 'apt-get install' version of avconv produces "better" converted files? And with avconv, maybe your mp3 files are now 'seekable' and report correct duration on certain mp3 players?
but the problem is now that the script hangs after downloading the video from youtube. The conversion progressbar appears,but hang on 0% .
It sounds like the MP3 files are being generated, but the conversion progress bar is not moving. In that case, please copy/paste the output of a corresponding log file in the 'logs' directory. I'm guessing that I can find a clue to the source of the problem in there...