introlab / introlab-ros-pkg

IntRoLab's ROS packages
http://introlab.github.com/introlab-ros-pkg
30 stars 15 forks source link

Persistent Error: Cannot find H264 Encoder #1

Open k-g opened 10 years ago

k-g commented 10 years ago

I'm trying to run this package on Ubuntu 12.04 LTS, but I seem to always get this error:

"Unable to find H264 encoder, ffmpeg version too old ?"

I've tried uninstalling the default Ubuntu x264 lib along with ffmpeg and compiling/installing both from source, still with the same effect.

Any tips? I'd really like to be able to use this but am a bit lost. Maybe I'm not using the right versions of everything?

I run: Ubuntu 12.04 ROS Fuerte libx264.so.138 libavcodec.so.53

doumdi commented 10 years ago

Try using this repository : https://launchpad.net/~jon-severinsson/+archive/ffmpeg. Please tell us if you are more successful with it.

doumdi commented 10 years ago

The problem comes from the fact that older ffmpeg versions do not include the H.264 encoder (and you had to use libx264 separately) . It should now be available with newer versions.

k-g commented 10 years ago

Thanks! I figured out the problem and have it working.

I was not using the proper compilation flags on libx264 and ffmpeg, so shared libraries were not getting generated. I'll try to find the exact line I used and provide it for future reference.

Kevin Green

On 9/25/2013 11:40 AM, Dominic Létourneau wrote:

Try using this repository : https://launchpad.net/~jon-severinsson/+archive/ffmpeg https://launchpad.net/%7Ejon-severinsson/+archive/ffmpeg. Please tell us if you are more successful with it.

— Reply to this email directly or view it on GitHub https://github.com/introlab/introlab-ros-pkg/issues/1#issuecomment-25098385.