New versions of ffmpeg are able to handle h264 video via the x264 library. This capability should be accessible by a USE flag to the ebuild.
Created attachment 75619 [details, diff] Patch to introduce x264 USE flag This patch introduces a new USE flag to media-video/ffmpeg
Fixed in ffmpeg-0.4.9_p20060302