Monday, April 7, 2014

About FFMPEG new version of the problem! ! !


Android project to use FFMPEG, Quguan website to download the latest version of a, 122M, download compiled into static files into the project, suggesting avcodec_init can not find the time to use NDK native compiled a spectacle file avcodec. h declared in this function are not, then find an old version, avcodec.h header files are a declaration of this function, the new version is how it is, do modify it? FFMPEG video that one of the functions in avcodec.h are found, suggesting that no function is how ah! ! ! ! ! ! ! ! ! Ask you seniors the
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
No one knows what
Reply:
Download compiled into static files into the project? Help your ffmpeg has been compiled through, just call the api file ffmpeg compile error?
Reply:
I have imported into the project ah, FFMPEG 2.0 Oh, ndk-build when it prompts avcodec_init not find header file avcodec.h this statement has no function, I use the old version of the 0.9.3 version of FFMPEG , compile a static file, and then poured into the project, NDK compile time prompts error: undefined reference to 'avcodec_init'


May be static file I compiled it I have problems to compile the reference http://zzhhui.blog.sohu.com/244819188.html
A call to find success http://www.jouhu.com/blog/?p=497, I looked at it a static file
There are more than 20 M
libavcodec.a
I compiled the only 1K

I do not know what the reason is, is it the process of compiling the reason it

Reply:
Is not the name change, ffmpeg There is a log indicating which name is changed, the official online
Reply:
references, 4th Floor niwenxian1 reply:
is not a name change, ffmpeg There is a log indicating which name is changed, the official online

Well, I went to see
Reply:
Estimated to be renamed
Reply:
ffmpeg between several large version is not compatible
Reply:
reference to the 7th floor youngc527 reply:
ffmpeg between several large version is not compatible

I did not write the file is mk Well, you can now compile, but there is a problem, compiled file access
avformat_open_input (& pFormatCtx, "rtmp :/ / xxx.xx.87.58/e/crovd1", NULL, NULL); calling unsuccessful, but I rtmp path is right, with the other tools can access the video, config. h files in the network with config.mak I always open the
I do not know what compile time also set my config.sh file looks
#! / Bin / bash
PREBUILT = $ {NDK_ROOT} / toolchains/arm-linux-androideabi-4.8/prebuilt/windows
PLATFORM = android-18
ARCH = - arch = arm
. / Configure \
$ {ARCH} \
- Target-os = linux - enable-cross-compile - cross-prefix = $ {PREBUILT} / bin/arm-linux-androideabi- \
- Extra-cflags = "-fPIC-DANDROID-std = c99" \
- Enable-version3 \
- Enable-gpl \
- Enable-nonfree \
- Disable-stripping \
- Disable-ffmpeg \
- Disable-ffplay \
- Disable-ffserver \
- Disable-ffprobe \
- Disable-encoders \
- Enable-protocol = tcp \
- Disable-devices \
- Enable-demuxer = rtsp \
- Enable-avfilter \
- Enable-network \
- Enable-decoder = h264 \
- Disable-avdevice \
- Disable-asm \
- Enable-neon \
- Enable-armv5te \
- Sysinclude = $ {NDK_ROOT} / platforms / $ {PLATFORM} / arch-arm/usr/include \
- Extra-ldflags = "-Wl,-rpath-link = $ {NDK_ROOT} / platforms / $ {PLATFORM} / arch-arm/usr/lib-L $ {NDK_ROOT} / platforms / $ {PLATFORM} / arch- arm / usr / lib-nostdlib $ {NDK_ROOT} / platforms / $ {PLATFORM} / arch-arm/usr/lib/crtbegin_static.o $ {NDK_ROOT} / platforms / $ {PLATFORM} / arch-arm/usr/lib / crtend_android.o-lc-lm-ldl "

I hope Daniel gets advice ah
Reply:
reference to the 7th floor youngc527 reply:
ffmpeg between several large version is not compatible


config.h file in the network with confih.mak still concerned with RTMP I have set up, as well as adding librtmp or not
avformat_open_input not open when the video stream, but also do not know what set
Reply:
A test that can open the local SD card inside the 3GP file, but always failed to open RTMP
Reply:
The reply was deleted administrator at 2013-09-26 09:29:48

Reply:
To add librtmp, the rtmp related settings set to 1

No comments:

Post a Comment