Comments (3)
hmpf. i just added --enable-decoder=flv, --enable-encoder=flv, --enable-muxer=flv & --enable-demuxer=flv to android-build.sh in ffmpeg section as you described in the description =). For now it looks like if it works better than the Vitamio api on my devices here! Great work!
from androidffmpeg.
Hello danoma,
I edited android-build.sh as your suggestion. But it still does not work with flv file. Any other changes or suggestion. Pls help me. Thanks!
function build_ffmpeg
{
PLATFORM=$NDK/platforms/$PLATFORM_VERSION/arch-$ARCH/
CC=$PREBUILT/bin/$EABIARCH-gcc
CROSS_PREFIX=$PREBUILT/bin/$EABIARCH-
PKG_CONFIG=${CROSS_PREFIX}pkg-config
if [ ! -f $PKG_CONFIG ];
then
cat > $PKG_CONFIG << EOF
#!/bin/bash
pkg-config $*
EOF
chmod u+x $PKG_CONFIG
fi
NM=$PREBUILT/bin/$EABIARCH-nm
cd ffmpeg
export PKG_CONFIG_LIBDIR=$(pwd)/$PREFIX/lib/pkgconfig/
export PKG_CONFIG_PATH=$(pwd)/$PREFIX/lib/pkgconfig/
./configure --target-os=linux
--prefix=$PREFIX
--enable-cross-compile
--extra-libs="-lgcc"
--arch=$ARCH
--cc=$CC
--cross-prefix=$CROSS_PREFIX
--nm=$NM
--sysroot=$PLATFORM
--extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS "
--disable-shared
--enable-static
--enable-runtime-cpudetect
--extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog -L$PREFIX/lib"
--extra-cflags="-I$PREFIX/include"
--disable-everything
--enable-libass
--enable-libvo-aacenc
--enable-libvo-amrwbenc
--enable-hwaccel=h264_vaapi
--enable-hwaccel=h264_vaapi
--enable-hwaccel=h264_dxva2
--enable-hwaccel=mpeg4_vaapi
--enable-demuxer=mov
--enable-demuxer=h264
--enable-demuxer=mpegvideo
--enable-demuxer=h263
--enable-demuxer=mpegps
--enable-demuxer=mjpeg
--enable-demuxer=rtsp
--enable-demuxer=rtp
--enable-demuxer=hls
--enable-demuxer=matroska
--enable-demuxer=flv
--enable-muxer=rtsp
--enable-muxer=mp4
--enable-muxer=mov
--enable-muxer=mjpeg
--enable-muxer=matroska
--enable-muxer=flv
--enable-protocol=crypto
--enable-protocol=jni
--enable-protocol=file
--enable-protocol=rtp
--enable-protocol=tcp
--enable-protocol=udp
--enable-protocol=applehttp
--enable-protocol=hls
--enable-protocol=http
--enable-decoder=xsub
--enable-decoder=jacosub
--enable-decoder=dvdsub
--enable-decoder=dvbsub
--enable-decoder=subviewer
--enable-decoder=rawvideo
--enable-encoder=rawvideo
--enable-decoder=mjpeg
--enable-encoder=mjpeg
--enable-decoder=h263
--enable-decoder=mpeg4
--enable-encoder=mpeg4
--enable-decoder=flv
--enable-encoder=flv
--enable-decoder=h264
--enable-encoder=h264
--enable-decoder=aac
--enable-encoder=aac
--enable-parser=h264
--enable-encoder=mp2
--enable-decoder=mp2
--enable-encoder=libvo_amrwbenc
--enable-decoder=amrwb
--enable-muxer=mp2
--enable-bsfs
--enable-decoders
--enable-encoders
--enable-parsers
--enable-hwaccels
--enable-muxers
--enable-avformat
--enable-avcodec
--enable-avresample
--enable-zlib
--disable-doc
--disable-ffplay
--disable-ffmpeg
--disable-ffplay
--disable-ffprobe
--disable-ffserver
--disable-avfilter
--disable-avdevice
--enable-nonfree
--enable-version3
--enable-memalign-hack
--enable-asm
$ADDITIONAL_CONFIGURE_FLAG
|| exit 1
make clean || exit 1
make -j4 install || exit 1
cd ..
}
from androidffmpeg.
I forgot to run ndk-build again. 2 steps: run android-build.sh, ndk-build
from androidffmpeg.
Related Issues (20)
- It compiles but doesn't work
- 'Could not find compilator' HOT 3
- seekNative() doesn't return any frame
- app was crashed HOT 1
- I want joinning, thanks
- I play tcp stream from camera,there is about 0.5 seconds delay,is there some buffer resulted in? HOT 1
- automake: error: 'configure.ac' is required HOT 1
- could somebody send me the compiled library?
- build_android.sh "C compiler cannot create executables" HOT 3
- library:processReleaseResources FAILED
- mp4 video player system crash
- Can I use this library to play h264 over rtsp? HOT 2
- Fatal signal SIGSEGV after playing 4-5 videos one after the another
- Cannot build project HOT 1
- can't update submodule with libyuv HOT 5
- Why libavfilter is disabled in ffmpeg configuration? HOT 3
- extracting subtitles using this project HOT 1
- Higher versions Support HOT 3
- Repo
- crash on app
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 androidffmpeg.