arthenica / ffmpeg-kit

FFmpeg Kit for applications. Supports Android, Flutter, iOS, Linux, macOS, React Native and tvOS. Supersedes MobileFFmpeg, flutter_ffmpeg and react-native-ffmpeg.
https://arthenica.github.io/ffmpeg-kit
GNU Lesser General Public License v3.0
4.5k stars 602 forks source link

files with space are not supported on iOS #1047

Open reijin90 opened 1 month ago

reijin90 commented 1 month ago

I'm using the DocumentPicker.pick() to open files. This works great for any file that does not contain spaces (or probably anything that gets encoded). Here is the error log: LOG file:///Users/NAME/Library/Developer/CoreSimulator/Devices/6C971DFC-4A78-40EF-825E-259A1E958428/data/Containers/Data/Application/9380D307-67C6-48D3-82F9-83926D169B74/tmp/com.bt.FrameHunt-Inbox/libvlc-speech-full-frames-1%202.MP4: No such file or directory

I'm not sure how to deal with this, since other files provided this way work fine. What do I have to do to fix this?

maitrungduc1410 commented 1 month ago

same issue here ...

tanersener commented 2 weeks ago

The title says "files with space", but the example provided is a "file without a space character". This file path is URL-encoded, where %20 is used instead of a space. I suggest decoding the file path before passing it to FFmpegKit.