title: (ffmpeg) avcodec_find_encoder_by_name("libx264") fails
body: <p><code>avcodec_find_encoder_by_name("libx264")</code> return <code>NULL</code>.</p>
  
  <p>FFmpeg was configured with flags <code>--enable-gpl</code> and <code>--enable-libx264</code></p>
  
  <p><code>ffmpeg -codecs | grep 264</code> returns <code>DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_vda ) (encoders: libx264 libx264rgb )</code></p>
  
  <p>I need to create <code>libx264</code> encoder,. Where is my fault? How to init <code>AVCodec</code> with <code>libx264</code> codec.</p>
  
  <pre><code>AVCodec *encoder = avcodec_find_encoder_by_name("libx264");
  if (!encoder) {
    av_log(NULL, AV_LOG_FATAL, "Necessary encoder not found\n");
    exit(EXIT_FAILURE);
  }
  </code></pre>
  
  <p>Thanks!</p>