I have installed ffmpeg installed on my server.
Converting works perfect, but now my movies dont have sound.
Is there a setting that I forgot or may be a stupid thought, but does it needs that a server has to have an audio card?
Never heard of this but read something about this.
May be any of you are familiar with this issue.
I have spent one full day to search for every possible answer in google but still no luck so far. Can anyone please help? I'm basically stuck and wanting to bang my head on the desk
Did what Antony sugested on my CentOS server and it worked.
Now i need to try php integration..
Btw should i force options like -ar 44100 in my php code? coz the source file may have a flash incompatible sampling rate.
Hi. I've been having the same problems and I'm not sure what else I can do. I have installed Lame and configured ffmpeg to use the libraries (or it should be anyways). Here are my resulting outputs:
Finally got everything working - Complete solution included
Okay - well I didn't actually get any replies *unfortunately*, but I WAS able to finally get this thing working after a solid day of work. So here's basically what I did and the problems that I ran into along the way. I hope this helps someone:
The first problem(s) essentially came from not having the right libraries installed. I assumed FFMPEG took care of this, but I assumed incorrectly.
The final FFMPEG configuration I FINALLY got to work was this one:
So - I would recommend starting with just the first enable. It only takes a moment to figure out if you have the libraries installed or not. If it works, move on to the next one. Essentially we're just trying to figure out what you DON'T have installed. In my case, I had problems with the liba52, libfaad, and libfaac. Please also note if you haven't already installed LAME, you'll want to do that first. It's pretty easy to do and there are hundreds of threads explaining how.
Find your processor type and download the RPMs. There should be 3 or 4 files for each processor type and you'll need all of them. Also, you need to get them in order as they depend on one another as well.
As you save them to your local server, install the RPM packages.
Code:
rpm -ivh <filename>.rpm
If it fails, you probably went out of order. Read what it says and the RPM info should probably display the missing dependency.
Once these have been installed, you'll want to CLEANLY rebuild FFMPEG.
Run the following commands in order:
Code:
./configure --enable-gpl --enable-pp --enable-libvorbis --enable-libogg --enable-liba52 --enable-libmp3lame --enable-libfaad --enable-libfaac
make clean
make
make install
It should take quite a bit longer than you may have been noticing if you keep rebuilding it. That's simply because you probably weren't running the MAKE CLEAN first.
Now go back and give it a go. I used the following to test:
Unfortunately, after running this one I had the following error:
ffmpeg: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory
Another pain in the *** (who stars out the word a s s???). After much searching, I found the following solution:
Add /usr/local/lib to /etc/ld.so.conf
I noticed a lot of forums simply said to add '/usr/local/lib' but don't really explain how to do it. If you don't know what to do, just edit the file with your favorite editor.
Code:
vim /etc/ld.so.conf
In the end, mine looked like this:
Code:
include ld.so.conf.d/*.conf
/usr/local/lib
I only added the second line in there.
Finally, run ldconfig:
Code:
/sbin/ldconfig
After that I went to test it and everything FINALLY worked. The FLV was made, the audio worked, etc. etc.
I didn't need the three libs stated above, nor did I need ogg or vorbis - but I assume you will if you're going to use those codecs.
Note: A lot of guides will tell you to use --enable-mp3lame, I can only assume this is an old switch as it's no longer valid. --enable-libmp3lame worked a treat, along with Ludlow's help!