havlenapetr / FFMpeg

this is port of ffmpeg for android (this is app, but in future i will do android lib from it and then system will be able to convert videos automatically)
882 stars 420 forks source link

how to play streaming(ts)? #37

Open fengshalangzi-duplicate opened 13 years ago

fengshalangzi-duplicate commented 13 years ago

I set the CONFIG_NETWORK=yes,CONFIG_HTTP_PROTOCOL=yes,CONFIG_TCP_PROTOCOL=yes,+#define CONFIG_NETWORK 1,define CONFIG_HTTP_PROTOCOL 1,define CONFIG_TCP_PROTOCOL 1,//typedef int socklen_t;

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

but,the return value is IllegalStateException;I look at the jni,the return value of getintfield is null.

kietcao commented 13 years ago

I think you should: https://github.com/havlenapetr/FFMpeg/issues/31#1381648

And get errors libffmpeg\libavformat\network.h in line 69 and 83.