How to play video using FFMPEG library in Android?
Have a look at this player: https://github.com/bbcallen/ijkplayer
Basically what you need to do is build a JNI interface through to the MediaPlayer class (or possibly ExoPlayer in newer Android though I haven't done this yet).
If you look at the repo link you will see that this needs to be done on top of ffplay more than ffmpeg as the former is the player and the latter the decode/encode/package tool.
Related videos on Youtube
Comments
-
Macchiato almost 2 years
I was able to build
ffmpeg
library by using rock player build script.Now I have this
.so
file, how do I play video? And I want to display this video inside a smallLinearLayout
in myActivity
.Is it possible?
Update: I know that it's easy to play video using
VideoView
orMediaPlayer
+SurfaceView
. I just wanted to understand more aboutffmpeg
library and how to display the frames inside an AndroidActivity
.-
Yaqub Ahmad about 12 years
-
Macchiato about 12 yearsI wanted to, but sorry my reputation is below 15
-
Prof. Falken over 11 years@Macchiato, so what was the right answer?
-
-
benchuk almost 9 yearsWorking, but uses software decoding in my case - but much better than VideoView for RTP stream stability wise.