mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
RK3576硬件转码性能不符合预期,转换速率0.075x,比软件转码还弱 #172
Labels
No labels
bug
enhancement
help wanted
invalid
pull-request
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/ffmpeg-rockchip#172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SCUT-chenjia on GitHub (May 7, 2025).
本项目是否可以直接在RK3576上使用?或者有没有适配过RK3576?
@nyanmisaka commented on GitHub (May 7, 2025):
Support for RK3576 was added last year. I have not experienced any performance issues.
@SCUT-chenjia commented on GitHub (May 7, 2025):
root@rk3576-ubuntu:/home/twdz/rk3576/3rdparty/ffmpeg/bin# ./ffmpeg -hide_banner -filters | grep rkrga
... overlay_rkrga VV->V Rockchip RGA (2D Raster Graphic Acceleration) video compositor
... scale_rkrga V->V Rockchip RGA (2D Raster Graphic Acceleration) video resizer and format converter
... vpp_rkrga V->V Rockchip RGA (2D Raster Graphic Acceleration) video post-process (scale/crop/transpose)
root@rk3576-ubuntu:/home/twdz/rk3576/3rdparty/ffmpeg/bin# ./ffmpeg -init_hw_device rkmpp=hw -filter_hw_device hw -f lavfi -i testsrc2=s=1920x1080,format=nv12 -vf hwupload,scale_rkrga=w=1280:h=720:format=nv12 -c:v h
264_rkmpp -b:v 4M -maxrate 4M -vframes 1000 -y /home/twdz/test.mp4
ffmpeg version
e8ec55a5e8Copyright (c) 2000-2023 the FFmpeg developersbuilt with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
configuration: --enable-cross-compile --cross-prefix=aarch64-linux-gnu- --arch=aarch64 --cpu=cortex-a53 --target-os=linux --prefix=/home/twdz/rk3576/install/../3rdparty/ffmpeg --pkg-config-flags=--static --extra-cflags=-I/home/twdz/rk3576/install/../3rdparty/ffmpeg/include --extra-ldflags='-L/home/twdz/rk3576/install/../3rdparty/ffmpeg/lib -Wl,-rpath,/home/twdz/rk3576/install/../3rdparty/ffmpeg/lib' --extra-libs='-lpthread -lm' --bindir=/home/twdz/rk3576/install/../3rdparty/ffmpeg/bin --enable-gpl --enable-version3 --enable-debug --disable-optimizations --disable-stripping --enable-libfdk-aac --enable-libopus --enable-libx264 --enable-libx265 --enable-nonfree --disable-sdl2 --disable-asm --enable-static --enable-shared --enable-libdrm --enable-rkrga --enable-rkmpp
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Input #0, lavfi, from 'testsrc2=s=1920x1080,format=nv12':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: wrapped_avframe, nv12, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn
Stream mapping:
Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (h264_rkmpp))
Press [q] to stop, [?] for help
rga_api version 1.10.1_[9]
Output #0, mp4, to '/home/twdz/test.mp4':
Metadata:
encoder : Lavf60.3.100
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), drm_prime(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 4000 kb/s, 25 fps, 12800 tbn
Metadata:
encoder : Lavc60.3.100 h264_rkmpp
frame= 115 fps=1.9 q=-0.0 Lsize= 1kB time=00:00:04.56 bitrate= 1.7kbits/s speed=0.075x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2312.820557%
Exiting normally, received signal 2. 我在RK3588上编译的,跑这个正常,同样编译方式在RK3576上结果就是这么慢了。
@nyanmisaka commented on GitHub (May 7, 2025):
I have no such issue. Contact your board vendor.
@SCUT-chenjia commented on GitHub (May 7, 2025):
好的,我确认手上的RK3576硬件底层是否有问题,导致硬件转码不符合预期。