Hello,
I am trying to make faster this script but i fail,can you tell me how can improve script speed? now mp3 convert time is 3min & i want max 1min or less so how can do this?
That's the only potential way I can think of to increase the speed of conversion. And I don't know exactly how that could be accomplished because I haven't tried anything like that (yet).
If you figure this out, please share with the rest of us
ya if i got any solution i will share...here i got same...
script is not take time for convert file...file convert speed is good but download speed is slow i also working on this issue, if you got any solution to improve download speed then please share.
file convert speed is good but download speed is slow
Well, you'll notice that the FLV video download is performed by PHP cURL extension. So, while I don't have an exact answer for you, the first thing I would do is search these keywords in Google.
This might help a little. If zlib decompression is faster than cURL download speeds, you might try downloading a compressed version of the video and then decompressing the file on the server. I don't know if it would improve speed significantly (or even if it will work), but it's worth a try.
Also, you could check out the cURL flags in general to see if there are any there that could improve performance in this case.
cURL is just an HTTP client, so the speed is mostly limited by the connection on the machine that is running it. Also note that zlib compression has to be supported by the server(YouTube) in order to take advantage of the compression using cURL.
because the files you have listed above are:
- YouTubeToMp3Converter.class.php
- Index.php
I will fix that. I meant for the file to actually be named YouTubeToMp3Converter.new.class.php because that class differs from the one that precedes it in this thread. Also, the class you are using only grabs 3GP files, which are lower quality videos, and the resulting MP3 conversion is unreliable and the sound quality is poorer.
I would love to see if you can improve the 2nd version of the code (that manipulates 3GP) -- because it uses the YouTube API, but I would not presently rely on it for optimal results.