title: broken ffmpeg default settings detected
body: <p>I am getting broken ffmpeg error while VideoWrite using X264 Fourcc codec.I have install all the dependencies.How can I rectify this problem.The sample code that I have been using is as follows.</p>
  
  <pre><code>VideoWriter oVideoWriter ("path.mp4", CV_FOURCC('X','2','6','4'), 15, frameSize, false);
  </code></pre>
  
  <p>Operating system : Ubuntu 14.04 64-bit</p>
  
  <p>Console Error:</p>
  
  <pre><code>[libx264 @ 0x8d6220] broken ffmpeg default settings detected
  [libx264 @ 0x8d6220] use an encoding preset (e.g. -vpre medium)
  [libx264 @ 0x8d6220] preset usage: -vpre &lt;speed&gt; -vpre &lt;profile&gt;
  [libx264 @ 0x8d6220] speed presets are listed in x264 --help
  [libx264 @ 0x8d6220] profile is optional; x264 defaults to high
  Could not open codec 'libx264': Unspecified errorOpenCV Error: Unsupported format or combination of formats (Your version of Gstreamer doesn't support this codec acutally or needed plugin missing.) in CvVideoWriter_GStreamer::open, file /home/mbox140/Development/opencv-2.4.9/modules/highgui/src/cap_gstreamer.cpp, line 518
  terminate called after throwing an instance of 'cv::Exception'
    what():  /home/mbox140/Development/opencv-2.4.9/modules/highgui/src/cap_gstreamer.cpp:518: error: (-210) Your version of Gstreamer doesn't support this codec acutally or needed plugin missing. in function CvVideoWriter_GStreamer::open
  </code></pre>
  
  <p>Suggest me any solution for this.</p>