Quantcast
Channel: MediaSPIP
Viewing all articles
Browse latest Browse all 118063

Android ffmpeg white space in input path causing "no such file or directory"

$
0
0

I'm using the latest version of WritingMinds/ffmpeg-android-java library.

I've tried single/double quoting the path with no success.

I Logged my command after execution, please look to the input path where a subDirectory contains whiteSpace, a comma has been added between the space:

ffmpeg, -i, "storage/emulated/0/Telegram/Telegram, Video/4_5828137322067002802.mp4", -vf...

I split and run my command like this:

String crop = "-ss " + skipTimeForCrop + " -noautorotate -i " + newPath + " -vframes 10 -vf cropdetect=24:16:0 -f null -";
String[] cropCommand = crop.trim().split("");
execFFmpegForCrop(cropCommand);

storage/emulated/0/Telegram/Telegram: No such file or directory

Any idea on this?

-- WritingMinds/ffmpeg-android-java

Viewing all articles
Browse latest Browse all 118063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>