Skip to content

Commit b44b325

Browse files
committed
add mediacodec of Android platform
1 parent cd93749 commit b44b325

9 files changed

Lines changed: 21 additions & 3 deletions

File tree

app/libs/arm64-v8a/libffmpeg.so

50.6 KB
Binary file not shown.

app/libs/arm64-v8a/libffmpegold.so

12.1 MB
Binary file not shown.

app/libs/armeabi-v7a/libffmpeg.so

35.9 KB
Binary file not shown.
11.5 MB
Binary file not shown.
-945 KB
Binary file not shown.
-867 KB
Binary file not shown.

shell/ffmpeg/build_ffmpeg_mp3.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export EXTRA_CFLAGS="-Os -fpic $OPTIMIZE_CFLAGS -I$LAMEDIR/include"
4040
export EXTRA_LDFLAGS="-lc -lm -ldl -llog -lgcc -lz -L$LAMEDIR/lib"
4141

4242
build_one(){
43-
./configure --target-os=linux --prefix=$PREFIX \
43+
./configure --target-os=android --prefix=$PREFIX \
4444
--enable-cross-compile \
4545
--arch=$CPU \
4646
--cc=$TOOLCHAIN/bin/$CPU-linux-$ANDROID-gcc \
@@ -85,6 +85,12 @@ mp3float,mp3,mp3_at,mp3adufloat,mp3adu,mp3on4float,mp3on4,aac_fixed,aac_at,aac_l
8585
--enable-muxers \
8686
--enable-parsers \
8787
--enable-protocols \
88+
--enable-jni \
89+
--enable-mediacodec \
90+
--enable-decoder=h264_mediacodec \
91+
--enable-decoder=hevc_mediacodec \
92+
--enable-decoder=mpeg4_mediacodec \
93+
--enable-decoder=vp9_mediacodec \
8894
--disable-demuxers \
8995
--enable-demuxer=aac,ac3,amr,amrnb,amrwb,ape,asf,asf_o,ast,avi,caf,cavsvideo,codec2,concat,data,dnxhd,flac,flv,g722,g729,\
9096
gif,gif_pipe,h264,hevc,hls,image2,image2pipe,ingenient,jpeg_pipe,lavfi,lrc,m4v,matroska,webm,mjpeg,mov,mp4,m4a,3gp,mp3,mpeg,\

shell/ffmpeg/build_ffmpeg_one.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export EXTRA_CFLAGS="-Os -fpic $OPTIMIZE_CFLAGS -I$LAMEDIR/include"
4242
export EXTRA_LDFLAGS="-lc -lm -ldl -llog -lgcc -lz -L$LAMEDIR/lib"
4343

4444
build_one(){
45-
./configure --target-os=linux --prefix=$PREFIX \
45+
./configure --target-os=android --prefix=$PREFIX \
4646
--enable-cross-compile \
4747
--arch=$CPU \
4848
--cc=$TOOLCHAIN/bin/$CPU-linux-$ANDROID-gcc \
@@ -90,6 +90,12 @@ pcm_u16be,pcm_u16le,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,pcm_vidc,pcm_zork,ad
9090
--enable-muxers \
9191
--enable-parsers \
9292
--enable-protocols \
93+
--enable-jni \
94+
--enable-mediacodec \
95+
--enable-decoder=h264_mediacodec \
96+
--enable-decoder=hevc_mediacodec \
97+
--enable-decoder=mpeg4_mediacodec \
98+
--enable-decoder=vp9_mediacodec \
9399
--disable-demuxers \
94100
--enable-demuxer=aac,ac3,alaw,amr,amrnb,amrwb,ape,asf,asf_o,avi,cavsvideo,codec2,concat,dnxhd,eac3,flac,flv,\
95101
gif,gif_pipe,h263,h264,hevc,hls,image2,image2pipe,jpeg_pipe,lrc,m4v,matroska,webm,mjpeg,mov,mp4,m4a,3gp,mp3,mpeg,\

shell/ffmpeg/build_ffmpeg_x264.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export EXTRA_CFLAGS="-Os -fpic $OPTIMIZE_CFLAGS -I$X264DIR/include"
4040
export EXTRA_LDFLAGS="-lc -lm -ldl -llog -lgcc -lz -L$X264DIR/lib"
4141

4242
build_one(){
43-
./configure --target-os=linux --prefix=$PREFIX \
43+
./configure --target-os=android --prefix=$PREFIX \
4444
--enable-cross-compile \
4545
--arch=$CPU \
4646
--cc=$TOOLCHAIN/bin/$CPU-linux-$ANDROID-gcc \
@@ -86,6 +86,12 @@ mp3float,mp3,mp3_at,mp3adufloat,mp3adu,mp3on4float,mp3on4,aac_fixed,aac_at,aac_l
8686
--enable-muxers \
8787
--enable-parsers \
8888
--enable-protocols \
89+
--enable-jni \
90+
--enable-mediacodec \
91+
--enable-decoder=h264_mediacodec \
92+
--enable-decoder=hevc_mediacodec \
93+
--enable-decoder=mpeg4_mediacodec \
94+
--enable-decoder=vp9_mediacodec \
8995
--disable-demuxers \
9096
--enable-demuxer=aac,ac3,amr,amrnb,amrwb,ape,asf,asf_o,ast,avi,caf,cavsvideo,codec2,concat,data,dnxhd,flac,flv,g722,g729,\
9197
gif,gif_pipe,h264,hevc,hls,image2,image2pipe,ingenient,jpeg_pipe,lavfi,lrc,m4v,matroska,webm,mjpeg,mov,mp4,m4a,3gp,mp3,mpeg,\

0 commit comments

Comments
 (0)