FFmpeg recently changed all the include paths. Every application using it should update. Make sure the applications build against currently hardmasked media-video/ffmpeg-0.4.9_p20080326. web-apps herd: www-apps/gallery www-misc/zoneminder
These have ffmpeg just as runtime dependency. Should work fine. Closing.