Live555 and ffmpeg on NaCl ?

230 views
Skip to first unread message

Georgio Wan

unread,
Mar 30, 2015, 7:29:15 AM3/30/15
to native-cli...@googlegroups.com
Hello everyone,

I am new in NaCl, and had some questions. I wrote a C++ project that use Live555 to get h264 stream, and decode by ffmpeg, now I think that I can port it on NaCl, and then use OpenGL ES to render.

Theere is my question :
 
Can it work on NaCl?
- I know that ffmpeg can work, but not sure the Live555 part,
- and have no idea how to port Live555 with naclports, need some suggestions, pls.


thanks. 
 

Victor Khimenko

unread,
Mar 30, 2015, 7:44:02 AM3/30/15
to Native Client Discuss
it was already discussed, but it does not look like attempt to port live555 went anywhere:

  https://groups.google.com/d/msg/native-client-discuss/6YKu6Qr-L4I/lJk4Rl4XtfMJ

--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-di...@googlegroups.com.
To post to this group, send email to native-cli...@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-discuss.
For more options, visit https://groups.google.com/d/optout.

Brad Wu

unread,
Mar 30, 2015, 10:03:49 PM3/30/15
to native-cli...@googlegroups.com
Hi, Wan

I had attempted to use live555 to NaCl, however, I failed. 

If you success to that, welcome to share information. Thanks a lot. 

Georgio Wan於 2015年3月30日星期一 UTC+8下午7時29分15秒寫道:

comput...@gmail.com

unread,
Oct 14, 2015, 12:15:50 AM10/14/15
to Native-Client-Discuss
hi ,wan 
i want to decode h264 with ffmpeg,and compiled ffmpeg(v2.8) static lib (libavcodec,libavformat,...) use MinGW( and cygwin ),but it is failed when i call av_register_all() ,it is mean the function undefined. could you tell me the way to use ffmpeg in nacl.
thanks.

在 2015年3月30日星期一 UTC+8下午7:29:15,Georgio Wan写道:

Georgio Wan

unread,
Oct 14, 2015, 10:58:36 PM10/14/15
to Native-Client-Discuss
hi,
My project was finished a while, but I think that you should check you Makfile, maybe you lost something like "EXTRA_LIB_PATHS += $(DIR_INSTALL)/ffmpeg/lib" to link your ffmpeg.

comput...@gmail.com於 2015年10月14日星期三 UTC+8下午12時15分50秒寫道:

comput...@gmail.com

unread,
Oct 14, 2015, 11:38:12 PM10/14/15
to Native-Client-Discuss
hi,
i copy all static lib to the default dir , the project can find the ffmpeg static lib(libavcodec.a,...) ,however it can not get the founction (av_register_all(),....).

Georgio Wan

unread,
Oct 15, 2015, 2:16:16 AM10/15/15
to Native-Client-Discuss
Um ... let's check the include part, if your filetype is .cpp or .cc, you should include "avcodec.h" with extern "C".
If you still can't find the funtion, you could try to use naclport ffmpeg version to get a little test for your code ! good luck !

comput...@gmail.com於 2015年10月15日星期四 UTC+8上午11時38分12秒寫道:

comput...@gmail.com

unread,
Oct 15, 2015, 4:44:42 AM10/15/15
to Native-Client-Discuss
hi,
1.i compiled ffmpeg (v2.1.3,naclport version ) with MinGW(32bit) use "./configure --enable-static --enable-memalign-hack --enable-pthreads",and get libavdevice.a, libavformat.a, libavfilter.a , libavcodec.a,   libswresample.a,  libswscale.a , libavutil.a.

2.i used one example  "messaging" of papper_43,i copy all the static lib to "\pepper_43\lib\glibc_x86_32\Release",and change VALID_TOOLCHAINS := glibc in makefile. change LIBS = avdevice avformat avfilter avcodec avicap32 ws2_32 iconv psapi advapi32 shell32 swresample swscale avutil m pthread ppapi_cpp ppapi.

3.i add extern "C"
{
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"
}
to messaging.cc,and just add one line "av_register_all();"
4.when "make" , error:  undefined reference to `av_register_all()'

i have tried few ffmpeg versions,and get the same error .

Georgio Wan

unread,
Oct 15, 2015, 4:58:49 AM10/15/15
to Native-Client-Discuss
hola,
It's really weird problem, here is my LIB order in my Makefile "avcodec avutil swscale avformat", maybe you can try this order to include, cause it is static.

Otherwise, I found that I only use  avcodec_register_all() in my project to register it. Good luck!!

comput...@gmail.com於 2015年10月15日星期四 UTC+8下午4時44分42秒寫道:

comput...@gmail.com

unread,
Oct 15, 2015, 5:55:53 AM10/15/15
to Native-Client-Discuss
hi,
i tried your way,but has same error,may be there are some other errors.
 thanks.

Georgio Wan

unread,
Oct 15, 2015, 6:04:33 AM10/15/15
to native-cli...@googlegroups.com
Regret that can't help you more, hope you find the way to solve it, it's really OMG to develop pnacl/nacl XDD  加油~~

--
You received this message because you are subscribed to a topic in the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/native-client-discuss/GLlWr6Sgnzg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to native-client-di...@googlegroups.com.

To post to this group, send email to native-cli...@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-discuss.
For more options, visit https://groups.google.com/d/optout.



--
沈萬嘉哲 Georgio Wan
***********************************
iCATCH Inc.
可取國際股份有限公司
> 114 台北市內湖區瑞光路513巷26號2樓
> TEL: 02-55506660 # 329
> FAX: 02-55506670
> EMail: georg...@icatchinc.com
***********************************
Reply all
Reply to author
Forward
Message has been deleted
0 new messages