Comments (12)
you can add quotes while sending file path with spaces
from ffmpeg-android-java.
I tried with quotes:
-i '/storage/emulated/0/Music/They Might Be Giants - Seven Days Of The We.mp3' -strict experimental -ab 48000 -ac 2 -ar 22050 /storage/emulated/0/Music/out.mp4
logcat:
'/storage/emulated/0/Music/They: No such file or directory
Or there must be other quotes?
from ffmpeg-android-java.
Try escaping the spaces similar to this -> "./ffmpeg -i /sdcard/sample\ 1.mkv /sdcard/sample\ 2.mp4"
from ffmpeg-android-java.
I followed your suggestions of using single and double quote and also tried using escape sequence while using path with spaces.
However the log cat still source same error.
Any other suggestions please.
from ffmpeg-android-java.
I discovered that calling "Runtime.getRuntime().exec();" with a string array as parameter instead of string solved this issue, by passing the commands as an array allowed me to include spaces.
Ex: Process run(String command[]) {
Process process = null;
try {
process = Runtime.getRuntime().exec(command);
} catch (IOException e) {
Log.e("Exception while trying to run: " + command, e);
}
return process;
}
from ffmpeg-android-java.
This library uses Runtime.getRuntime().exec(String) method wich is not good if you have for example double quotes ( see https://stackoverflow.com/questions/14078799/getruntime-exec-with-double-quotes-in-command ). Need to switch to exec(String[] cmdarray)
from ffmpeg-android-java.
Any solution with this @gderaco ?
from ffmpeg-android-java.
I've just done a pull request for this: #17
from ffmpeg-android-java.
i'm having the same issue, i tried escaping and my final command is
ffmpeg -y -i /storage/emulated/0/Download/1\ -\ 1.mp4 -f mp4 -vcodec libx264 -maxrate 750k -ss 0.0 -to 120.0 -vf scale=480:-2 -r 24 -strict -2 /storage/emulated/0/DCIM/Camera/aaa.mp4
and logcat says
Unrecognized option ''.
Error splitting the argument list: Option not found
Do I have to use Runtime.getRuntime().exec() then?
from ffmpeg-android-java.
I have same issue, how I can use your commit #17?
from ffmpeg-android-java.
These changes don't seem to be in the Maven Repository, yet.. do you have plans for updating the repository? thanks
from ffmpeg-android-java.
I've fixed this problem by doing this stackoverflow
from ffmpeg-android-java.
Related Issues (20)
- Can i use "copy" in the slow motion command? Currently getting error "Filtering and streamcopy cannot be used together"
- Not working with Android 10 HOT 2
- Not Working on Android api target 29 HOT 4
- Using along with Javacv
- its not working with android 10 shows Permission denied HOT 4
- Permission Denied Exception HOT 5
- Can I have an example of input array you put into the ffmpeg.execute function ??|
- Can I have an example of input array you put into the ffmpeg.execute function ??|
- FFmpegLoadLibraryAsyncTask.onPostExecute never gets called
- No such directory. Ffmpeg libavcodec libavutil and other files no such directory. I tried sample and tried with -version command its working fine but when i trim a video shows this error
- how to apply filter on videos? HOT 2
- its not working with android 10 shows Permission denied Error Code 13 HOT 2
- how to generate video from arraylist.
- I am using ffmpeg in android but taking much time to crop the video
- Text Relocation in API level >23
- how to split videos into parts
- what is command for adding text and audio in videoview
- command for adding audio(mp3) to mp4
- Can the live audio stream address and the live video stream address be combined into the live audio & video stream address of the two stream addresses?
- BG-380-[hevc @ 0xe86ff800] Could not find ref with POC 34
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg-android-java.