Firefly开源社区

打印 上一主题 下一主题

[技术讨论] rv1126 视频编解码主要与什么相关

96

积分

0

威望

0

贡献

技术小白

积分
96

rv1126 视频编解码主要与什么相关

发表于 2023-1-10 10:59:57      浏览:6735 | 回复:7        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: 自编
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容:
  • Log日志: dmesg.rar
问题描述及复现步骤:
请教一下各位大佬:
1、rv1126 是支持视频编解码:3840*2160 @30fps
这里的编解码这要是与芯片的什么相关:
是与NPU算力有关吗?

2、这里3840*2160 @30fps:3840*2160*60=2488 3200 0
那是否支持720p @100fps?

dmesg.rar

14.71 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

96

积分

0

威望

0

贡献

技术小白

积分
96
发表于 2023-1-10 11:03:12        只看该作者  沙发
dmes没什么东西,不知道官方什么时候可以删除这个log的上传,每次发帖都必须上传log,感觉没必要
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2023-1-10 17:43:42        只看该作者  板凳
跟 vpu 有关
回复

使用道具 举报

96

积分

0

威望

0

贡献

技术小白

积分
96
发表于 2023-1-11 15:31:00        只看该作者  地板

大佬,如果我的芯片vpu是支持:3840*2160@30fps,那么是不是只要处理单元不超过:
3840*2160*30=2488 3200 0就可以
这里以:1280*720*120 =1105 9200 0 为例子,
芯片处理1280*720@120fps?可以?
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2023-1-12 10:31:40        只看该作者  5#
要看硬件最短的解码时间支不支持这么高的 fps。你可以找个 h264/h265 的视频,用 mpi_dec_test 去测试下。最终会有个测试结果的。
回复

使用道具 举报

96

积分

0

威望

0

贡献

技术小白

积分
96
发表于 2023-1-13 13:55:43        只看该作者  6#
799959745 发表于 2023-1-12 10:31
要看硬件最短的解码时间支不支持这么高的 fps。你可以找个 h264/h265 的视频,用 mpi_dec_test 去测试下。 ...

