Comments (7)
纠正一下,应该是从第4帧解码开始出现的错误打印
from mpp.
这个问题请问大概是什么原因造成的?
from mpp.
麻烦提供一下测试文件?
from mpp.
好的,就连续的解码这个jpg文件就可以了:
百度网盘链接:https://pan.baidu.com/s/1LbM2zQX4k95EYlIvIZvLoA
提取码:r4z0
为了测试连续解码,我把demo中的代码增加了几行:
在mpi_dec_test.c文件中的mpi_dec_test_decode()函数中大概第677行中的while (!data.eos)里面,新增了多次调用decode_advanced(),具体如下:
while (!data.eos) {
mpp_err_f("the 1 decode\n");
decode_advanced(&data);
fseek(data.fp_input, 0L, SEEK_END);
file_size = ftell(data.fp_input);
rewind(data.fp_input);
mpp_err_f("the 2 decode\n");
decode_advanced(&data);
fseek(data.fp_input, 0L, SEEK_END);
file_size = ftell(data.fp_input);
rewind(data.fp_input);
mpp_err_f("the 3 decode\n");
decode_advanced(&data);
fseek(data.fp_input, 0L, SEEK_END);
file_size = ftell(data.fp_input);
rewind(data.fp_input);
mpp_err_f("the 4 decode\n");
decode_advanced(&data);
fseek(data.fp_input, 0L, SEEK_END);
file_size = ftell(data.fp_input);
rewind(data.fp_input);
mpp_err_f("the 5 decode\n");
decode_advanced(&data);
mpp_err_f("the final decode over\n");
}
from mpp.
Hi:
你提供的百度网盘链接失效了,麻烦重新提供下
from mpp.
你好,Jpg文件新的百度网盘链接如下:
链接:https://pan.baidu.com/s/1Mpg0URLYLUwBa0c5WsYL1g
提取码:16lw
from mpp.
Hi:
提供下你本地最新mpp的版本信息?
另外,要测试连续解同一帧jpeg的话,请合入如下修改,再进一步测试下看看。
用以下命令测试(加入-n 参数 指定重复编多少帧):
mpi_dec_test -i t2020.jpg -w 2448 -h 2048 -t 8 -n 10 -o 2448x2048.yuv
diff --git a/test/mpi_dec_test.c b/test/mpi_dec_test.c
index f8c9557c..cd5f0d22 100644
--- a/test/mpi_dec_test.c
+++ b/test/mpi_dec_test.c
@@ -473,6 +473,14 @@ static int decode_advanced(MpiDecLoopData *data)
dump_mpp_frame_to_file(frame, data->fp_output);
mpp_log("%p decoded frame %d\n", ctx, data->frame_count);
+
+ if (data->frame_num > 0 && data->frame_count < data->frame_num) {
+ data->eos = 0;
+ clearerr(data->fp_input);
+ rewind(data->fp_input);
+ }else{
+ data->eos = 1;
+ }
data->frame_count++;
if (mpp_frame_get_eos(frame_out))
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.