2016-04-26 5 views
0

Je veux filigrane vidéo et ci-dessous est mon code, mais quand j'essaie de courir, puis montrer une erreur comme Failed to validate license file, existing!.android: filigrane vidéo afficher l'erreur

public class MainActivity extends AppCompatActivity { 
    private String strAudioFolderPath; 
    @Override 
    protected void onCreate(Bundle savedInstanceState) { 
     super.onCreate(savedInstanceState); 
     setContentView(R.layout.activity_main); 

     // here my ffmpeg command to watermark video. 
     String s = "ffmpeg -i /sdcard/Download/testing.mp4 -i /sdcard/temp1.jpg -filter_complex 'overlay=10:main_h-overlay_h-10' /sdcard/Download/out.mp4"; 

     GeneralUtils.deleteFileUtil(strAudioFolderPath + "vk.log"); 
     PowerManager powerManager = (PowerManager) this.getSystemService(Activity.POWER_SERVICE); 
     PowerManager.WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "VK_LOCK"); 
     wakeLock.acquire(); 
     LoadJNI vk = new LoadJNI(); 
     try { 
      try { 
       vk.run(GeneralUtils.utilConvertToComplex(s), strAudioFolderPath, MainActivity.this); 
       Log.e("Checking water marker", ">>>>>>>>>>>>>>>"); 

      } catch (Throwable e) { 
      } finally { 
       if (wakeLock.isHeld()) 
        wakeLock.release(); 
       else { 
       } 
      } 
     } catch (Exception e) 
     { 
      e.printStackTrace(); 
     }   
    } 
} 

et erreur affichée dans logcat comme ci-dessous.

04-26 17:13:18.211 20492-20492/com.example.android.watermarkvideo I/Videokit: license file not found... 
04-26 17:13:18.211 20492-20492/com.example.android.watermarkvideo I/Videokit: license file /sdcard/Download/testing.mp4/ffmpeglicense.lic not created. 
04-26 17:13:18.211 20492-20492/com.example.android.watermarkvideo D/Videokit: license check rc: -3 
04-26 17:13:18.211 20492-20492/com.example.android.watermarkvideo E/Videokit: Failed to validate license file, existing! 

En fait, je l'ai utilisé bibliothèque ffmpeg pour Filigrane le fichier vidéo, mais il n'est pas WOKING aussi bien que je l'ai pas trouvé de solution appropriée afin d'aider s'il vous plaît. Merci d'avance.

Répondre

0

J'ai résolu le problème de Failed to validate license file, existing! par declair path dans la méthode onCreate comme String strAudioFolderPath = "/ sdcard/Download";