Hi, yes all mp3's show up with 0kbps. I used windows 7.
Just sent you the email.
Thanks!
Hi, I received your mp3 file, and I can verify that the bitrate displays as 0k in Windows 7. However, when I open the mp3 file in VLC media player it shows 32K bitrate.
I tried to reproduce the problem here. I accessed my software (running on an Ubuntu server, over the internet) on my Windows 7 machine using FireFox. The downloaded mp3 was 320k bitrate, just like I requested.
I can't explain why this is happening to you, and I can't reproduce the problem.
If others start to have this problem, then I will reassess the situation at that time. At this point, though, my guess is the problem is isolated to your installation on your server. Sorry I couldn't help more.
Quote:
Edit: One last thing to try: Paste a copy of the log file generated by FFmpeg when converting your mp3's, and I will take a quick look to see if something funny is going on...
What I'm reading is that Libav (what you and I are both running under the guise of FFmpeg) is actually a fork of FFmpeg that has become the standard package installed for Debian/Ubuntu machines (when you do an apt-get install ffmpeg)....
Libav and FFmpeg are being developed in parallel and are very, very similar...but there are some nuances between the two projects, and I expect they are more evident as the projects continue to diverge...
You are using a later version of Libav...I am running the following:
Code:
ffmpeg version 0.7.6-4:0.7.6-0ubuntu0.11.10.1, Copyright (c) 2000-2011 the Libav developers
built on Jun 12 2012 16:28:10 with gcc 4.6.1
So perhaps the old FFmpeg audio bitrate flag -ab is behaving strangely in your version of Libav, and instead, the Libav implementation of audio bitrate should be used instead:
Let me know if implementing any of my suggestions helps, and if so, I will make adjustments to my code accordingly. Perhaps I can put the FFmpeg command in the config file, and provide different FFmpeg command options depending on the version of FFmpeg and/or Linux platform being used. We'll see...
Hi, I tried all 4 alternatives that you posted and they did not solve the issue.
Do let me know.
Thanks!
That was my best guess as to how to fix your problem. If it's still not working for you, then I do not know what your issue is, and I will assume that the problem is exclusive to your installation on your server.
This is a total noob question, but I wanted to make sure before I started. If I wanted to use this for personal use only, I could set up an apache server and do all the set-up, and still use the app connected to
This is a total noob question, but I wanted to make sure before I started. If I wanted to use this for personal use only, I could set up an apache server and do all the set-up, and still use the app connected to
Code:
localhost
only correct?
Yup, if the index.php resides in the web root directory of your server, then you only need to type "localhost" in browser address bar...Of course, I'm assuming that you are using the app on the same machine where it is installed..If you're on a network, and accessing a remote (network) installation, then you would put the IP address of the machine where the app is installed in the address bar...
Yup, if the index.php resides in the web root directory of your server, then you only need to type "localhost" in browser address bar...Of course, I'm assuming that you are using the app on the same machine where it is installed..If you're on a network, and accessing a remote (network) installation, then you would put the IP address of the machine where the app is installed in the address bar...
Super, just as i suspected/hoped. Thanks so much for the source as well man. <internetHighFive />!
hmm strange it started working again. Get a lot of complaints from my users that at times the script does not work the way its suppose to below are the problems that we have run into so far incase it helps you in your future release:
1.) Video downloads and converts to 100% and nothing happens
2.) Video downloads and converting part does nothing.
3.) video does not download and does not convert
This stuff happens randomly but then automatically starts working.
hmm strange it started working again. Get a lot of complaints from my users that at times the script does not work the way its suppose to below are the problems that we have run into so far incase it helps you in your future release:
1.) Video downloads and converts to 100% and nothing happens
2.) Video downloads and converting part does nothing.
3.) video does not download and does not convert
This stuff happens randomly but then automatically starts working.
Do let me know thanks!
I'm not having any of these problems. Everything is working ok for me. If I can't reproduce the problem, then I can't fix the problem.
What specific video (or videos) are you trying to convert? If you enable error reporting with PHP, do you see any errors in the browser? In the server error log? Can you paste the AJAX response text(s) that you are receiving during conversion? (hint: Check the Console tab of Firebug in Firefox.) Can you paste the FFmpeg log or logs? What software and version numbers do you have installed on your server? Are directories set to the correct permissions? If your code is publicly available, what is the URL of your web site?
Again, it's entirely possible that all of these problems you are having are isolated to your installation on your server. So instead of troubleshooting the code (which is working elsewhere), we may need to troubleshoot your installation and server configuration.
hi chump i want add some limit on my script like i want when video increase 10 min lenght
or 10mb size its not convert what i do? please fast reply
Someone else was wanting a way to do this earlier, and I sent the following message to him/her at that time. Perhaps it will help you:
Quote:
I see 2 ways to get remote file size and cancel the download/conversion if the file is too big (per some predefined MAX_FILE_SIZE constant in your script):
The CURLOPT_WRITEFUNCTION callback receives the number of bytes written -- either since the last time the callback fired, or the total number of bytes received during the cURL session -- i'm not sure which.
If the CURLOPT_WRITEFUNCTION receives the total number of bytes received for the current download, then it's just a matter of returning something other than the number of bytes received inside the callback function -- when the total bytes received exceeds the maximum download size -- to force the cURL download to abort with an error. (This callback must return the number of bytes received in order to sustain the cURL process.)
If the CURLOPT_WRITEFUNCTION receives the number of bytes received since the last time the callback was executed, then the strategy is a little more complex. You'll need to set up a class field/variable to store the growing number of bytes downloaded. And every time the callback fires, you'll need to increment this class variable by the current number of bytes received by the callback -- and then check to see if the class variable exceeds your maximum download size. When your class variable exceeds maximum download size, after many calls to the callback function, then in the final call to the callback function you can return something other than the number of bytes received to cause the cURL process to abort.
Once you have determined that the downloaded file is too large, and you have aborted the cURL process, then you can delete the partially downloaded file off the server. And serve an error message to the user.
The person said he/she tried the above, but couldn't get it to work. (I haven't tried any of the above solutions, but in theory, it seems like they could work.) Instead, he/she offered the following alternative:
Quote:
I came up with a simple solution by using the duration of the video
The first part extracts the video ID and the second part gets the length of it.
Once the length has been fetched it multiplies it with 23 which is the average size for 1 second on a medium quality FLV video. If the size then is larger than the limit it will echo an error.
I'm just quickly regurgitating an old conversation here and hoping you can glean some benefit from it. It seems like it applies to your situation...
Here is my code: http://pastie.org/private/t2tsxrxfd351ohbfd9njka
maybe its code working fine but i don't know where i put this code file name and fuction name etc
If you want me to write the code for you, then I am available to do so at my hourly rate/fee. I simply don't have the time at the moment to do this for free.
In lieu of paying me or someone else to do the work, I would hope that you would take the suggestions that I've provided you here and try to run with them. Let me know how it goes, and you can return here if you need further assistance during the process.