I am using react-native-ffmpeg with react native for basic video editing, however I am facing this issue if a media file uri contain whitespace then ffmpeg task failed with error message "No such file or directory".
I have tried:
RNFmeg.executeWithArguments but app crashes without any error message. Here is my command array.
RNFFmpeg.executeWithArguments(["-i", videoPath, "-i", songPath, "-c:v", "copy", "-c:a", "aac", "-map", "0:v:0", "-map", "1:a:0", "-t", duration,
${path}${timeStamp}.mp4])One other solution I do'nt want to go with is to copy the media file which I have picked from device local storage to cache directory with new name eliminating whitespaces.