Toybrick

楼主: jefferyzhang

RK3399Pro入门教程(6)硬件编解码器MPP库的使用

 

jefferyzhang

版主

积分
12844
 楼主| 发表于 2020-4-6 18:29:28 | 显示全部楼层
appleUncle 发表于 2020-4-6 14:50
我发现一个神奇的问题,,,,我在源码编译安装mpp库的时候,,最新的提交都跑不起来,或者跑一会就死循环 ...

可以去github提issues
回复

使用道具 举报

Google

注册会员

积分
110
发表于 2020-4-11 19:23:04 | 显示全部楼层
zhouzhouzlove 发表于 2019-9-6 09:50
当直接把ffmpeg的packet中的data给到mpp的packet的时候,是否遇见过这个报错:
mpp_packet: Assertion p- ...

我有遇到,请问是哪里的问题
回复

使用道具 举报

CLKAB

新手上路

积分
6
发表于 2020-4-13 14:57:03 | 显示全部楼层
zhouzhouzlove 发表于 2019-8-29 10:51
斑竹辛苦了,这个属性,是否就是制定了默认的输出类型?
我看了代码,是输入命令-f后面的参数。但是这个 ...

你好想问下,编译ffmpeg 打开 rkmpp然后编译出现以下错误。。您之前出现过吗?
libavutil/hwcontext_drm.c:124:29: error: ‘DRM_FORMAT_NV12_10’ undeclared here (not in a function)
回复

使用道具 举报

1881949

注册会员

积分
98
发表于 2020-6-9 15:48:06 | 显示全部楼层
hello,what is the reason for this problem?  thank
[toybrick@toybrick aarch64]$ ./make-Makefiles.bash
-- cmake version 3.14.4
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:30 (project):
  The CMAKE_C_COMPILER:

    aarch64-linux-gnu-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:30 (project):
  The CMAKE_CXX_COMPILER:

    aarch64-linux-gnu-g++

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/toybrick/mpp/build/linux/aarch64/CMakeFiles/CMakeOutput.log".
See also "/home/toybrick/mpp/build/linux/aarch64/CMakeFiles/CMakeError.log".
[toybrick@toybrick aarch64]$ ./make-Makefiles.bash
-- cmake version 3.14.4
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:30 (project):
  The CMAKE_C_COMPILER:

    aarch64-linux-gnu-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:30 (project):
  The CMAKE_CXX_COMPILER:

    aarch64-linux-gnu-g++

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/toybrick/mpp/build/linux/aarch64/CMakeFiles/CMakeOutput.log".
See also "/home/toybrick/mpp/build/linux/aarch64/CMakeFiles/CMakeError.log".
回复

使用道具 举报

kevin

注册会员

积分
74
发表于 2020-7-13 14:44:20 | 显示全部楼层
请问MPP库支持直接H264编码UVC摄像头的MJPEG格式数据吗?还是需要将数据转换为YUYV?
回复

使用道具 举报

jefferyzhang

版主

积分
12844
 楼主| 发表于 2020-7-13 15:16:08 | 显示全部楼层
kevin 发表于 2020-7-13 14:44
请问MPP库支持直接H264编码UVC摄像头的MJPEG格式数据吗?还是需要将数据转换为YUYV? ...

要转
回复

使用道具 举报

kevin

注册会员

积分
74
发表于 2020-7-13 18:32:36 | 显示全部楼层

那么使用mpp/codec/dec/jpeg/下的文件可以调用硬件解码不?如果可以与libjpeg解码效率上有不同吗?
回复

使用道具 举报

jefferyzhang

版主

积分
12844
 楼主| 发表于 2020-7-14 10:07:31 | 显示全部楼层
kevin 发表于 2020-7-13 18:32
那么使用mpp/codec/dec/jpeg/下的文件可以调用硬件解码不?如果可以与libjpeg解码效率上有不同吗? ...

mpp硬解码解码jpeg速度不是很快,这颗芯片主要是解码264 265的,
相比cpu优势就是不占用cpu资源
回复

使用道具 举报

xiaoyuan129

注册会员

积分
77
发表于 2020-7-20 17:44:10 | 显示全部楼层
zhouzhouzlove 发表于 2019-8-31 09:57
楼主大神,是的,没错,我又来了。。。。。。。。
是这样的,我运行mpi_dec_test时,运行的时候,cpu占用率 ...

你好!请问你最后是怎么从AVPacket喂数据到MppPacket的?我这边一直解码不成功
回复

使用道具 举报

xiaoyuan129

注册会员

积分
77
发表于 2020-7-20 19:16:36 | 显示全部楼层
你好,我将ffmpeg获取的视频流喂给mpp,一直无法正确解析数据,代码如下:
buf = pkt.data;//pkt为ffmpeg获取的视频帧数据包AVPacket pkt
mpp_packet_write(packet, 0, buf, pkt.size);
mpp_packet_set_pos(packet, buf);
mpp_packet_set_length(packet, pkt.size);
其他地方参考mpi_dec_test.c请问是我这样喂数据存在什么问题?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表