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
ffmpeg
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.