Android: ffmpeg with filenames containing spaces

后端 未结 2 1544
一个人的身影
一个人的身影 2021-01-26 00:49

I want to execute ffmpeg from an Android app, very much as described here: Using FFmpeg with Android-NDK.

Executing the following commands work fine:

Pro         


        
2条回答
  •  野的像风
    2021-01-26 01:39

    I finally got it. I forgot one possibility, and exactly this one is working:

    Process p = Runtime.getRuntime().exec(new String[]{"/data/data/yourpackagename/ffmpeg", "-i", "in space file.mp4", "outfile.mp4"); //OK
    

提交回复
热议问题