Which ppa for graphics acceleration on coolpi laptop (rk3588)?
-
I'm trying to explore hardware acceleration features on my rk3588 based laptop. I run Ubuntu 22.04 as installed when I received it.
Are there any package sources (ppas?) that I could add to make this work easily? Or do I have to recompile all the libraries myself from github repositories?
I found ffmpeg-rockchip and compiled rkrga, rkmpp and ffmpeg-rockchip yesterday trying to get an ffmpeg that uses r3588 hardware video encoder. But it fails to run. Do I need to recompile libdrm also? The kernel?
Thank you and best regards!
/usr/local/bin/ffmpeg -f video4linux2 -i /dev/video0 -f hevc ../tst.h264 ffmpeg version 50cc62684a Copyright (c) 2000-2023 the FFmpeg developers built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04) configuration: --prefix=/usr/local --enable-gpl --enable-version3 --enable-libdrm --enable-rkmpp --enable-rkrga libavutil 58. 29.100 / 58. 29.100 libavcodec 60. 31.102 / 60. 31.102 libavformat 60. 16.100 / 60. 16.100 libavdevice 60. 3.100 / 60. 3.100 libavfilter 9. 12.100 / 9. 12.100 libswscale 7. 5.100 / 7. 5.100 libswresample 4. 12.100 / 4. 12.100 libpostproc 57. 3.100 / 57. 3.100 Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 14443.933156, bitrate: 147456 kb/s Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720, 147456 kb/s, 10 fps, 10 tbr, 1000k tbn Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> hevc (hevc_v4l2m2m)) Press [q] to stop, [?] for help [hevc_v4l2m2m @ 0x5566a0db90] Could not find a valid device [hevc_v4l2m2m @ 0x5566a0db90] can't configure encoder [vost#0:0/hevc_v4l2m2m @ 0x5566a0d810] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height. Error while filtering: Operation not permitted [out#0/hevc @ 0x5566a0c690] Nothing was written into output file, because at least one of its streams received no packets. frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=N/A bitrate=N/A speed=N/A Conversion failed!
-
Ok the following command line actually seems to work with my own compiled ffmpeg-rockchip, based on my own compiled rkrga and rkmmp. And
top
shows zero cpu-load so the CPU is actually not used at all.ffmpeg -i /dev/video0 -c h264_rkmpp /tmp/tmp.mp4
Still interersted in URL to some source of precompiled Ubuntu packages though. Thanks.
-
Answering myself once more ... there is a ppa here although I'm not sure that's the optimal one for rk3588?
If someone is more sure of the best place to look for hardware accelerated software packages please help.
-
@enok71 Just in case someone reads my postings in this thread: The best source for coolpi hardware support packages is probably Georges ppa. Probably best to avoid mixed in packages from Liu Jianfengs ppa.
-
@enok71
Due to copyright issues with ffmpeg, only limited decoding support has been provided for ffmpeg Rockchip. -
@enok71
The hardware acceleration software package currently defaults to using George PPA. We are currently researching a new branch and will release the results as soon as possible. -
@enok71
George ppa provides ffmpeg source code and its patches, and can continue to develop on this code. We hope to support more formats. Especially in the coding part.