Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

files with space are not supported on iOS #1047

Open
reijin90 opened this issue Sep 25, 2024 · 3 comments
Open

files with space are not supported on iOS #1047

reijin90 opened this issue Sep 25, 2024 · 3 comments
Labels
ios Affect iOS platform library Affects the library question Further information is requested

Comments

@reijin90
Copy link

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
Copy link

same issue here ...

@tanersener
Copy link
Collaborator

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.

@tanersener tanersener added question Further information is requested library Affects the library labels Oct 27, 2024
@tanersener tanersener added the ios Affect iOS platform label Nov 8, 2024
@mgenware
Copy link

Seems to me you are feeding an iOS URL to this library. Most C/C++ libraries don't support iOS URLs. You have to convert it to a file path. Also, IIRC, iOS image pickers return image with different data representations, better to copy the data to a local path and pass it to this library. I don't have issues with paths with spaces or non-English characters on iOS with this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ios Affect iOS platform library Affects the library question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants