FFMPEG command fails for file path with white spaces

后端 未结 2 1168
面向向阳花
面向向阳花 2021-01-22 20:43

I am executing the below ffmpeg command for trimming videos.The issue I am having is that if filepath contains spaces then the command fails.I tried many ways to ha

2条回答
  •  醉酒成梦
    2021-01-22 21:40

    You must switch to string-array variant of Runtime.exec(), as described in ffmpeg-android-java.

    For the adventurous, there is a hidden trick in ffmpeg, but IMHO working with String[] is both easier and more robust.

提交回复
热议问题