大佬,这样,是不是最高支持130fps
  1. [root@MiWiFi-R3600-srv:/oem]# mpi_dec_test -i ./h264.h264
  2. mpp[1802]: mpi_dec_utils: cmd parse result:
  3. mpp[1802]: mpi_dec_utils: input  file name: ./h264.h264
  4. mpp[1802]: mpi_dec_utils: output file name:
  5. mpp[1802]: mpi_dec_utils: config file name:
  6. mpp[1802]: mpi_dec_utils: width      :    0
  7. mpp[1802]: mpi_dec_utils: height     :    0
  8. mpp[1802]: mpi_dec_utils: type       : 7
  9. mpp[1802]: mpi_dec_utils: debug flag : 0
  10. mpp[1802]: mpi_dec_utils: max frames : 0
  11. mpp[1802]: mpi_dec_test: mpi_dec_test start
  12. mpp[1802]: mpi_dec_test: input file size 5036144
  13. mpp[1802]: mpp_info: mpp version: 57ff4c6b author: Herman Chen   2021-09-13 [cmake]: Enable HAVE_DRM by default
  14. mpp[1802]: mpi_dec_test: 0x30b60 mpi_dec_test decoder test start w 0 h 0 type 7
  15. mpp[1802]: mpp_rt: NOT found ion allocator
  16. mpp[1802]: mpp_rt: found drm allocator
  17. mpp[1802]: mpi_dec_test: 0x30b60 decode_get_frame get info changed found
  18. mpp[1802]: mpi_dec_test: 0x30b60 decoder require buffer w:h [3840:2160] stride [3840:2160] buf_size 16588800
  19. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 0 err 1 discard 0
  20. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 1 err 1 discard 0
  21. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 2 err 1 discard 0
  22. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 3 err 1 discard 0
  23. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 4 err 1 discard 0
  24. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 5 err 1 discard 0
  25. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 6 err 1 discard 0
  26. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 7 err 1 discard 0
  27. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 8 err 1 discard 0
  28. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 9 err 1 discard 0
  29. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 10 err 1 discard 0
  30. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 11 err 1 discard 0
  31. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 12 err 1 discard 0
  32. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 13 err 1 discard 0
  33. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 14 err 1 discard 0
  34. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 15 err 1 discard 0
  35. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 16 err 1 discard 0
  36. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 17 err 1 discard 0
  37. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 18 err 1 discard 0
  38. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 19 err 1 discard 0
  39. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 20 err 1 discard 0
  40. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 21 err 1 discard 0
  41. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 22 err 1 discard 0
  42. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 23 err 1 discard 0
  43. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 24 err 1 discard 0
  44. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 25 err 1 discard 0
  45. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 26 err 1 discard 0
  46. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 27 err 1 discard 0
  47. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 28 err 1 discard 0
  48. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 29 err 1 discard 0
  49. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 30 err 1 discard 0
  50. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 31 err 1 discard 0
  51. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 32 err 1 discard 0
  52. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 33 err 1 discard 0
  53. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 34 err 1 discard 0
  54. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 35 err 1 discard 0
  55. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 36 err 1 discard 0
  56. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 37 err 1 discard 0
  57. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 38 err 1 discard 0
  58. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 39 err 1 discard 0
  59. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 40 err 1 discard 0
  60. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 41 err 1 discard 0
  61. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 42 err 1 discard 0
  62. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 43 err 1 discard 0
  63. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 44 err 1 discard 0
  64. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 45 err 1 discard 0
  65. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 46 err 1 discard 0
  66. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 47 err 1 discard 0
  67. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 48 err 1 discard 0
  68. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 49 err 1 discard 0
  69. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 50 err 1 discard 0
  70. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 51 err 1 discard 0
  71. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 52 err 1 discard 0
  72. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 53 err 1 discard 0
  73. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 54 err 1 discard 0
  74. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 55 err 1 discard 0
  75. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 56 err 1 discard 0
  76. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 57 err 1 discard 0
  77. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 58 err 1 discard 0
  78. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 59 err 1 discard 0
  79. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 60 err 1 discard 0
  80. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 61 err 1 discard 0
  81. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 62 err 1 discard 0
  82. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 63 err 1 discard 0
  83. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 64 err 1 discard 0
  84. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 65 err 1 discard 0
  85. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 66 err 1 discard 0
  86. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 67 err 1 discard 0
  87. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 68 err 1 discard 0
  88. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 69 err 1 discard 0
  89. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 70 err 1 discard 0
  90. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 71 err 1 discard 0
  91. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 72 err 1 discard 0
  92. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 73 err 1 discard 0
  93. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 74 err 1 discard 0
  94. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 75 err 1 discard 0
  95. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 76 err 1 discard 0
  96. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 77 err 1 discard 0
  97. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 78 err 1 discard 0
  98. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 79 err 1 discard 0
  99. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 80 err 1 discard 0
  100. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 81 err 1 discard 0
  101. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 82 err 1 discard 0
  102. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 83 err 1 discard 0
  103. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 84 err 1 discard 0
  104. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 85 err 1 discard 0
  105. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 86 err 1 discard 0
  106. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 87 err 1 discard 0
  107. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 88 err 1 discard 0
  108. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 89 err 1 discard 0
  109. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 90 err 1 discard 0
  110. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 91 err 1 discard 0
  111. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 92 err 1 discard 0
  112. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 93 err 1 discard 0
  113. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 94 err 1 discard 0
  114. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 95 err 1 discard 0
  115. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 96 err 1 discard 0
  116. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 97 err 1 discard 0
  117. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 98 err 1 discard 0
  118. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 99 err 1 discard 0
  119. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 100 err 1 discard 0
  120. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 101 err 1 discard 0
  121. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 102 err 1 discard 0
  122. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 103 err 1 discard 0
  123. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 104 err 1 discard 0
  124. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 105 err 1 discard 0
  125. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 106 err 1 discard 0
  126. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 107 err 1 discard 0
  127. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 108 err 1 discard 0
  128. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 109 err 1 discard 0
  129. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 110 err 1 discard 0
  130. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 111 err 1 discard 0
  131. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 112 err 1 discard 0
  132. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 113 err 1 discard 0
  133. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 114 err 1 discard 0
  134. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 115 err 1 discard 0
  135. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 116 err 1 discard 0
  136. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 117 err 1 discard 0
  137. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 118 err 1 discard 0
  138. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 119 err 1 discard 0
  139. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 120 err 1 discard 0
  140. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 121 err 1 discard 0
  141. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 122 err 1 discard 0
  142. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 123 err 1 discard 0
  143. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 124 err 1 discard 0
  144. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 125 err 1 discard 0
  145. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 126 err 1 discard 0
  146. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 127 err 1 discard 0
  147. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 128 err 1 discard 0
  148. mpp[1802]: mpi_dec_test: 0x30b60 found last packet
  149. mpp[1802]: mpi_dec_test: 0x30b60 decode get frame 129 err 1 discard 0
  150. mpp[1802]: mpi_dec_test: 0x30b60 found last packet
  151. mpp[1802]: mpi_dec_test: 0x30b60 input 1230 pkt output 131 frm decode 130 frames
  152. mpp[1802]: mpi_dec_test: test success max memory 31.64 MB
复制代码
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2023-1-14 09:53:26        只看该作者  7#
见愁 发表于 2023-1-13 13:55
大佬,这样,是不是最高支持130fps

先执行这个命令查看硬件解码时间:
  1. echo 0x0100 > /sys/module/rk_vcodec/parameters/mpp_dev_debug
复制代码
然后再跑 demo 就能看到每帧硬件解码的时间。
回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2023-1-14 09:54:14        只看该作者  8#
然后根据 1s/硬件解码时间 = xxx fps 计算即可
回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表