JeffyCN / rockchip_mirrors

Mirrors of a few Rockchip BSP repositories, some others in https://github.com/JeffyCN/mirrors.
Other
6 stars 2 forks source link

How do I check if the plugin is RGA enabled? #43

Closed huntlin closed 6 months ago

huntlin commented 6 months ago

gstreamer:1.18.5, The system is Ubuntu,I found through the debug, LD library that gstreamer does have librga introduced, but when I use the videoconvert component, there is no trace of enablement, and I tried export GST_VIDEO_CONVERT_USE_RGA=1 not even printing rga_api version. How can I check if the plugin is RGA enabled?

huntlin commented 6 months ago

i tried export GST_DEBUG=6,i find log is "rga does no match media" what is that mean and How do I fix this?

JeffyCN commented 6 months ago

i don't think i've ported my custom gst rga patch to ubuntu platform(it should not be easy though), and my patch doesn't contain such message(rga does no match media).

my patch is simple, if you were porting it, maybe try to add logs to debug: https://github.com/JeffyCN/rockchip_mirrors/blob/buildroot/package/gstreamer1/gst1-plugins-base/0008-video-converter-Support-rockchip-RGA-2D-accel.patch

huntlin commented 6 months ago

hi,I saw the log output of RGA enabled through debug, but it still doesn't print rga_api version still doesn't seem to call rga, how do I troubleshoot this? image

JeffyCN commented 6 months ago

that log means rga is enabled, but it would be called only when needed.

for example you can set width/height property of mppvideodec or mpp*enc

huntlin commented 6 months ago

gst-launch-1.0 v4l2src device=/dev/video9 ! video/x-raw,width=640,height=480! videoconvert ! video/x-raw,format=NV12 ! mpph264enc ! h264parse ! rtph264pay ! udpsink host=xxx port=1234 like this? i try change format but not working

JeffyCN commented 6 months ago

try something like '! mpph264enc width=1024 height=1024 !'

JeffyCN commented 6 months ago

please remove the videoconvert. (it would be called only when needed)

huntlin commented 6 months ago

尝试类似'!mpph264enc 宽度=1024 高度=1024 !'

I tested it successfully, if i want set videocovnert to change format BGR,how can i set ?

huntlin commented 6 months ago

like videoconvert ! video/x-raw format=BGR ! but rga not working

JeffyCN commented 6 months ago

there's also a format property in mpp*enc

huntlin commented 6 months ago

Does mppvideodec also have the same function?

JeffyCN commented 6 months ago

yes, you can check supported properties by gst-inspect-1.0