> but until now i find no way to build ffmpeg with this x264 statically > and get rid of any x264 dependency Don't know if this helps, but you may be able to convince it to use static x264 by configureing libx264 like --enable-static