I need to play video on Android device (different formats). As I have understand, the best way is to use Android NDK with specific libraries that can play video. I have done some basic examples to understand NDK usage, but I don't know what to do next. As I have understood, I must install ffmpeg first of all. So I have the following questions given below:
So, can anyone help me and explain basic ways how to play video with ndk, may be some basic plan or links? Thank you very much for interest to my question!
Ok firstly starting with your problem; you have to decide whether you want Manipulate Video
or just Play video
. If you are just playing video/audio then there is no need for external lib.
like Ffmpeg.
But if you are manipulating
audio/video then go for Ffmpeg
. Then decide whether you want a ready compiled Ffmpeg
library or want to pursue for Compile via NDK
with custom flag settings.
If you can do with ready Ffmpeg lib.
then you can use this App and help for integrating it at here.
But if you are going for making the *.so
or compile Ffmpeg on your own via ndk
then see these Stackoverflow Help on FFmpeg for Android. Here you can have your own settings.
You also can use the Precompiled
lib. of Ffmpeg directly which is available at Github/Roman10
Now for your questions:-
As above
Depends whether you are extracting
then Ffmpeg Doc1 or just playing sound then Stackoverflow link
Play simply by looking at Android Docs,Video
Cheers..!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With