Android video crop using ffmpeg

后端 未结 1 1831
梦谈多话
梦谈多话 2021-01-21 09:28

I am using https://github.com/WritingMinds/ffmpeg-android-java for cropping a video using this command :

execFFmpegCommand(\" -i \" + in + \" -filter:v \" + \"c         


        
1条回答
  •  猫巷女王i
    2021-01-21 10:03

    I figured it out finally, The command should be passed as an array.

      String[] cmd = {"-i", in, "-filter:v", "crop=" + 240 + ":" + 120 + ":" + 100 + ":" + 100, "-c:a", "copy", out};
    
        execFFmpegCommand(cmd);
    

    0 讨论(0)
提交回复
热议问题