Comments (15)
config ffmpeg:
jni/libffmpeg/config.h
-CONFIG_HTTP_PROTOCOL 0
-CONFIG_TCP_PROTOCOL 0
+CONFIG_HTTP_PROTOCOL 1
+CONFIG_TCP_PROTOCOL 1
jni/libffmpeg/config-arm.mak:
-!CONFIG_TCP_PROTOCOL=yes
-!CONFIG_HTTP_PROTOCOL=yes
+CONFIG_TCP_PROTOCOL=yes
+CONFIG_HTTP_PROTOCOL=yes
from ffmpeg.
Thanks, but after a clean build with your changes I get:
/home/misol/Android/android-ndk-r5c/samples/havlenapetr-FFMpeg-7c27aa2/obj/local/armeabi/libavformat.a(allformats.o): In function av_register_all': /home/misol/Android/android-ndk-r5c/samples/havlenapetr-FFMpeg-7c27aa2/jni/libffmpeg/libavformat/allformats.c:237: undefined reference to
http_protocol'
/home/misol/Android/android-ndk-r5c/samples/havlenapetr-FFMpeg-7c27aa2/jni/libffmpeg/libavformat/allformats.c:237: undefined reference to `tcp_protocol'
collect2: ld returned 1 exit status
make: *** [/home/misol/Android/android-ndk-r5c/samples/havlenapetr-FFMpeg-7c27aa2/obj/local/armeabi/libffmpeg_jni.so] Error 1
Can you help out again?
from ffmpeg.
Finally managed to compile with tcp/hhtp on, using the following (with a few ugly hacks, I'm no make build expert):
diff -r jni/libffmpeg/config-arm.mak ../../samples/havlenapetr-FFMpeg-7c27aa2/jni/libffmpeg/config-arm.mak 272c272 +CONFIG_NETWORK=yes --- -!CONFIG_NETWORK=yes 948c948 +CONFIG_HTTP_PROTOCOL=yes --- -!CONFIG_HTTP_PROTOCOL=yes 957c957 +CONFIG_TCP_PROTOCOL=yes --- -!CONFIG_TCP_PROTOCOL=yes diff -r jni/libffmpeg/config.h ../../samples/havlenapetr-FFMpeg-7c27aa2/jni/libffmpeg/config.h 199c199 +#define CONFIG_NETWORK 1 --- -#define CONFIG_NETWORK 0 875c875 +#define CONFIG_HTTP_PROTOCOL 1 --- -#define CONFIG_HTTP_PROTOCOL 0 884c884 +#define CONFIG_TCP_PROTOCOL 1 --- -#define CONFIG_TCP_PROTOCOL 0 diff -r jni/libffmpeg/config.mak ../../samples/havlenapetr-FFMpeg-7c27aa2/jni/libffmpeg/config.mak 272c272 +CONFIG_NETWORK=yes --- -!CONFIG_NETWORK=yes 948c948 +CONFIG_HTTP_PROTOCOL=yes --- -!CONFIG_HTTP_PROTOCOL=yes 957c957 +CONFIG_TCP_PROTOCOL=yes --- -!CONFIG_TCP_PROTOCOL=yes diff -r jni/libffmpeg/libavformat/network.h ../../samples/havlenapetr-FFMpeg-7c27aa2/jni/libffmpeg/libavformat/network.h 67c67 +#if 0 --- - 93d92 + #endif diff -r jni/libffmpeg/libavformat/os_support.h ../../samples/havlenapetr-FFMpeg-7c27aa2/jni/libffmpeg/libavformat/os_support.h 50c50 +//typedef int socklen_t; --- -typedef int socklen_t;
Unfortunately (and like I suspected) there is no difference when setDataSource is called (av_open_input_file fails, which seems to make sense since it seems to work with files only?).
tsingien, how do I actually make any use of my now "http/tcp-enabled" library?
from ffmpeg.
maybe you should call
./configure --your parameters such as --enable-network --enable-http etc.
on linux.
this command will create config.h and config.mak. then copy config options to your havlenapetr project.
from ffmpeg.
But are you saying that remote streams and urls will in fact play "automagically" as long as my ffmpeg config is right? That av_open_input_file (as called in mediaplayer.cpp) will open and play these with no other modifications needed?
Is that working for you?
from ffmpeg.
yes.
Will u please give me your email address? I'll send my config.h and config.mak to u.
from ffmpeg.
Great, thanks! Send to ******@yahoo.com
from ffmpeg.
I also have such problem. Do you mind send me config.h and config.mak? My email is [email protected] Thanks.
from ffmpeg.
I'm getting the following errors updating the config files. Could you please also send me the config files? (_@_*.com)
/network.h:69: : redefinition of 'struct __kernel_sockaddr_storage'
/network.h:83: error: redefinition of 'struct addrinfo'
I just want to play an rtsp h264 HiP stream on 2.2 Android tablets.
Default Android MediaPlayer has at least 10s buffering delay and I need to reduce it.
Using ffmpeg with jni seems to be, at that time, the only way to reduce it.
from ffmpeg.
I'm getting the following errors updating the config files.
Compile thumb : ffmpeg_jni <= cmdutils.c
In file included from libffmpeg/cmdutils.c:44:
libffmpeg/libavformat/network.h:69: error: redefinition of 'struct __kernel_sockaddr_storage'
libffmpeg/libavformat/network.h:83: error: redefinition of 'struct addrinfo'
make: *** [libffmpeg/cmdutils.o] Error 1
I just want to play an rtsp h264 HiP stream on 2.2 Android tablets.
Default Android MediaPlayer has at least 10s buffering delay and I need to reduce it.
Using ffmpeg with jni seems to be, at that time, the only way to reduce it.
Email: [email protected]. Thanks for your reply.
from ffmpeg.
I build with configuration is successfull.
/libffmpeg/config.h
#define CONFIG_NETWORK 1
#define CONFIG_HTTP_PROTOCOL 1
#define CONFIG_TCP_PROTOCOL 1
#define CONFIG_RTMP_PROTOCOL 1
#define CONFIG_RTP_PROTOCOL 1
#define CONFIG_UDP_PROTOCOL 1
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
#define HAVE_STRUCT_ADDRINFO 1
#define HAVE_SOCKLEN_T 1
libffmpeg/config.mak
CONFIG_NETWORK=yes
CONFIG_HTTP_PROTOCOL=yes
CONFIG_TCP_PROTOCOL=yes
CONFIG_RTMP_PROTOCOL=yes
CONFIG_RTP_PROTOCOL=yes
CONFIG_UDP_PROTOCOL=yes
HAVE_STRUCT_SOCKADDR_STORAGE=yes
HAVE_SOCKLEN_T=yes
HAVE_STRUCT_ADDRINFO=yes
But It does not play rtsp. Please let me know, why is it?
from ffmpeg.
I never test rtsp stream. http is ok.
from ffmpeg.
Do You use http with m3u8? Please send me link to testing?
from ffmpeg.
@kietcao can you send me the config.sh config.h and config.mak? [email protected]
Thank you very much!
from ffmpeg.
@misol101 can you send me the config.sh config.h and config.mak? [email protected]
Thank you very much!
I have the same problem,maybe you had done this now :),please give me some advice.
from ffmpeg.
Related Issues (20)
- Unable to find JNI Methods
- Go far ? HOT 2
- how to play m3u8? HOT 1
- No Picture HOT 2
- av_read_frame not work, return -110 HOT 3
- call the method of " setDataSource() " before call the method of "prepare()" maybe happen
- ffmpeg for android HOT 1
- give error
- There is a issue ,why is it? HOT 6
- android4.0 or higher HOT 3
- Does this project contain muxer part?
- Couldn't load lib HOT 4
- dlopen failed: cannot locate symbol "_ZN7android10AudioTrack12sharedBufferEv" referenced by "libjniaudio.so"...
- Not a good compilation of links
- ffmpeg: Application provided invalid, non monotonically increasing dts to muxer in stream 1: 93840 >= 93690
- java.lang.UnsatisfiedLinkError: dlopen failed: library "libavutil-55.so" not found
- 能否提供一个Android Studio 版本
- FFMpeg读取内存数据NSData用了AVIOContext * avio_in =avio_alloc_context(inbuffer,32768*20,0,NULL,read_buffer,NULL,NULL);里的read_buffer方法
- Issue in multicast
- Multicast not playing on network
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 ffmpeg.