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

本地文件名称有空格,执行ffmpeg命令处理时,报 No such file or directory #32

Closed
sunshengfei opened this issue Feb 24, 2021 · 3 comments

Comments

@sunshengfei
Copy link

类似地,在电脑上可以加双引号、单引号或转义符解决
如:

ffmpeg -y -i "IMG_0946 (1).mov" -vcodec copy -acodec copy 1111.mp4
ffmpeg -y -i 'IMG_0946 (1).mov' -vcodec copy -acodec copy 1111.mp4
ffmpeg -y -i IMG_0946\ (1).mov -vcodec copy -acodec copy 1111.mp4

但在手机上:

单双引号和转义符均被空格截断,导致提示文件IMG_0946 No such file or directory。

我猜可能是jni层需要修改下,期待解决,谢谢

@AnJoiner
Copy link
Owner

类似地,在电脑上可以加双引号、单引号或转义符解决
如:

ffmpeg -y -i "IMG_0946 (1).mov" -vcodec copy -acodec copy 1111.mp4
ffmpeg -y -i 'IMG_0946 (1).mov' -vcodec copy -acodec copy 1111.mp4
ffmpeg -y -i IMG_0946\ (1).mov -vcodec copy -acodec copy 1111.mp4

但在手机上:

单双引号和转义符均被空格截断,导致提示文件IMG_0946 No such file or directory。

我猜可能是jni层需要修改下,期待解决,谢谢

好的,感谢反馈

@patrickstar007
Copy link

还没解决吗。。。

@AnJoiner
Copy link
Owner

AnJoiner commented Nov 5, 2023

还没解决吗。。。

在1.3.0版本已修复

@AnJoiner AnJoiner closed this as completed Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants