title: “only position independent executables (PIE) are supported”
body: <p>I am using FFMPEG support library to convert bunch of images to video. It works fine on earlier version of the lollipop. But in the lollipop it generates the following error. <code>***error: only position independent executables (PIE) are supported.***</code> I know the PIE Security restrictions has been changed in lollipop, but i don't know how to fix it. </p>
  
  <p>From my knowledge it may have two possible solutions, </p>
  
  <p>either </p>
  
  <p>we need to relocate the FFMPEG library assets to the SDCard and we have to refer them from our coding, if this is the answer what are all the steps to be followed? </p>
  
  <p>or </p>
  
  <p>Is there any update in the FFMPEG library for android lollipop.</p>
  
  <p>If both are wrong can you provide me with the proper solution.</p>
  
  <p>Many thanks...</p>
  
  <p>Here is my code</p>
  
  <pre><code>   try {
              String[] ffmpegCommand = {"/data/data/com.mobvcasting.mjpegffmpeg/ffmpeg", "-r", ""+p.getPreviewFrameRate(), "-b", "1000000", "-vcodec", "mjpeg", "-i", 
                      Environment.getExternalStorageDirectory().getPath() + "/req_images/frame_%05d.jpg", Environment.getExternalStorageDirectory().getPath() + "/req_images/video.mov"};
  
              ffmpegProcess = new ProcessBuilder(ffmpegCommand).redirectErrorStream(true).start();            
  
              OutputStream ffmpegOutStream = ffmpegProcess.getOutputStream();
              BufferedReader reader = new BufferedReader(new InputStreamReader(ffmpegProcess.getInputStream()));
  
              String line;
  
              Log.v(LOGTAG,"***Starting FFMPEG***");
              while ((line = reader.readLine()) != null)
              {
                  Log.v(LOGTAG,"***"+line+"***");
              }
              Log.v(LOGTAG,"***Ending FFMPEG***");
  
  
          } catch (IOException e) {
              e.printStackTrace();
          }
  
          if (ffmpegProcess != null) {
              ffmpegProcess.destroy();        
          }
  </code></pre>