Comments (8)
dear @HermanChen
thanks for your great example in mpi_enc_test.c
I finally could make a c++ simple project and take advantage of Opencv.
it may be useful for others who are interested to develop IOT streaming projects with Opencv and rockchip's processors.
https://github.com/EhsanVahab/rockchip-mpp-encoder
from mpp.
The header in directory inc is just enough for common usage.
And you can use header in osal/inc to get more functions.
Document is attached.
The Makefile is also provided if you want to use mpp in linux environment.
There are debian directory for reference.
from mpp.
from mpp.
Dear @HermanChen, thanks for your quick response.
I wonder is there any detailed document for MppApi and MppCtx and their functions?
for example I have to guess the MppApi::control's function. or spend long time to review the code to deeply understand.
from mpp.
emmm... the document was not updated for a long time. Just check the comment in code for its usage.
from mpp.
dear @HermanChen
thanks for your comment.
I installed mpp on a virtual machine with ubuntu 18. ==>this is my programming environment.
then I wrote a simple c++ program to take advantage of MPP library. every thing is ok and my code compiled and run successfully with g++.
when I move my code on Firefly AIO-3399ProC , it is built but I face runtime error : undefined symbol: mpp_spinlock_lock
I post my Makefile and I deeply appreciate if you make me write.
CFLAGS=-O3
LDFLAGS=-lrockchip_mpp -lutils -lm -lopencv_core -lpthread -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_videoio -lopencv_imgcodecs
LIBDIR=-L/home/firefly/Project/mpp/build/lib -L/usr/local/lib
INCDIR= -I/home/firefly/Project/mpp/inc -I/home/firefly/Project/mpp/utils -I/home/firefly/Project/mpp/osal/inc
default : enc
enc : enc.o
g++ -o $@ $^ $(INCDIR) $(LIBDIR) $(LDFLAGS)
%.o : %.cpp
g++ -c $(INCDIR) $(LIBDIR) $(LDFLAGS) $(CFLAGS) -o $@ $<
clean :
rm -f *.o enc
from mpp.
dear @HermanChen thanks for your comment. I installed mpp on a virtual machine with ubuntu 18. ==>this is my programming environment. then I wrote a simple c++ program to take advantage of MPP library. every thing is ok and my code compiled and run successfully with g++.
when I move my code on Firefly AIO-3399ProC , it is built but I face runtime error : undefined symbol: mpp_spinlock_lock
I post my Makefile and I deeply appreciate if you make me write.
CFLAGS=-O3 LDFLAGS=-lrockchip_mpp -lutils -lm -lopencv_core -lpthread -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_videoio -lopencv_imgcodecs LIBDIR=-L/home/firefly/Project/mpp/build/lib -L/usr/local/lib INCDIR= -I/home/firefly/Project/mpp/inc -I/home/firefly/Project/mpp/utils -I/home/firefly/Project/mpp/osal/inc default : enc enc : enc.o g++ -o $@ $^ $(INCDIR) $(LIBDIR) $(LDFLAGS) %.o : %.cpp g++ -c $(INCDIR) $(LIBDIR) $(LDFLAGS) $(CFLAGS) -o $@ $< clean : rm -f *.o enc
solved.
the root cause was the firefly ubuntu version has its own default rockchip's mpp. and it's not compatible with the latest version
from mpp.
Nice work : )
from mpp.
Related Issues (20)
- mpp_log: can not found match soc name: radxa,radxa-cm3-io rockchip,rk3566 HOT 1
- Build mpp, and gets Segmentation Fault HOT 2
- rv1126使用rkmedia的vdec接口进行解码jpeg图片时段错误,解码h264/h265没有问题(但是有内存泄漏问题) HOT 8
- rv1126解码h264有内存泄漏 HOT 3
- build mpp,but test log show Rk3588 does not support HOT 1
- RK3566 H264解码性能较差,实测到到不了60fps HOT 13
- 请教下,测试RK3588 H264硬件编码出来的帧都是I帧,是什么原因呢? HOT 7
- 能否修改mpp目录以及mpp/legacy目录下的CMakeLists.txt,使得能否同时生成同名的动态库以及静态库? HOT 1
- 解码后的数据拷贝很慢 HOT 4
- void os_log_error(const char* tag, const char* msg, va_list list)会崩 HOT 3
- 解码 hevc 码流一直报错 PPS id out of range: 0 HOT 5
- jpeg decode stuck using test/mpi_dec_mt_test
- MPP can't be initialized on RK3568B2 HOT 4
- 如何绑定纹理指针,让MPP解码直接将数据赋值给纹理指针? HOT 2
- 最新包 aarch64崩溃问题 HOT 10
- RK3588在1080p下的最大编码帧率是多少? HOT 1
- Assistance Needed - NDA and SDK Access for Rockchip (rk3566/rk3588) HOT 2
- 1920*1080大小输入图像帧拷贝到mpp frame buffer占用CPU高 HOT 1
- H264最大的nal size限制无效 HOT 1
- mpp库报错
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 mpp.