Converting .avi videos to .h264 format.
Converting Audio Video Interleave Files directly to H.264 Encoded Video Files (.avi to .h264 conversion) is certainly possible and quite straightforward.
Use one of several currently available video editing programs or converters, such as FFmpeg or Adapter.
Alternatively, you can try some online conversion tools, which allow users to easily convert .avi to .h264.
A free video converter offering high-quality conversions between many video formats