见愁 发表于 2023-1-10 10:59:57

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

请教一下各位大佬:
1、rv1126 是支持视频编解码:3840*2160 @30fps
这里的编解码这要是与芯片的什么相关:
是与NPU算力有关吗?

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

见愁 发表于 2023-1-10 11:03:12

dmes没什么东西,不知道官方什么时候可以删除这个log的上传,每次发帖都必须上传log,感觉没必要

799959745 发表于 2023-1-10 17:43:42

跟 vpu 有关

见愁 发表于 2023-1-11 15:31:00

799959745 发表于 2023-1-10 17:43
跟 vpu 有关

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

799959745 发表于 2023-1-12 10:31:40

要看硬件最短的解码时间支不支持这么高的 fps。你可以找个 h264/h265 的视频,用 mpi_dec_test 去测试下。最终会有个测试结果的。

见愁 发表于 2023-1-13 13:55:43

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

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

799959745 发表于 2023-1-14 09:53:26

见愁 发表于 2023-1-13 13:55
大佬,这样,是不是最高支持130fps

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

799959745 发表于 2023-1-14 09:54:14

然后根据 1s/硬件解码时间 = xxx fps 计算即可
页: [1]
查看完整版本: rv1126 视频编解码主要与什么相关