3

I have almost the same problem that this question: Android: ffmpeg with filenames containing spaces

The problem is I'm using this library: https://github.com/hiteshsondhi88/ffmpeg-android-java

In the stack overflow question that I've post the only way to achieve is passing the cmd command as String[] (which cannot be done with this library)

Community
  • 1
  • 1
Javier Manzano
  • 4,761
  • 16
  • 56
  • 86

1 Answers1

0

I had a similar problem. Because the video's file path contained a space that was encoded to %20, the ffmpeg execution failed. I solved this by replacing %20 with a white space. And then using the updated Uri string for the ffmpeg execution.

String videoUriString = videoUri.toString().replaceAll("%20", " ");

where videoUri is the Uri for my video file that contained spaces.

I hope this helps.

iRuth
  • 2,737
  • 3
  • 27
  • 32