I'm thinking about saving youtube flv videos with the name of unique id. If user would input the link, which's unique id matches to the file in server, the file would be converted and given for the user with the song name from youtube.
It takes the id 222kQyGGoWg and checks if there's a 222kQyGGoWg.flv file in the directory /videos/ ,
if there isn't, it downloads the file named 222kQyGGoWg.flv, then converts it to /mp3/ with named song_name.mp3 ,
or
if there is, it converts it to /mp3/ with named song_name.mp3
the minuses are that you would need to keep the flv files in your server, but you would save a lot of bandwidth because the service would need only to convert the existing video and to give users the mp3 file which size is small
I'm thinking about saving youtube flv videos with the name of unique id. If user would input the link, which's unique id matches to the file in server, the file would be converted and given for the user with the song name from youtube.
You (maybe, in the long run) save on the cost of bandwidth, but you also increase the cost of disk space required (in the short term).
And I'm guessing that the only way to see tangible savings employing this strategy is if you were to drastically scale up the number of people using your application. And even then, how often do you think 2 or more users will want to convert the same video on YouTube? There are probably millions of videos on there, so how long would you have to run your app, and how many people would need to use it, before you actually start reaping any savings in terms of bandwidth?
What about rationing usage of your app so that only so many downloads/conversions can be performed for a given duration, and/or by a given user, for free?
If I press download video, the script gives loading image and after ~20 seconds I can see quickly download appearing. How I could make it that after submitting youtube link, the YouTube video download proccess should appear without that waiting, and user could see the downloading percent bar normally?
It happened when i moved my service to the foreign VPS and on WAMP instead of XAMPP
Tried to edit init_max waiting time or something like that to 1-2sec it worked purfect, but after clicking get mp3 button the file downloading was paralyzed
You've clearly changed the original code, so my advice to you is to try to get my original code to work wherever it is that you need to install it. Once you get it to work, gradually add your own code to find out what is causing the issue...
If my original code doesn't work, then let me know, and I'll see what I can do....
Started using your new script - working like a charm except 1 function that I was unable to do, it's automatic downloading file prompt after submitting to download the video. Tried to iframe the dynamic url of file, but unsuccesfully.
Started using your new script - working like a charm except 1 function that I was unable to do, it's automatic downloading file prompt after submitting to download the video. Tried to iframe the dynamic url of file, but unsuccesfully.
Your site seems to be working for me except for a delay between the download and the conversion. Can't think of a reason why that would be happening off hand. I don't experience that on my end.
Yes, but how i could make download to pop up? Because people are too lazy to search and click the down link Tried via iframing the direct link or setting headers, didn't worked at all..
Yes, but how i could make download to pop up? Because people are too lazy to search and click the down link Tried via iframing the direct link or setting headers, didn't worked at all..
1. You are working on commercial vps or your home computer?
2. Give us the url of your functioning script
3. Show your php info (by URL would be better, cause php info would take a very big height image)
4. Check you apache logs about errors and show what you have.
5. What youtube script version files are you using?
I said: apt-get install sudo apt-get install libavcodec-extra-52
I receive:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libavcodec-extra-52 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
ffmpeg:i386 ffmpeg
E: Package 'libavcodec-extra-52' has no installation candidate