I would like to be able to convert videos to flv through the use of php and FFMPEG.
I was just wondering if anyone knew any good guides to setting up FFMPEG in a linux environment. I have found scripts showing how to use ffmpeg through exec() with php but I would like to know how to set everything up.
Also, I believe other software also needs to be installed in order for FFMPEG to work (ex. mp3 codecs?). If anyone could point me in the right direction, I would really appreciate it. I have been trying to search for ways to do this, but a lot of guides are outdated and some of the wget commands do not even work. Thanks in advance.
If you are looking for specific guides, would be useful to know which linux distribution you are using. As far as what else you need apart from ffmpeg, depends on what exactly you wish to be encoding. For example, if you wish to be able to encode xvid videos into flv, you’ll need the Xvid codec.
I would recommend getting at least:
If you intend to encode mp4 videos with h264, you’d need qt-faststart as well, to move the meta data to allow immediate streaming.
(and personally prefer mencoder over ffmpeg)