-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to play streaming video (and audio)? #31
Comments
config ffmpeg: -CONFIG_HTTP_PROTOCOL 0 +CONFIG_HTTP_PROTOCOL 1 jni/libffmpeg/config-arm.mak: +CONFIG_TCP_PROTOCOL=yes |
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 Can you help out again? |
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?). |
maybe you should call this command will create config.h and config.mak. then copy config options to your havlenapetr project. |
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? |
yes. Will u please give me your email address? I'll send my config.h and config.mak to u. |
Great, thanks! Send to ******@yahoo.com |
I also have such problem. Do you mind send me config.h and config.mak? My email is easy.cuiyuxin@gmail.com Thanks. |
I'm getting the following errors updating the config files. Could you please also send me the config files? (_@_*.com) I just want to play an rtsp h264 HiP stream on 2.2 Android tablets. |
I'm getting the following errors updating the config files. I just want to play an rtsp h264 HiP stream on 2.2 Android tablets. |
I build with configuration is successfull. /libffmpeg/config.h libffmpeg/config.mak But It does not play rtsp. Please let me know, why is it? |
I never test rtsp stream. http is ok. |
Do You use http with m3u8? Please send me link to testing? |
@kietcao can you send me the config.sh config.h and config.mak? xccloveny@gmail.com |
@misol101 can you send me the config.sh config.h and config.mak? xccloveny@gmail.com |
Hello,
your setDataSource doc states "Sets the data source (file-path or http/rtsp URL) to use", but it seems that it simply tries to open the supplied datasource as a file (with av_open_input_file), so it cannot play streams or remote files.
Are you working on enabling this as well in your library? If not, do you have any pointers on how it could be done?
Thanks for any help!
The text was updated successfully, but these errors were encountered: