Reputation: 3997
I would like to separate audio
and video
from given input video file
.I have build ffmpeg
sos for Android using http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/ this link.
generated SOS
libavcodec-56.so,libavfilter-5.so,libavformat-56.so,libavutil-54.so,libswscale-3.so
ffmpeg command for separate video file(doesn't contain audio)
from input video file
ffmpeg -i input.mkv -map 0:v -codec copy output.mkv
I know the command
which we have used in command prompt
to get the desired output
I dont know how to call the ffmpeg command from Android Java Native method.and also dont know about write a JNI wrapper for this command.
Upvotes: 2
Views: 4267
Reputation: 12167
Since you are doing the ffmpeg
library porting to android, not the ffmpeg
binary format. You need to reference the ffmpeg
library documents to call APIs exported in the library instead invoking the ffmpeg
command.
You could use system()
or exec()
Linux C api to call the command ffmpeg
in JNI, but i don't think this is the way you are looking for.
The article link you posted already provide the examples, have you checked?
Upvotes: 1